apache server, user files.
My apahce2 server has some problem. It could see php files in /srv/www/htdocs. But I copy php files to /home/username/public_html, and I type http://localhost/~username/my.php, it can't find it.
some setting is missing. Thanks. |
Looks like you are accessing your webserver (through browser) as a web-user. Would you really want a web-user (from the internet) to be able to access your home folder?
Seems to be a permissions problem. Can you open up the "my.php" with a web browser? |
Do you have UserDir public_html in your httpd.conf file? If so, does the user that Apache is running as (the User and Group settings) have permissions to view the contents at /home/username/public_html? You'll probably need permissions of 0755 on each of /home, /home/username and /home/username/public_html.
Also, make sure that the rest of the files/directories under /home/username don't have permissions set that anyone else can view them. |
All times are GMT -5. The time now is 10:49 AM. |