Apache2 down after adding new domain through GUI

  • Hello I-mscp Community!
    First of all, im enjoying this FREE product cuz is the best in FREE Category
    Thanks Developers and all who have contributed in this project!


    Now my question is this,
    I was working fine with I-mscp till an error happend (About adding domains).
    I founded the solution here and the error disappeared but Now when i add Domains/Sub-domains or Records, i need to restart the services to from SSH.
    Is there any script or what to do in this case? I have a lot of domains hosted and around 2TB data in the server.


    My imscp version is 1.5.1 and my OS is Debian 8 Jessie.


    Thanks in advance :)

  • 1. What was the error?
    2. Which service do you need to restart?
    3. Any log details? (like service status?)

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • Now it doesnt have error it seems working good
    but when i try tu add domain
    i need te restart apache2
    for every domain or subdomain
    otherwise it shows Site not found default page.


    i've checked every log file but nothing just domain logs, access log and error log
    nothing in imscp log folder ..


    is there any file that has the auto process reloading services after adding domain? or any imscp command fix. without losing data...


    thanks a lot :)

  • What is the output this command?
    service apache2 status


    /var/log/apache2/error.log details?


    Do you use PhpSwitcher plugin?
    In this case /var/log/phpswitcher/*.log is usefull too.


    imscp_daemon service running?

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • Code
    1. root@mail:~# service apache2 status ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Drop-In: /lib/systemd/system/apache2.service.d └─forking.conf Active: active (running) since Mon 2018-05-14 15:26:03 CEST; 9h ago Process: 8710 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 17657 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 8743 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─1283 /usr/sbin/apache2 -k start ├─1291 /usr/sbin/apache2 -k start ├─1310 /usr/sbin/apache2 -k start ├─1313 /usr/sbin/apache2 -k start ├─1318 /usr/sbin/apache2 -k start ├─1325 /usr/sbin/apache2 -k start ├─1328 /usr/sbin/apache2 -k start ├─1330 /usr/sbin/apache2 -k start ├─1340 /usr/sbin/apache2 -k start ├─1351 /usr/sbin/apache2 -k start ├─1353 /usr/sbin/apache2 -k start ├─1365 /usr/sbin/apache2 -k start ├─1366 /usr/sbin/apache2 -k start ├─1367 /usr/sbin/apache2 -k start ├─8758 /usr/sbin/apache2 -k start ├─8761 vlogger (access log) ├─8762 /usr/sbin/apache2 -k start └─8763 /usr/sbin/fcgi-pm -k start May 14 15:26:03 mail apache2[8743]: Starting web server: apache2. May 14 15:26:03 mail systemd[1]: Started LSB: Apache2 web server. root@mail:~#