Getting 502 Errors on plesk

Try and disable nginx and re-configure your apache configuration to see if it will correct the errors nginx is showing.

To disable nginx, issue :


# /usr/local/psa/admin/bin/nginxmng -d

To reconfigure your apache configuration issue :


# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

To add custom error documents in plesk 12, you will need to edit/add an .htaccess file

# cd /var/www/vhosts/domain.com/httpdocs/

# mkdir error_pages

# nano .htaccess
ErrorDocument 404 /error_pages/404.php
#cd error_pages

# nano 404.php
<h1>Not Found</h1>

Save the file and then test with a bogus URL

Getting an error when backing up a plesk domain?


Error: mailname "support"Unable to execute SQL: Unknown database 'horde'Warning: mysql "admin_domain"Failed to pack files 4_18_2015_2_admin_domain_1_1504180804 in /var/lib/psa/dumps/domains/domain.com/databases/admin_domain_1 [ 427932016640 bytes free of 489881954304 bytes total on mount point 0]Warning: mysql "admin_domain"mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'admin_domain'': Cannot load from mysql.proc. The table is probably corrupted (1548) 

Run


# mysql_upgrade

Plesk


# mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`

When using ftp to access the server, the following error logs:

# Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out

If you are on a plesk server, Plesk has an article here: https://docs.plesk.com/en-US/onyx/administrator-guide/server-administration/plesk-for-linux-configuring-passive-ftp-mode.74643/
To enable passive FTP mode in Plesk for Linux:
Log in to your server via SSH as the root user.
Create the /etc/proftpd.d/55-passive-ports.conf file, add the following lines to it, and then save the changes:

# nano /etc/proftpd.d/55-passive-ports.conf
PassivePorts 49152 65535

Run the following command:

# systemctl restart xinetd

Now your Plesk server accepts passive FTP connections. If you have installed the Plesk Firewall and switched on its default configuration, you need to add a firewall rule allowing passive FTP:

  1. Direction: Incoming
  2. Action: Allow
  3. Ports: TCP 49152-65535
  4. Sources: (any host)

Save and connect via ftp to test.

Still having issues?

Check is firewalld is loaded but not enabled? Try to start and then and stop firewalld service.

Viewing the orders in opencart admin – the following errors appear:


[Wed Apr 01 14:51:21 2015] [warn] [client 67.81.xxx.xx] mod_fcgid: read data timeout in 45 seconds, referer: https://www.domainname.com/admin/index.php?route=sale/order&token=96d6680034320729c7df84d678589324

Try to increase the timeout in the /etc/httpd/conf.d/fcgid.conf file to 90 seconds.