Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and has created the socket in the correct location
Code:
ls -l /var/run/php/php7.0-fpm.sock
so nginx can connect to it in order to serve php files.
Re. the duplicate fastcgi_pass make sure that you have only one uncommented-out in the various nginx/php-fpm config files
Regards
Thank you. I did:
Code:
$ sudo systemctl status php7.0-fpm
Unit php7.0-fpm.service could not be found.
$ ls -l /var/run/php/php7.0-fpm.sock
ls: cannot access '/var/run/php/php7.0-fpm.sock': No such file or directory
$ php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
$ cd /var/run/php/
$ ls
php7.2-fpm.pid php7.2-fpm.sock
And in "/etc/nginx/sites-available/default" file I changed "fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;" line to "fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.