Skip to main content



nginx | run multiple php versions in the smae server

# nginx-multiple-php allow nginx to process multiple php versions on the same machine - Hosts File Content: /etc/hosts localhost saleh-lpt ------------------------------- - PHP 7 FPM Listen IP:PORT /etc/php/7.1/fpm/pool.d/www.conf listen = ------------------------------- - PHP 5 FPM Listen IP:PORT /etc/php/5.6/fpm/pool.d/www.conf listen = ------------------------------- - Nginx Config /etc/nginx/sites-enabled/default location ~ \.php$ { include snippets/fastcgi-php.conf; # With php-fpm (or other unix sockets): # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; # With php-cgi (or other tcp sockets): fastcgi_pass $server_addr:9000; }-------------------------------site-nginx.confg file:# # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the …

Latest Posts

Native vs Web | Then and Now


عندما يكون النجاح

برنامج إجتماعيات - المسؤولية

الإستقرار بين المهاراة و المعرفة

المجتمع المهني المنتج

الصناعة بين الإبداع الفني و التبسيط الإداري

RIP Flash | Time to Move on

Nginx | Configure Famous Frameworks Routs ( Yii2, Laravel, Drupal, Codeigniter)

Ubuntu Configure Nginx with Multiple PHP Versions