View Full Version : Can't login - edit Plesk via SSH
DedicatedPros
Jul 24, 2009, 11:51 AM
I just got a server with Plesk on it, and out of all the things I did, I forgot the setup an A record as for my server's hostname after having changed the server hostname in Plesk. Now I cannot login as a blank page shows up when I try :(
Is there anyway I can edit the hostname of the server from SSH?
Flagg
Jul 27, 2009, 12:27 AM
Login to the Plesk database:
#mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
The entry is located here:
mysql> select * from misc where param="FullHostName";
+--------------+-----------------------------+
| param | val |
+--------------+-----------------------------+
| FullHostName | hostname.domain.tld |
+--------------+-----------------------------+
Try running an update query like:
mysql> update misc set val='new.domain.tld' where param='FullHostName';
DedicatedPros
Jul 27, 2009, 04:00 AM
That fix worked like a charm, but changing the hostname did not solve the issue.
I still keep getting a blank page whenever I go to my Plesk login page, I've enabled display_errors in /usr/local/psa/admin/conf/php.ini, restarted Plesk, and still nothing (no errors show) :(
Could I maybe reinstall Plesk without damaging my databases/current server settings?
Flagg
Jul 27, 2009, 04:12 AM
Are you able to access the control panel by IP address? I mean via: "https://<IP>:8443"? If so, try this:
1) Edit /etc/hosts with:
<IP address> plesk.domain.tld plesk
2) Edit /etc/sysconfig/network:
HOSTNAME plesk.domain.tld
3) Run:
#hostname plesk.domain.tld
#/etc/init.d/network restart
#/etc/init.d/psa restart
DedicatedPros
Jul 27, 2009, 04:44 AM
The hostname is now changed successfully but I still get a blank page when trying to access Plesk :(
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.