PHP file inclusion warning
Hello,
I have installed LAMP Server on Ubuntu 7.10. And I have edited the file available in /etc/apache2/sites-enabled/000-default, changing document root form /var/www to /home/guest/www and then I restarted the server and started executing the my PHP files, I got the following error/warning Quote:
|
First changing a folders permission to 777 is never advisable...
is common/footer.php in the path given if not then correct the path is so then I would suspect that the web server Apache doesn't have permission to a parent folder /home/guest |
PHP Warning
Hello,
Thank You for the reply. My www folder contains folders common, configure, pics, css and javascripts along with my index.php file. index.php file contains the code Quote:
|
are you sure that you have changed the permissions of the common directory?
|
PHP warining
Hello,
Thanks for the reply. I have changed the file permission to 755 to all folders and files. Still I am not able to include files. |
The web server needs access permission for all parent directories on path /home/guest/www. I assume that 'guest' is a user's home directory (user guest), so you probably have to add user 'apache' to the 'guest' group, or make some sudo settings that have a similar effect.
Anyway, my advice would be to reset webroot to /var/html and rather create the 'guest' home directory within /var/html. In httpd.conf set up a virtual host with the guest home directory or one of it's subdirectories as the webroot for that given virtual host. Linux Archive |
All times are GMT -5. The time now is 06:49 PM. |