Header Ads

How to config nginx and php-fpm with TCP Scoket in ubuntu

How to config nginx and php-fpm with TCP Scoket in ubuntu


How to config nginx and php-fpm with TCP Scoket in ubuntu


You need install php7.2-fpm, nginx

Config php with TCP Socket

sudo vim /etc/php/7.2/fpm/pool.d/www.conf


Config nginx with TCP Socket

sudo vim /etc/nginx/sites-available/default


You cant change permission, owner folder test to jundat95

 

Add permission for nginx


sudo adduser www-data jundat95

Go to folder /var/www/test change permission for php-fpm


cd /var/www/test

sudo chown -R jundat95:jundat95 .

Restart nginx, php-fpm


sudo service nginx restart

sudo service php7.2-fpm restart


No comments