php_include override doesn’t work



I can not override the php include_path from my .htaccess file. Running my php script gives ‘failure opening’ and still lists the default include path!

I’m sure my syntax is correct – why won’t this work?


I noticed you are using one of the cgi-based php versions. When running these you must use your own php.ini file.

.htaccess has no effect. .htaccess only works with the mod_php apache module.

To set php options using the cgi-based php versions, do the following:

1. Create the directory /home/your_username/etc/

2. Put your own custom php.ini file

This will solve the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *