Page 1 of 1

Can't access my php file on server!

PostPosted: 06. July 2008 22:44
by masoud
Hi

I have ubuntu 7.2 and xampp-linux 1.6.6. when i try to open my php file in htdocs i get this messege:

Forbidden

You don't have permission to access /index.php on this server.
Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.10.0 Server at localhost Port 80

tanks in advance

PostPosted: 11. July 2008 10:47
by Redlet
The user who runs Apache don't have permission to access /index.php. Check the user and group in httpd.conf then change the owner of index.php.

PostPosted: 11. July 2008 10:57
by Nobbie
... or simply enter

Code: Select all
chmod 666 index.php


in the htdocs folder.