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

Upgrading to 11 works, but Nginx crashed Plesk

Discussion in 'Plesk 11.x for Linux' started by Elfchen, Jun 23, 2012.

  1. Elfchen

    Elfchen Guest

    0
     
    I have updated to V 11.0.9.

    The update was well and everything worked.

    After that I decided to install nginx.

    Since I installed it no domain is accessable.

    All domains point to:

    I can't find any way to remove nginx to get Plesk working again.

    All vhosts are configurated to 127.0.0.1 for nginx usage and nginx is running, but it seems, that somewhere it did not read configuration files, but I can't find where.

    When I try to restart nginx I get:

    Increasing of ulimit will solve last error (24), but all the others still exists and I did not find where and why.

    For all websites I receive only a 404 error when I try to access them!

    When I now click on stop nginx I get:

    Now when I try to access websites it did not get correct site from vhost path, it displays content of /var/www - Apache default page with: It works ! - funny - nothing works here!

    Back in Plesk panel I get:

    So click on - write new configuration ...

    That returns no error:

    But all domains now point to /var/www and displaying default apache site "it works!"


    Can anyone help to get server back running?
     
    Last edited by a moderator: Jun 23, 2012
  2. Blake@Parallels

    Blake@Parallels Regular Pleskian

    24
    73%
    Joined:
    Jul 28, 2008
    Messages:
    168
    Likes Received:
    0
    Location:
    Seattle, WA
    You can try the following to regenerate the vhost configurations:
    # /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
     
  3. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Nginx Related

    Personally I have note been succesful with nginx that comes with plesk. When I installed it, 40% of the domains were showing 1 particular website which is not even the default for the IP address.

    While I still wait for a clearer and valid solution, do what I did:

    Just go to the control panel -> settings -> services -> and switch off Nginx :
    And if you want it on again, switch it on again from same place.

    Alternatively you can run the commands below:

    /usr/local/psa/admin/bin/nginxmng --disable
    /usr/local/psa/admin/bin/nginxmng --enable
     
  4. TorstenD

    TorstenD Guest

    0
     
    in my Plesk version crashes the Navigation on the left side

    some ideas?
     
  5. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Looks like database of APS controller was not created during upgrade procedure for some reasons. I suggest you contact Support Team. They will correctly create this database for you and fix this issue.

    Details about that issue also answered on the forum:

    http://forum.parallels.com/showthread.php?t=258935
     
  6. TorstenD

    TorstenD Guest

    0
     
    Thx abdi, but i hope someone here can help me.

    After the update everything works fine then i installed ngix as additional component. After install the Navigation crashes

    I use:

    # cat /usr/local/psa/version
    11.0.9 CentOS 5 110120608.16


    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select * from upgrade_history order by upg rade_date desc limit 1'
    +---------------------+--------------+------------+
    | upgrade_date | version_info | db_version |
    +---------------------+--------------+------------+
    | 2012-06-24 20:35:52 | 11.0.9 | 11.0.9 |
    +---------------------+--------------+------------+


    I updated to: psa-11.0.9-cos5.build110120608.16

    in the attached Logfile is somthing about Sitebuilder and Billing, but i`ll never use this.
     

    Attached Files:

  7. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Good thing is since you dont plan to use plesk billing, start by removing it with the commands:

    rpm -e sw-sso plesk-billing plesk-billing-plugins
    /etc/init.d/psa restart

    Then after words, if the problem still persists then:

    Run the autoinstaller and install about anything in list of applications you may not have installed, eg QMail instead of the Postifix or the reverse (Ofcourse you can reverse later)

    Doing that above will prompt plesk to rebuild the APS database and resolve un-finished issues. Let me know how it goes ..
     
  8. TorstenD

    TorstenD Guest

    0
     
    hi,

    i found in my logfiles a part that i have not enough disc space in /usr

    i give them 2gb more and restart psa to see whats happend. the autoupdate process is now still working and i must wait a while.

    i hope this will fix it...
     
  9. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Alright, just let me know how it goes.
     
  10. TorstenD

    TorstenD Guest

    0
     
    now i will reconfigure Plesk, but i don`t find a command line solution. i search for a command that all installed components will reinstall or find a command to deinstall only ngix.

    any ideas?
     
  11. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    yum remove sw-nginx

    That will remove only nginx
     
  12. TorstenD

    TorstenD Guest

    0
     
    ok...

    i remove the ngix and reinstall with plesk, but the error is still available...

    i think i must reinstall the complete plesk 11 version... or find a solution with the database

    ...what a sunday...
     
  13. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Just as a by the way, but sometimes can also help:

    Check that the MySQL server is accepting connections via TCP IP:

    #mysql -h 127.0.0.1 -P 3306 -uadmin -p`cat /etc/psa/.psa.shadow`

    The MySQL server may not be accepting connections via TCP IP because of your firewall settings, network link or MySQL server settings.

    For the MySQL server settings, you can check the /etc/my.cnf folder for the "skip-networking" parameter. If this parameter is present, then the MySQL server will not accept network connections via TCP.

    To enable TCP connections, comment on the "skip-networking" parameter by adding the "#" character ("#skip-networking"). After adding the character, restart the MySQL server by the following command:

    # /etc/init.d/mysqld restart
     
  14. TorstenD

    TorstenD Guest

    0
     
    This works...

    i think this was the first error in /var/log/sw-cp-server/error_log

     
  15. TorstenD

    TorstenD Guest

    0
     
  16. TorstenD

    TorstenD Guest

    0
     
  17. TorstenD

    TorstenD Guest

    0
     
    i try to login to the user GUI, but still the same problem
     

    Attached Files:

  18. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,563
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
    Normally this type of issue occur due to the password mismatch between "misc" table in psa database and "user" table in mysql database.

    In order to fix the issue, try to reset the password in mysql database 'user' table with something like:

    mysql> select * from psa.misc where param like "%aps%";
    +--------------+--------------+
    | param | val |
    +--------------+--------------+
    | aps_database | apsc |
    | aps_host | localhost |
    | aps_login | apsc |
    | aps_password | t**********P |
    | aps_port | 3306 |
    +--------------+--------------+
    5 rows in set (0.00 sec)

    mysql> update mysql.user set password=PASSWORD('t*********P') where User='apsc';

    After that run bootstrapper repair procedure.
     
    Last edited: Jun 25, 2012
  19. Blake@Parallels

    Blake@Parallels Regular Pleskian

    24
    73%
    Joined:
    Jul 28, 2008
    Messages:
    168
    Likes Received:
    0
    Location:
    Seattle, WA
    To be clear, the password to use in single quotes in the mySQL 'update' command should be the same as returned from the previous 'select' query.

    After this, the bootstrapper command line is:

    # /usr/local/psa/bootstrapper/pp11.0.9-bootstrapper/bootstrapper.sh repair
     
  20. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Torsten, please let us know if that worked for you ...
     
Loading...