Lunarpages Web Hosting Forum

Author Topic: Custom php.ini  (Read 6142 times)

Offline michael.w

  • Spacescooter Operator
  • *****
  • Posts: 42
Custom php.ini
« on: February 21, 2010, 09:33:50 AM »
On server crush.

I would like to set some of the php variables.  To do so, I have uploaded the file php.ini to my httpdocs directory.  However, when I view the output of the phpinfo() function, none of the settings have changed.

Are custom php.ini files supported?  If so, do I have the file in the correct location?  Is there another step to configuring my site to use the custom php.ini?

thanks,
Michael

Updates:
 - PHP version is 4.4.7
 - PHP is running as FastCGI
« Last Edit: February 21, 2010, 10:13:26 AM by michael.w »

Offline michael.w

  • Spacescooter Operator
  • *****
  • Posts: 42
Re: Custom php.ini
« Reply #1 on: March 04, 2010, 12:29:25 PM »
Resolved thanks to support.

Couple of things.  First PHP must be running as CGI.  Second, on IIS7 (which I was), CGI/FastCGI is declared in web.config and not with Plesk.

MWaqas

  • Guest
Re: Custom php.ini
« Reply #2 on: February 10, 2011, 05:15:51 AM »
Hello,

The CGI mode in IIS7 serves well and with PHP4 it should serve the variables in it, do note that you wont be able to use custom php.ini with PHP5 currently its not supported on shared windows servers.