The article is moved on the following link:
http://mysoftskill.blogspot.com/2009/11/phpini-settings.html
Regards,
Vijay Modi
The article is moved on the following link:
http://mysoftskill.blogspot.com/2009/11/phpini-settings.html
Regards,
Vijay Modi
Posted in PHP
Hi,
I am using PHP through Apache. I need to include dynamic extensions in PHP (ssh2.so).
After googling, i came to know it is possible only through php.ini file.
But my problem is , i used to start PHP through Apache module libphp5.so.
I need to make to work only by placing the php.ini file at the same location where i compiled PHP.
ie. If i compiled PHP with the option –with-config-file-path=/etc/php_ini_dir, then i need to place the file on every m/c in the same directory.
All i need to know is how to specify the custom php.ini path while starting php through Apache.
I am not clear in using PHPRC variable and how to use.
Please explain me.
If this is the wrong post, please ignore and delete it.
Please guide me how to set the custom php.ini file while starting Apache.
My versions:
Apache: 2.0.4.7
PHP:5.2.4
prasanna.
By: Prasanna on October 15, 2007
at 7:56 am
Hi,
I got this by adding a line [B]PHPINIDir “conf”[/B] in httpd.conf file.
And created a directory “conf” under [B]ServerRoot[/B] and place the file php.ini under that directory.
Now the default php.ini is getting override by the file(php.ini) which i kept under ServerRoot/conf directory.
Now i can able to [B]load dynamic extensions in PHP through Apache module[/B].
Thanks for your help.
Prasanna
By: prasanna on October 16, 2007
at 5:31 am
Hi,
Nice Article. It pointed in the right direction. Just wanna ask how can i restrict users in changing “php_ini_system” directives if i set setenv phprc /user/home/directory/php.ini? And will only allow php_ini_all and php_ini_perdir directives to be changed?
By: Peter Parker on February 29, 2008
at 3:14 pm
Very nice php tips. Well done
thanks for all this useful article
By: balipublisher on September 25, 2008
at 9:41 am
hi I want to know how to change the update ft_min_word_len. i mean in which file i have to make changes.. please help me
By: vanishri on January 29, 2009
at 12:05 pm