Welcome! Log In Create A New Profile

Advanced

php info not effect when edit value in php.ini on nginx webserver

Posted by khoanhd 
php info not effect when edit value in php.ini on nginx webserver
February 24, 2010 07:47PM
I've already installed php, fcgi, nginx, the system running as no problem, but the problem happen when:

1. I update memory_limit in php.ini, then restart php-cgi, nginx, but when use phpinfo, theo memory_limit is not effected.
2. I install 2 new extensions: curl and memcache, add 2 lines: extension=curl.so and extension=memcache.so, restart php-cgi and nginx, phpinfo also not show up the value curl and memcache in phpinfo.

So, how should i do?Please help me.
Juan Fco. Giordana
Re: php info not effect when edit value in php.ini on nginx webserver
February 24, 2010 08:14PM
On 02/24/2010 09:47 PM, khoanhd wrote:
> I've already installed php, fcgi, nginx, the system running as no problem, but the problem happen when:
>
> 1. I update memory_limit in php.ini, then restart php-cgi, nginx, but when use phpinfo, theo memory_limit is not effected.
> 2. I install 2 new extensions: curl and memcache, add 2 lines: extension=curl.so and extension=memcache.so, restart php-cgi and nginx, phpinfo also not show up the value curl and memcache in phpinfo.
>
> So, how should i do?Please help me.

Hello khoanhd,

Restarting nginx has no effect since PHP runs as a separate process. You
only need to restart php-fpm (assuming you're using that).

You need to provide us with more information. If you manually compiled
php, the configure options, if you installed installed it from other
sources, which ones, your php-fpm configuration, etc.

Regards
Re: php info not effect when edit value in php.ini on nginx webserver
February 24, 2010 08:52PM
Here is my installation step by step:
1. Install fast cgi:
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar -zxvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure CFLAGS=-O3
make
make install

2. Install php
PHP configure: ./configure --prefix=/usr/program/php/ --enable-fastcgi --enable-force-cgi-redirect
3. Install nginx
4. Config webserver:
[size=small]server {
listen 80;
server_name khoanhd.cmc.vinagame.vn;
location / {
root /home/khoanhd/public_html;
index index.php;
}
location ~ /intro {
root /home/khoanhd/public_html;
index index.php;
}
location ~ \.(js|css|gif|ico|jpg|png|htm|htc|swf|flv|xml)$ {
root /home/khoanhd/public_html;
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/khoanhd/public_html/$fastcgi_script_name;
include fastcgi.conf;
}
location ~ /.* {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/khoanhd/public_html/index.php;
include fastcgi.conf;

}
include error_pages;
}[/size]

5. Run php-cgi
/usr/program/php/bin/php-cgi -b 127.0.0.1:9000 -n &
6. Start nginx:
/usr/program/nginx/sbin/nginx -c /usr/program/nginx/conf/nginx.conf

After install all, the system run ok, but when i install 2 new php extension, update php.ini the phpinfo is not effected.
Re: php info not effect when edit value in php.ini on nginx webserver
February 24, 2010 09:54PM
I found the error:
- When run php-cgi i forgot point the php.ini path. So i update as: /usr/program/php/bin/php-cgi -b 127.0.0.1:9000 -n -c /usr/program/php/lib/php.ini. The system now ok. Thanks all.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready