+ Reply to Thread
Results 1 to 5 of 5

Thread: Adding php.ini file

  1. #1
    Join Date
    Jul 2007
    Posts
    14

    Default Adding php.ini file

    I need to change the master php.ini file to alter the include_path (for the Zend Framework). The problem I'm running into is that I must put this new php.in file in every directory that has a php script. Is this really necessary or is there a more efficient way to do this?

    Thanks for the help in advance.

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,533

    Default

    If you turn on the fastcgi option then you only need the one file in public_html

  3. #3
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Look at the Control Panel/PHP Config. You have two options. Either choose "PHP5 (Single php.ini)" or "PHP5 (FastCGI)." With either choice, you don't have to copy php.ini to every subdirectory.

  4. #4
    Join Date
    Jul 2007
    Posts
    14

    Default

    Ahh, thanks so much for the help guys!

  5. #5
    Join Date
    Jul 2007
    Posts
    14

    Default

    Changing the permissions under PHP Config on the cPanel certainly took care of my problem. I now only need one php.ini file in my ~/public_html directory.

    The problem I'm having now is that twice I've tried to load up the site and this setting has been switched back to regular PHP 5 using the system's php.ini file. Since the include path ignores my web application's needed directory, the application can't load at all.

    Has anyone else experienced this?

    Also, the cPanel says that the PHP 5 option is the best in terms of performance. How do the other two compare and which is better, the FastCGI option or the Single php.ini option? I haven't noticed any major differences yet as I'm still developing the application and haven't had time to test, but anyone got some tips here?

    Thanks for the help!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts