Could not start the `nginx' service

  • Debian 8.7
    I-MSCP upgrade from 1.4.0 to 1.4.2


    Ich bekomme / i get:



    and systemctl status nginx.service sagt:



    Ich hab auch alle Plugins disabled:


    mysql> select plugin_status from plugin;
    +---------------+
    | plugin_status |
    +---------------+
    | disabled |
    | disabled |
    | disabled |
    | disabled |
    | disabled |
    | disabled |
    | disabled |
    +---------------+
    7 rows in set (0.00 sec)


    Irgendwer eine Idee??

    I-MSCP 1.5.3 - Debian 9 Stretch

  • @web4you


    Result of nginx -t ?
    Result of netstat -plunt?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Shell-Script
    1. root@web4you-server-02:/usr/local/src/imscp-1.4.2# nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful

    I-MSCP 1.5.3 - Debian 9 Stretch

    Edited once, last by FloRet88: BBCode added ().

  • @web4you


    use bbcode please!


    Regarding your problem, it seem that there is a resource problem somewhere. So please, check your server resources (memory and so on). Try also to start the service manually. Try to rerun the installer too.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Es bleibt dabei. Jetzt aber Apache2:



    Code
    1. [ERROR] Servers::httpd::apache_php_fpm::start: Could not start the `apache2' service: iMSCP::Provider::Service::Sysvinit::_exec: Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. at /usr/local/src/imscp-1.4.2/engine/PerlLib/iMSCP/Service.pm line 185.[ERROR] autoinstaller::Functions::install: An error occurred while performing installation steps


    Dann mache ich ein: / i do


    apt purge apache*


    und


    apt install apache2


    und

    Shell-Script
    1. root@web4you-server-02:/usr/local/src/imscp-1.4.2# service apache2 restartroot@web4you-server-02:/usr/local/src/imscp-1.4.2#

    Apache läuft also / apache is running

    Shell-Script
    1. root@web4you-server-02:/usr/local/src/imscp-1.4.2# ps -A | grep apache3309 ? 00:00:00 apache23312 ? 00:00:00 apache23313 ? 00:00:00 apache2root@web4you-server-02:/usr/local/src/imscp-1.4.2#

    Dann ein

    Shell-Script
    1. perl imscp-autoinstall -d

    führt zum selben obigen Ergebnis :-( / same error as above


    und / and

    Shell-Script
    1. juerg@web4you-server-02:~$ free -m
    2. total used free shared buffers cached
    3. Mem: 8003 4130 3873 26 502 1809
    4. -/+ buffers/cache: 1818 6185
    5. Swap: 4093 0 4093
    6. juerg@web4you-server-02:~$

    I-MSCP 1.5.3 - Debian 9 Stretch

  • @web4you


    You're talking about nginx and now about Apache2... Clearly, there is really something wrong on your system.


    Please, start by doing:


    Code
    1. # service nginx stop
    2. # service apache2 stop
    3. # pkill -KILL -f apache2
    4. # pkill -KILL -f nginx


    Once done, rerun the installer.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • No chance:


    I-MSCP 1.5.3 - Debian 9 Stretch

  • In line 12 you can see that one or more of your apache2 config files have an iusse.


    Your apache error log have more informations, see line 18.
    Also you can see in line 14 and 15 apache2 can't access to two directorys.

  • @web4you


    Purge all apache2* package correctly and once done, remove the /etc/apache2 directory. Then retry.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Ok i get with:


    root@web4you-server-02:/usr/local/src/imscp-1.4.2# systemctl -l status apache2.service

    Code
    1. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Drop-In: /lib/systemd/system/apache2.service.d └─forking.conf Active: failed (Result: exit-code) since Don 2017-04-06 12:14:09 CEST; 2min 43s ago Process: 2459 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
    2. Apr 06 12:14:09 web4you-server-02 apache2[2459]: The apache2 configtest failed. ... (warning).Apr 06 12:14:09 web4you-server-02 apache2[2459]: Output of config test was:Apr 06 12:14:09 web4you-server-02 apache2[2459]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/admin.web4you-server-02.web4you-gmbh.ch/' for error log of vhost defined at /etc/apache2/imscp/before/PanelRedirect_ssl.conf:1Apr 06 12:14:09 web4you-server-02 apache2[2459]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/admin.web4you-server-02.web4you-gmbh.ch/' for error log of vhost defined at /etc/apache2/imscp/before/PanelRedirect.conf:1Apr 06 12:14:09 web4you-server-02 apache2[2459]: AH00014: Configuration check failedApr 06 12:14:09 web4you-server-02 apache2[2459]: Action 'configtest' failed.Apr 06 12:14:09 web4you-server-02 apache2[2459]: The Apache error log may have more information.Apr 06 12:14:09 web4you-server-02 systemd[1]: apache2.service: control process exited, code=exited status=1Apr 06 12:14:09 web4you-server-02 systemd[1]: Failed to start LSB: Apache2 web server.Apr 06 12:14:09 web4you-server-02 systemd[1]: Unit apache2.service entered failed state.root@web4you-server-02:/usr/local/src/imscp-1.4.2#


    this and so i removed this /etc/apache2/imscp/before/PanelRedirect stuff. And fixed. tnx

    I-MSCP 1.5.3 - Debian 9 Stretch