NGINX - performance HTTP server Support Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Unofficial (YET) support forums for NGINX, a performance HTTP server.

Pages: [1]   Go Down

Author Topic: Problems with php.ini , ph5-cgi and nginx.  (Read 424 times)

0 Members and 1 Guest are viewing this topic.

anbrutog

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Problems with php.ini , ph5-cgi and nginx.
« on: September 11, 2009, 11:50:06 AM »
Hi there ,

Recently inherited a server where I need to update the php.ini settings . However , any changes I make refuse to update. Despite the obvious ( restarting nginx ) what else should I be doing ?? Specifically , I need to update the 'upload_max_filesize' on my server.

Many thanks,

AB
Logged

lrvv

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • View Profile
    • WWW
Re: Problems with php.ini , ph5-cgi and nginx.
« Reply #1 on: September 11, 2009, 02:35:30 PM »
maybe you can edit on php.ini

anbrutog

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Re: Problems with php.ini , ph5-cgi and nginx.
« Reply #2 on: September 14, 2009, 10:06:21 AM »
maybe you can edit on php.ini


Thats the thing. Any change I make to my php.ini files refuses to update, well in the intervening period I've found that rebooting the server makes the changes update. But obviously this is quite extreme, a sledgehammer being used to crack an egg, I would much prefer to simply be able to edit my ini file and restart my web server ( or a similar scenario ) and have my changes update. But this isn't happening in my case. Are there other changes , services that need to be restarted in order to update my changes ?? Given the fact that a server reboot does make this happen it would appear that there are further services that need to jolted , but which ones??
Logged

anbrutog

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Re: Problems with php.ini , ph5-cgi and nginx.
« Reply #3 on: September 14, 2009, 01:56:06 PM »

Thats the thing. Any change I make to my php.ini files refuses to update, well in the intervening period I've found that rebooting the server makes the changes update. But obviously this is quite extreme, a sledgehammer being used to crack an egg, I would much prefer to simply be able to edit my ini file and restart my web server ( or a similar scenario ) and have my changes update. But this isn't happening in my case. Are there other changes , services that need to be restarted in order to update my changes ?? Given the fact that a server reboot does make this happen it would appear that there are further services that need to jolted , but which ones??


Problem is solved. Cgi must be killed (ps  , then kill <pid> ) , then re-run the spawn-fcgi with whatever parameters it needs , after the php.ini changes have been made, similar to whats below..

ab@bigchief:/etc/php5/cgi# /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid

Doesnt require a nginx restart.
Logged
Pages: [1]   Go Up
« previous next »
 

Page created in 0.042 seconds with 20 queries.