1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

all sites point to default vhost from time to time

Discussion in 'Plesk 11.x for Linux' started by wombat, Jun 29, 2012.

  1. wombat

    wombat Guest

    0
     
    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
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    In Tools & Settings -> do you have apache restart invertal set to 0?
     
  3. wombat

    wombat Guest

    0
     
    yes, the apache restart interval is set to zero.
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    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.
     
  5. wombat

    wombat Guest

    0
     
    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
     
  6. Nikolay.

    Nikolay. Silver Pleskian

    17
    35%
    Joined:
    Jul 1, 2012
    Messages:
    844
    Likes Received:
    2
    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.
     
  7. LennyM

    LennyM New Pleskian

    10
    35%
    Joined:
    Jul 10, 2012
    Messages:
    7
    Likes Received:
    0
    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: Jul 10, 2012
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Yeah that is true and now this has become a daily bread on Plesk 11.* especially if you are running Nginx.
     
  9. cubera

    cubera Guest

    0
     
    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.
     
  10. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Disabling Nginx seems to resolve that problem permanently ...Its worked for me atleast.
     
  11. cubera

    cubera Guest

    0
     
    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: Jul 18, 2012
  12. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  13. cubera

    cubera Guest

    0
     
    ---------------------------------------------------------------
    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
    --------------------------------------------------------------
     
  14. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Thank you. I have escalated report to developers. I will update thread with results.
     
  15. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    cubera, could you please describe in more details what exactly you have changed in Service Plan and how exactly Apache config was corrupted?
     
  16. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    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.
     
  17. cubera

    cubera Guest

    0
     
    I did change the PHP settings like memory_limit, open_basedir, short_open_tag for our Service Plan.

    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.
     
  18. Achraf

    Achraf Basic Pleskian

    14
    85%
    Joined:
    Sep 18, 2011
    Messages:
    40
    Likes Received:
    0
    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 :
    Leaving line 6 as :
    And insert the following at line 132 :
    (This will only insert these directives if Nginx is enabled)

    good luck
     
    Last edited: Jul 19, 2012
  19. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Achraf, you are positive that this port loading problem has been resolved in Nginx with MU 5?
     
  20. Achraf

    Achraf Basic Pleskian

    14
    85%
    Joined:
    Sep 18, 2011
    Messages:
    40
    Likes Received:
    0
    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.
     
Loading...