By deanparadise
Hi all,
I am getting a 502 error when trying to access the Wordpress installer (index.php).
My error log says (replaced my domain name with mydomain.com):
2018/12/17 21:04:30 [crit] 5239#5239: *29 connect() to unix:/var/run/php-fpm/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 123.162.124.123, server: mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php7.2-fpm.sock:", host: "mydomain.com", referrer: "http://mydomain.com"
when I check my server this file does not exist, I have php-fpm but no .sock file
$locate php-fpm
/etc/php/7.2/fpm/php-fpm.conf
/usr/sbin/php-fpm7.2
/usr/share/doc/php-fpm
/usr/share/doc/php-fpm/changelog.gz
/usr/share/doc/php-fpm/copyright
/usr/share/man/man8/php-fpm7.2.8.gz
/var/lib/dpkg/info/php-fpm.list
/var/lib/dpkg/info/php-fpm.md5sums
my question:
Many thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
The easiest answer is that PHP-FPM is not started, where the more difficult answer is that it isn’t configured to listen in the same way that Nginx is configured to connect to it. If it’s the first one, run this:
systemctl start php-fpm7.2
If that doesn’t work, this may:
systemctl start php-fpm
If it’s not that, I would refer back to the guide you are using to configure this and make sure that you’ve followed all of the steps.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.