PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 2, 2022

[FIXED] Access correct website file from apache web server

 February 02, 2022     apache, lamp, raspberry-pi     No comments   

Issue

I am running an apache web server on my Raspberry Pi that hosts a website. To get the IP address of the server i used ifconfig and looked for the inet address under wlan0. I typed this address into chromium and reached /var/www/html/index.html. I do not want to reach this file, instead i was hoping to configure the server so that the first site i reach is /var/www/test/index.php.

How can i achieve this?


Solution

First, you need to change the document root of apache to point to the /var/www/test directory.

For this I advise you to follow this explanation : https://askubuntu.com/a/738527

And then normally you will be able to access your page from other computers using the IP address of your PI.



Answered By - Flipo
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing