• 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

all sites point to default vhost from time to time

W

wombat

Guest
hi!

i have a rather disturbing problem. from time to time when working with plesk, all vhosts get "resetted" and point to the default vhost for the configured domain, thus beeing not accessible.

last time this happened when i added a service plan and switched some subscriptions. i have to run httpmng --reconfigure-all to get this fixed. then everything is fine again, but it kind of makes me scared to have to check if everything is still running everytime I log in and work with plesk :-/

regards,
andreas
 
Whenever I got this problem, I went to the control panel and reset the DNS records for the domain name that shows up when the vhosts go a mess ...

Then I repair the vhosts with
Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

And usually that resolves the problem almost permanently ...
Otherwise, in your case if the problem still persists then you would have to switch of nginx untill you resolve it. Disabling nginx resolves it permanently.
 
hi!

yes, this is a fix if the problem happens. but it's not a solution to solve this problem. i don't want to have to check all (!) domains after i added a new email account to one domain just to be sure everything is still up and running ;)

nginx is disabled on this server. just plain apache2 with fastcgi/php.

regards,
andreas
 
wombat, does simple services reload or restart fix your problem (Apache only, since you don't use NGINX)? If not, could you post difference between Apache configuration files before and after fix via 'httpdmng --reconfigure-all' ? Also check whether configuration files for vhosts with issues are included via /usr/local/psa/admin/conf/vhosts_bootstrap.conf when the issue is present.
 
I have the same problem. After i added a new subdomain all domains but the new point to the default vhost.

only httpmng --reconfigure-all fixed the problem.

if i add a subdomain during nginx is disabled all fine
 
Last edited:
Yeah that is true and now this has become a daily bread on Plesk 11.* especially if you are running Nginx.
 
Having the same problem, needs urgent fix

I think this is a problem that should be fixed with high priority.

I changed a webhosting setting for one domain and a few others stopped working. Very hard to find out, and very random!

Parallels, please have a look at this.
 
Disabling Nginx seems to resolve that problem permanently ...Its worked for me atleast.
 
Not for me. I disabled nginx at first, but the problem was still there.
I have to be very careful the next few days to check how stable the plesk is running.

The real bad thing is, plesk is showing a website from another account for the corrupted accounts.
 
Last edited by a moderator:
---------------------------------------------------------------
PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE

Plesk, 11.0.9, #5, CentOS 6.2, x86_64

PROBLEM DESCRIPTION

I did a change to the PHP settings in our Service Plan and Saved & Synchronized.
After this, most (but not all) of the sites where corrupted and showing plesk default site or the page of another account on the server.
First thing I did, disable nginx, which solved the problem for a few account but others, which were working before, got corrupted. The I tried to solve some of the accounts by changing settings so that the apache config needs to be rebuilt. But this leaded to the same random behaviour.
Finally I run /usr/local/psa/admin/sbin/httpdmng --reconfigure-all to successfully rebuild the config.

STEPS TO REPRODUCE

Try to change Service Plan settings and check all the accounts. We have 70 accounts on the server.

ACTUAL RESULT

Apache config corrupted.

EXPECTED RESULT

Apache config superb correct.

ANY ADDITIONAL INFORMATION
--------------------------------------------------------------
 
Thank you. I have escalated report to developers. I will update thread with results.
 
cubera, could you please describe in more details what exactly you have changed in Service Plan and how exactly Apache config was corrupted?
 
Please provide also output of following SQL query

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'select * from Configurations where file like "%domain.com%"'

where domain.com is name of problem domain.
 
I did change the PHP settings like memory_limit, open_basedir, short_open_tag for our Service Plan.

::: (root@zebra)-(/home/admin)-(13:44:47 07/18/12)
::: mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'select * from Configurations where file like "%cxx.ch%"'
+-----+------------------+---------------+-----------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+
| id | name | serviceNodeId | file | version | objectType | objectId | status | description | active |
+-----+------------------+---------------+-----------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+
| 22 | domainVhost | 1 | /var/www/vhosts/cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 10 | ok | NULL | true |
| 68 | domainVhost | 1 | /var/www/vhosts/clients.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 33 | ok | NULL | true |
| 70 | domainVhost | 1 | /var/www/vhosts/labs.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 34 | ok | NULL | true |
| 72 | domainVhost | 1 | /var/www/vhosts/m.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 35 | ok | NULL | true |
| 74 | domainVhost | 1 | /var/www/vhosts/update.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 36 | ok | NULL | true |
| 111 | domainVhost | 1 | /var/www/vhosts/sms.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 54 | ok | NULL | true |
| 131 | domainVhost | 1 | /var/www/vhosts/cloud.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 64 | ok | NULL | true |
| 229 | domainVhost | 1 | /var/www/vhosts/2012.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 114 | ok | NULL | true |
| 235 | domainVhost | 1 | /var/www/vhosts/microtest.cxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 117 | ok | NULL | true |
| 244 | nginxDomainVhost | 1 | /var/www/vhosts/cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 10 | ok | NULL | false |
| 263 | nginxDomainVhost | 1 | /var/www/vhosts/clients.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 33 | ok | NULL | false |
| 264 | nginxDomainVhost | 1 | /var/www/vhosts/labs.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 34 | ok | NULL | false |
| 265 | nginxDomainVhost | 1 | /var/www/vhosts/m.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 35 | ok | NULL | false |
| 266 | nginxDomainVhost | 1 | /var/www/vhosts/update.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 36 | ok | NULL | false |
| 279 | nginxDomainVhost | 1 | /var/www/vhosts/sms.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 54 | ok | NULL | false |
| 289 | nginxDomainVhost | 1 | /var/www/vhosts/cloud.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 64 | ok | NULL | false |
| 328 | nginxDomainVhost | 1 | /var/www/vhosts/2012.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 114 | ok | NULL | false |
| 329 | nginxDomainVhost | 1 | /var/www/vhosts/microtest.cxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 117 | ok | NULL | false |
+-----+------------------+---------------+-----------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+
::: (root@zebra)-(/home/admin)-(13:44:54 07/18/12)
::: mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'select * from Configurations where file like "%yxx.ch%"'
+-----+------------------+---------------+---------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+
| id | name | serviceNodeId | file | version | objectType | objectId | status | description | active |
+-----+------------------+---------------+---------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+
| 207 | domainVhost | 1 | /var/www/vhosts/yxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 102 | ok | NULL | true |
| 209 | domainVhost | 1 | /var/www/vhosts/clients.yxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 103 | ok | NULL | true |
| 211 | domainVhost | 1 | /var/www/vhosts/exchange.yxx.ch/conf/13426021480.11731600_httpd.include | 13426021480.11731600 | domain | 104 | ok | NULL | true |
| 318 | nginxDomainVhost | 1 | /var/www/vhosts/yxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 102 | ok | NULL | false |
| 319 | nginxDomainVhost | 1 | /var/www/vhosts/clients.yxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 103 | ok | NULL | false |
| 320 | nginxDomainVhost | 1 | /var/www/vhosts/exchange.yxx.ch/conf/13426018220.53177900_nginx.conf | 13426018220.53177900 | nginxDomain | 104 | ok | NULL | false |
+-----+------------------+---------------+---------------------------------------------------------------------------+----------------------+-------------+----------+--------+-------------+--------+

I don't know how the Apache config was looking between the change of the Service Plan and the fix. I was busy get the websites running again.
 
Hello;
I had the same problem after installing nginx, but the problem resolved and after the step.

1- But after installing patches # 5.

2- Uninstalled Nginx and install it again and solve.
yum remove nginx-sw

3- The problem of port 7080 Nginx.

creat
/usr/local/psa/admin/conf/templates/custom/
/usr/local/psa/admin/conf/templates/custom/domain/

Edit /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php

You should remove the following from line 6 :
:<?php echo $OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort ?>

Leaving line 6 as :
ServerName "<?php echo $VAR->domain->asciiName ?>"

And insert the following at line 132 :
<?php if ($VAR->server->webserver->proxyActive) echo "UseCanonicalName On\nUseCanonicalPhysicalPort Off\n"; ?>

(This will only insert these directives if Nginx is enabled)

good luck
 
Last edited:
Achraf, you are positive that this port loading problem has been resolved in Nginx with MU 5?
 
not sure,
because I did uninstall nginx first and installed again.
Now I enabled nginx and I did a lot of stats SEVERAL field and it works very well.
 
Back
Top