Custom PHP.ini tips and tricks

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Skip to Comments

Add Your Opinion

Reader Comments

  1. All ~

    where is my php.ini?

  2. Mike ~

    Great article! Thanks!

  3. php trivandrum ~

    It was great reading the article.. very informative and neat..

  4. Peter Parker ~

    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?

  5. AskApache ~

    @ Prasanna

    Very cool. Thanks for that!

  6. Prasanna ~

    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

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

  8. Vijay Modi ~

    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 | .:: Phrack Magazine ::.

↑ 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

Site Map | Contact Webmaster | Email AskApache | Glossary | License and Disclaimer | Terms of Service