Skip to main content

Posts

Featured

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 127.0.0.1 localhost 127.0.0.1 saleh-lpt 127.0.0.1 dsb.co 127.0.0.1 dsb-php7.co 127.0.0.2 dsb-php5.co ------------------------------- - PHP 7 FPM Listen IP:PORT /etc/php/7.1/fpm/pool.d/www.conf listen = 127.0.0.1:9000 ------------------------------- - PHP 5 FPM Listen IP:PORT /etc/php/5.6/fpm/pool.d/www.conf listen = 127.0.0.2:9000 ------------------------------- - 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