Custom PHP.ini tips and tricks
« Fight Blog Spam with ApacheRare XHTML elements use for SEO »
« Fight Blog Spam with Apache
Rare XHTML elements use for SEO »
Please consider donating to support active development of the free software and articles here.![]()
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
Great article! Thanks!
It was great reading the article.. very informative and neat..
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?
Hi,
I got this by adding a line PHPINIDir "conf" in httpd.conf file.
And created a directory "conf" under ServerRoot 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 load dynamic extensions in PHP through Apache module.
Thanks for your help.
Prasanna
Hi,
I am using PHP through Apache. I need to include dynamic extensions in PHP (ssh2.so).
All i need to know is how to specify the custom php.ini path while starting php through Apache.
Also i tried SetEnv PHPRC /home/users/web/bEXAMPLE/pow.EXAMPLE in .htaccess file and give All permission in httpd.conf file.
I am not clear in using PHPRC variable and how to use. Please clarify me
My versions:
Apache: 2.0.4.7
PHP:5.2.4
hi,
Really very nice article.
You can find another one on the following link:
http://vijaymodi.wordpress.com/2007/03/03/phpini-settings/
Regards,
Vijay Modi
It's very simple - you read the protocol and write the code. -Bill Joy
HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | TLDP | WAI | DISA | ICSI | GIAC | SANS RR | GHOST | DEFCON | NIST | DHS CYBER | NIST
↑ TOPExcept where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. HTTPD based on NCSA HTTPd
where is my php.ini?