• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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