You are not logged in.

#1 2012-07-26 21:10:31

ytsejam
Member
Registered: 2012-02-10
Posts: 57

public_html (php) access forbidden error.

Hello , I messed up my directory permissions for the apache , php5 and codeigniter server. The test page on 'http://localhost/~ytsejam/test.php' was working  but now also test.php gives me :

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.
Error 403

I tried chmod o+x ~ , chmod o+x ~/public_html

If i check ls -l , I get :

drwxrwxrwx 16 ytsejam users 4096 Jul 26 23:45 public_html . What is the correct way to fix this ?

Last edited by ytsejam (2012-07-26 21:21:50)

Offline

#2 2012-07-27 02:05:30

aline
Member
Registered: 2009-12-17
Posts: 22

Re: public_html (php) access forbidden error.

Check the permissions for the test.php file.

ls -lh test.php

Offline

Board footer

Powered by FluxBB