Last year, the server and PHP were not good. The most recent PHP programmers in the company left the company. I am here to pick you up. I configured a continuous integration environment based on YII2, SVN, and RSYNC. I knew that YII had to be PHP5.4 or above, but I found that the company's old code 100% was PHP5.3, not all... last year, the server and PHP were not good. The most recent PHP programmers in the company left the company. I am here to pick you up.
I configured a continuous integration environment based on YII 2, SVN, and RSYNC. I knew that YII had to be PHP5.4 or above, but I found that the company's old code 100% was PHP5.3, it is impossible to complete the migration.
I originally planned to use PHP 5.6 on nine servers. Today I want to explain again why I still need PHP 5.3 for the eight servers? I am not as good as NGINX + two PHP environments for each server. In this case, the new and old codes can be used.
Has anyone done this?
I found a reference. Http://jingyan.baidu.com/article/a948d6517c63e60a2dcd2e39.html
Please correct me. Thank you.
Reply content:
Last year, the server and PHP were not good. The most recent PHP programmers in the company left the company. I am here to pick you up.
I configured a continuous integration environment based on YII 2, SVN, and RSYNC. I knew that YII had to be PHP5.4 or above, but I found that the company's old code 100% was PHP5.3, it is impossible to complete the migration.
I originally planned to use PHP 5.6 on nine servers. Today I want to explain again why I still need PHP 5.3 for the eight servers? I am not as good as NGINX + two PHP environments for each server. In this case, the new and old codes can be used.
Has anyone done this?
I found a reference. Http://jingyan.baidu.com/article/a948d6517c63e60a2dcd2e39.html
Please correct me. Thank you.
Enable multiple php-fpm. Different phpfpm versions can be bound to different sock or port.
Nginx forwards php requests to different sock or port according to the condition.
Yes. Let php-fpm of different versions run on different ports, and then ngxin reverse to different upstreams according to the path.
I am sending a configuration file, and I feel a little bit changed, it should be able to meet the requirements of the landlord
CMD starts the PHP and Nginx scripts and adds several versions of php-cgi with different ports.
@ECHO OFFset PHP_FCGI_MAX_REQUESTS=1000echo Starting php-cgiRunHiddenConsole php\php-cgi.exe -b 127.0.0.1:9000 -c config\php_5.5.ini -iecho Starting nginxcd nginxstart nginxEXIT
Then in the Nginx configuration file, specify different applications for different ports of PHP-CGI
location ~ ^/phpPgAdmin/(.*\.php)$ { alias D:/Work/www/tools/phpPgAdmin/$1; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; }
I adopted an answer, but I did it myself, because I used LNMP and then changed unix_sock.
A new problem occurred during the test today.
I have NGINX + PHP 5.6.6 and PHP5.3.28 on the same physical server, which are separated by unix_sock.
Both PHP can run, but when PHP5.3.28 is running a certain page (jquery mobile + PHP), only half of the page is loaded, and the logs are normal. For another server, only one PHP5.3 can run normally.
Strange: Check that PHP and JQEURY code are exactly the same.
Copy the normally running INI file and restart NGINX and PHP several times. It is only half done.
Has anyone ever met?
Same problem encountered
Same answer