• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Plesk 500 Error

mkandoll

New Pleskian
-bash-3.2# cat /usr/local/psa/version
9.5.1 CentOS 5 95100414.15

Attempting to access Plesk on 8443 in a browser shows a 500 error.

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>500 - Internal Server Error</title>
</head>
<body>
<h1>500 - Internal Server Error</h1>
</body>

</html>


This VPS was restored from a backup yesterday on a different server than it was originally on. The VPS starts, services run, and everything seems to be generally functional. A few things I looked at are shown below.


-bash-3.2# service psa status
sw-cp-serverd (pid 28597) is running...

-bash-3.2# ls -l /usr/lib64/sw-cp-server/sw-suexec
-rws--x--- 1 root 15517 383648 Apr 1 2010 /usr/lib64/sw-cp-server/sw-suexec

-bash-3.2# ls -l /usr/bin/sw-engine-cgi
-rwxr-xr-x 1 root root 8357533 Dec 6 2009 /usr/bin/sw-engine-cgi

-bash-3.2# ls -l /usr/local/psa/admin/bin/php
lrwxrwxrwx 1 root psaadm 37 Apr 19 2010 /usr/local/psa/admin/bin/php -> /usr/local/psa/bin/sw-engine-pleskrun

-bash-3.2# ls -l /usr/local/psa/bin/sw-engine-pleskrun
-rwxr-xr-x 1 root root 15496 Apr 9 2010 /usr/local/psa/bin/sw-engine-pleskrun

-bash-3.2# rpm -V sw-engine
.......T /usr/bin/sw-engine
.......T /usr/bin/sw-engine-cgi
.......T /usr/lib64/php/modules/sw-engine/ioncube_loader_lin_5.2.so

-bash-3.2# grep psaadm /etc/group
psaadm:x:502:psaadm,sw-cp-server
swkey-data:x:503:psaadm
psaserv:x:504:apache,psaftp,psaadm

-bash-3.2# tail error_log
2011-07-12 08:22:41: (mod_fastcgi.c.1012) If this is PHP on Gentoo add fastcgi to the USE flags
2011-07-12 08:22:41: (mod_fastcgi.c.1105) [ERROR]: spawning fcgi failed.
2011-07-12 08:56:25: (mod_fastcgi.c.966) Cannot execute /usr/lib64/sw-cp-server/sw-suexec : Permission denied
2011-07-12 08:56:25: (mod_fastcgi.c.1000) the fastcgi-backend /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm failed to start:
2011-07-12 08:56:25: (mod_fastcgi.c.1004) child exited with status 13 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
2011-07-12 08:56:25: (mod_fastcgi.c.1007) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2011-07-12 08:56:25: (mod_fastcgi.c.1012) If this is PHP on Gentoo add fastcgi to the USE flags
2011-07-12 08:56:25: (mod_fastcgi.c.1105) [ERROR]: spawning fcgi failed.

-bash-3.2# /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_p repend_file=auth.php3 -u psaadm -e
PHP Notice: Undefined index: REQUEST_URI in /usr/local/psa/admin/auto_prepend/ auth.php3 on line 30
Expires: Fri, 28 May 1999 00:00:00 GMT
Last-Modified: Tue, 12 Jul 2011 16:35:51 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
P3P: CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA"
Content-type: text/html


<html><head><title></title>
<script language="javascript" type="text/javascript" src="/javascript/c ommon.js?plesk_version=psa-9.5.1-95100414.15"/></script>
<script language="javascript" type="text/javascript" src="/javascript/p rototype.js?plesk_version=psa-9.5.1-95100414.15"></script>
<script>
var opt_no_frames = false;
var opt_integrated_mode = false;
</script>

</head><body onLoad=";top.location='/login.php3';"></body></html><!--__ ________________________________________________________________________________________________________________________________________________________________ ____________________________________________________________________________IE error page size limitation_______________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________




I was also able to confirm the mysql database for psa is accessable with the plesk admin password.

What steps should I take to allow Plesk to function normally?
 
Back
Top