• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Migrated from Debian 7 to Centos x64 - All php/wordpress sites 502 error

Xavier12

Regular Pleskian
Last edited:
Hi Xavier12,

as you already know, most wordpress sites ( and some other php - based websites ) use additional rewrite rules, which depend on a very own configuration. There is no "standard" solution for such a issue. Please see the apache - htaccess - files for each domain and convert them ( maybe with the help of the Plesk Addon: "htaccess to nginx" converter ?!? or use a website like i.e.: https://timmehosting.de/htaccess-converter ), so that you can use this in the webserver settings of a domain ( additional nginx directives ).


Please keep in mind, that a 502 error can have several causes, so investigations start with logs and configuration files:

 
Hey guys

For some reason I am having issues with latest Plesk with php and wordpress. HTML sites are fine, but all php and wordpress sites are giving a 502 error after fully migrating. I repaired with Webserver Configurations Troubleshooter and rebooted and its still giving me the same issue.

Also, noticed my previous server had php 5.4.36, the new CentOS server has 5.4.37. Will this affect anything?

Please advise, thanks!

Sounds like a problem with CGI. Try for starters switching your sites to run PHP as an Apache module..
 
Hi Xavier12. Try to uninstall NGINX and PHP-FPM, then execute these commands in shell:

mysqlcheck -uadmin -p`cat /etc/psa/.psa.shadow` --all-databases --check-upgrade --auto-repair
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
/usr/local/psa/admin/sbin/httpdmng --reconfigure-server
service httpd stop
service httpd start

And check if they running now.

Best regards,
Horacio S
 
Standard Centos 7 x64 use PHP 5.4.16, I guess if you yum updated with Atomic Repo, in this case, all is possible...
 
Hey guys, thanks so much for the prompt responses and support. Really appreciate it.

So I seem to have solved it. Very weird.... I was forced to uninstall Nginx and php-fpm, reinstall it, then restart the service. Everything seems to be working now. Will reach back if any other issues occur
 
Back
Top