• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How I ruined my server

jcgalvez

Basic Pleskian
Hello,

Well, it's a long story but I'll try to be precise with how I made my server stop working (could be a bug???)

I created a domain (say mydomain.com) as the principal domain
then I created several "alias" domains mydom1.com pointing to mydomain.com otherdom1.com pointing as well to mydomain.com
then I tried to create a "subdomain", so I created a subdomain with a different domain, let's call tech.thisdom.com
Mydomain.com was pointing to the default directory /httpdocs/
so, since the customer required to point to the same directory, I pointed the subdomain (tech.thisdom.com) exactly to the same directory /httpdocs/

So far, so good so, customer finished tests, and after 7 months not touching the server at all, not changing, anything, not even upgrading, I had the briliant idea and upgraded from 11.x to the latest 11.09, everything went smoothly, and no hassle nor nothing.

The problem arised when I tried to import another domain from another server, so I went to Migration & Transfer Manager and I did the transfer (a normal thing to do that I did several times from other servers to plesk on linux

Apache suddenly stopped and kept saying that the domain name was wrong "httpd: bad user name ..."

so I did the /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Nothing worked.

I removed the "just imported" domain, and seems like this triggered a total reconfiguration that totally wiped my data (httpdocs)

As far as I understand having a domain and a subdomain pointing to exactly the same directory (/httpdocs/) is not acceptable and when you delete the subdomain, it deletes the main directory as well.

My tech people took 3 hours to put the server back online, they had to do several things to re-create the space, and so..

Since the customer requested not to backup (thing that we had to do) there was no step back, but it would not work since this "pointing bug" (main domain and alias) seems like it would not allow to restore the backup either.

Now I'm totally scared to upgrade to version 11.5 due to all this situation and on the other machine that I upgraded to 11.5 backups are wrong

I get the following error: Could not find password for account id '396'. Return empty password and I do not know where to find this "user 396"

Javier
 
Hello,

You can find out your account from plesk DB through following command


Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

select * from sys_users,accounts where accounts.id=sys_users.id;
 
Back
Top