Can't access my php file on server!

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't access my php file on server!

Postby masoud » 06. July 2008 22:44

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
masoud
 
Posts: 2
Joined: 06. July 2008 22:17

Postby Redlet » 11. July 2008 10:47

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.
Redlet
 
Posts: 6
Joined: 10. July 2008 23:58

Postby Nobbie » 11. July 2008 10:57

... or simply enter

Code: Select all
chmod 666 index.php


in the htdocs folder.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 77 guests