Access Forbidden 403 for PHP info page.
Pardon me for my sillyness
I am less than a two week old User for Linux I will be doing a web server for my school project I wanted to test the phpinfo page but than when i go to //localhost/test.php It say Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster My command is very simple <html> <head> <title>PHP script</title> </head> <body> <?php phpinfo(); ?> </body> </html> Save at var/www/html/test.php I wonder why is there a Access Forbidden Error For normal php page it works well with it. I want to try to test this infopage I am using Redhat 9.0, Apache, PHP, MySQL, PHPmyADmin Hope that you guys could help me. Thank you for reading my help posting Have a Good Day. |
Apache is running as an user (usually apache). This user needs to have the privileges to read test.php file.
|
May be you can try setting the permissions of the file test.php to something like 644. Use the command
# chmod 644 test.php |
Quote:
i reformat my linux and still the same access forbidden? i wonder why i never set anything still access forbidden sigh but what privileges this is my computer i never access anyone else server i use Http://localhost/test.php in school computer i can display the page but at home pc i can't i wonder why same setting for both school and home pc |
after i type
# chmod /var/www/html/test.php it can be display how come like that why is it so? Thank you very much guys! :newbie: |
change the attribute by using chmod command
# chmod 644 /var/www/html/test.php |
All times are GMT -5. The time now is 11:28 PM. |