Client denied by server configuration

Client denied by server configuration :

Error :

[Sun Dec 07 14:04:38 2009] [error] [client 127.0.0.1] client denied by server configuration: /home/username/public_html/catalog/admin/index.php

If you get this error then you need to check the .htaccess file under the respective directory (here catalog/admin) and there you need to comment the rule “Deny from all”
Example :
<Files *.php>
Order Deny,Allow
#Deny from all
</Files>

That’s all this will do it.

Directory Index Forbidden Error

When you get this error :
[Tue Dec 15 08:21:42 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/domainusername/public_html/
[Tue Dec 15 08:21:54 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/domainusername/public_html/

then just add the following code in the .htaccess file :

DirectoryIndex index.html
or
DirectoryIndex index.php

That’s all this will do it.

How to enable php settings for all Directories

If you want  to enable some php related settings by using php.ini file and  reflect it to all   directories under your account. Then follow the steps..

First create a php.ini file under the document root of your domain and change or add the default settings which you want or which is required for your domain.

for example :

allow_url_fopen = On
allow_url_include = On

then you need to add the following code in your .htaccess file. So you dont need to copy the php.ini file under each directories for changes to reflect.

SetEnv PHPRC “/home/username/public_html”