• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Can't login - edit Plesk via SSH

D

DedicatedPros

Guest
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?
 
Login to the Plesk database:

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

The entry is located here:
Code:
[B]mysql> select * from misc where param="FullHostName";[/B]
+--------------+-----------------------------+
| param        | val                         |
+--------------+-----------------------------+
| FullHostName | hostname.domain.tld         |
+--------------+-----------------------------+

Try running an update query like:

mysql> update misc set val='new.domain.tld' where param='FullHostName';
 
Last edited by a moderator:
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?
 
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:
Code:
[b]<IP address> plesk.domain.tld plesk[/b]

2) Edit /etc/sysconfig/network:
Code:
[b]HOSTNAME plesk.domain.tld[/b]

3) Run:
Code:
[b]#hostname plesk.domain.tld
#/etc/init.d/network restart 
#/etc/init.d/psa restart[/b]
 
The hostname is now changed successfully but I still get a blank page when trying to access Plesk :(
 
Back
Top