ISPConfig went nuts

Discussion in 'Installation/Configuration' started by Tomislav Kopić, Oct 26, 2017.

  1. Tomislav Kopić

    Tomislav Kopić New Member

    We've noticed that the ISPConfig on one of our servers didn't create the vhosts file
    We are running on Debian Jessie with Nginx 1.6.2

    Everything worked fine until a month ago when the vhosts file generation failed
    I've had some time to try fix it and this is what i've discovered

    while creating a site trough ISPConfig the debug says this:
    26.10.2017-09:13 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:13 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-tomislav.com.vhost->/etc/apache2/sites-available/tomislav.com.vhost

    But when deleting the created site i get this
    26.10.2017-09:12 - DEBUG - Removing vhost file: /etc/nginx/sites-available/tomislav.com.vhost
    26.10.2017-09:12 - DEBUG - Removing website: /var/www/clients/client0/web14
    26.10.2017-09:12 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/tomislav.com


    Database does not contain any paths like
    /etc/apache2/

    and we are running on NGINX, i've never seen anything like this
    As far as i know the apache has never been instaled on this server and is not currently installed here
    nginx is running as normal and every config in the ISPC says NGINX is in charge
    I've tried to simlink /etc/apache2 to /etc/nginx but it did not help, ISPC just created an empty vhosts

    I'd be greatfull if you could help me out on this one, Thanks!
     
  2. Tomislav Kopić

    Tomislav Kopić New Member

    THe log is here
    26.10.2017-09:12 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    26.10.2017-09:12 - DEBUG - Checking nginx configuration...
    26.10.2017-09:12 - DEBUG - nginx configuration ok!
    26.10.2017-09:12 - DEBUG - Restarting httpd: systemctl reload nginx.service
    26.10.2017-09:12 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:13 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:13 - DEBUG - Found 1 changes, starting update process.
    26.10.2017-09:13 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    26.10.2017-09:13 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    26.10.2017-09:13 - DEBUG - Adding the user: web15
    26.10.2017-09:13 - DEBUG - Creating symlink: ln -s /var/www/clients/client0/web15/ /var/www/tomislav.com
    26.10.2017-09:13 - DEBUG - Creating symlink: ln -s /var/www/clients/client0/web15/ /var/www/clients/client0/tomislav.com
    26.10.2017-09:13 - DEBUG - exec: chown -R web15:client0 /var/www/clients/client0/web15/web
    26.10.2017-09:13 - DEBUG - exec: chown web15:client0 /var/www/clients/client0/web15/web
    26.10.2017-09:13 - DEBUG - exec: usermod --groups sshusers web15 2>/dev/null
    26.10.2017-09:13 - DEBUG - Could not check apache version, apachectl not found.
    26.10.2017-09:13 - WARNING - Action aborted, file is a symlink: /etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:13 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:13 - WARNING - Action aborted, file is a symlink: /etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:13 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-tomislav.com.vhost->/etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:13 - WARNING - No awstats base config found. Either awstats.conf or awstats.model.conf must exist in /etc/awstats.
    26.10.2017-09:13 - DEBUG - Apache status is: running
    26.10.2017-09:13 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    26.10.2017-09:13 - DEBUG - Checking nginx configuration...
    26.10.2017-09:13 - DEBUG - nginx configuration ok!
    26.10.2017-09:13 - DEBUG - Restarting httpd: systemctl restart nginx.service
    26.10.2017-09:13 - DEBUG - Apache restart return value is: 0
    26.10.2017-09:13 - DEBUG - Apache online status after restart is: running
    26.10.2017-09:13 - DEBUG - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_insert'.
    26.10.2017-09:13 - DEBUG - Calling function 'insert' from plugin 'nginx_plugin' raised by event 'web_domain_insert'.
    26.10.2017-09:13 - WARNING - The nginx plugin cannot be used together with the apache2 plugin.
    26.10.2017-09:13 - DEBUG - Processed datalog_id 180
    26.10.2017-09:13 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:14 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:14 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:15 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:15 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:16 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:16 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:17 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:17 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:18 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:18 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:19 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:19 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:20 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:20 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:21 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:21 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:22 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:22 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:23 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:23 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:24 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:24 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:25 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:25 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:26 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:26 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:27 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:27 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:28 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:28 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:29 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:29 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:30 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:30 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    26.10.2017-09:31 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    26.10.2017-09:31 - DEBUG - Found 1 changes, starting update process.
    26.10.2017-09:31 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    26.10.2017-09:31 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    26.10.2017-09:31 - DEBUG - Removing vhost file: /etc/apache2/sites-available/tomislav.com.vhost
    26.10.2017-09:31 - DEBUG - Removing website: /var/www/clients/client0/web15
    26.10.2017-09:31 - DEBUG - Removing symlink: /var/www/tomislav.com
    26.10.2017-09:31 - DEBUG - Removing symlink: /var/www/clients/client0/tomislav.com
    26.10.2017-09:31 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/tomislav.com
    26.10.2017-09:31 - DEBUG - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_delete'.
    26.10.2017-09:31 - DEBUG - Calling function 'delete' from plugin 'nginx_plugin' raised by event 'web_domain_delete'.
    26.10.2017-09:31 - DEBUG - Removing symlink: /etc/nginx/sites-enabled/100-tomislav.com.vhost->/etc/nginx/sites-available/tomislav.com.vhost
    26.10.2017-09:31 - DEBUG - Removing vhost file: /etc/nginx/sites-available/tomislav.com.vhost
    26.10.2017-09:31 - DEBUG - Removing website: /var/www/clients/client0/web15
    26.10.2017-09:31 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/tomislav.com
    26.10.2017-09:31 - DEBUG - Processed datalog_id 181
    26.10.2017-09:31 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    26.10.2017-09:31 - DEBUG - Checking nginx configuration...
    26.10.2017-09:31 - DEBUG - nginx configuration ok!
    26.10.2017-09:31 - DEBUG - Restarting httpd: systemctl reload nginx.service
    26.10.2017-09:31 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /usr/local/ispconfig/server/plugins-enabled/

    from the affected server.
     
  4. Tomislav Kopić

    Tomislav Kopić New Member

    Hello,

    Here's the output


    lrwxrwxrwx 1 root root 68 Jun 20 08:36 apache2_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php
    lrwxrwxrwx 1 root root 71 May 29 12:57 apps_vhost_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apps_vhost_plugin.inc.php
    lrwxrwxrwx 1 root root 64 May 29 12:57 aps_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/aps_plugin.inc.php
    lrwxrwxrwx 1 root root 67 May 29 12:57 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx 1 root root 65 May 29 12:57 bind_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
    lrwxrwxrwx 1 root root 73 May 29 12:57 cron_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php
    lrwxrwxrwx 1 root root 65 May 29 12:57 cron_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_plugin.inc.php
    -rwxr-x--- 1 root root 45 Oct 26 07:48 empty.dir
    lrwxrwxrwx 1 root root 69 May 29 12:57 firewall_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/firewall_plugin.inc.php
    lrwxrwxrwx 1 root root 73 May 29 12:57 ftpuser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/ftpuser_base_plugin.inc.php
    lrwxrwxrwx 1 root root 68 May 29 12:57 getmail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/getmail_plugin.inc.php
    lrwxrwxrwx 1 root root 72 May 29 12:57 maildeliver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/maildeliver_plugin.inc.php
    lrwxrwxrwx 1 root root 68 May 29 12:57 mailman_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mailman_plugin.inc.php
    lrwxrwxrwx 1 root root 70 May 29 12:57 mail_plugin_dkim.inc.php -> /usr/local/ispconfig/server/plugins-available/mail_plugin_dkim.inc.php
    lrwxrwxrwx 1 root root 65 May 29 12:57 mail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mail_plugin.inc.php
    lrwxrwxrwx 1 root root 75 May 29 12:57 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx 1 root root 77 May 29 12:57 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx 1 root root 66 May 29 12:57 nginx_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php
    lrwxrwxrwx 1 root root 75 May 29 12:57 postfix_filter_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_filter_plugin.inc.php
    lrwxrwxrwx 1 root root 75 May 29 12:57 postfix_server_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_server_plugin.inc.php
    lrwxrwxrwx 1 root root 75 May 29 12:57 shelluser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php
    lrwxrwxrwx 1 root root 78 May 29 12:57 shelluser_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php
    lrwxrwxrwx 1 root root 76 May 29 12:57 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
    lrwxrwxrwx 1 root root 70 May 29 12:57 webserver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/webserver_plugin.inc.php
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The apache and nginx plugin are enabled on your server. Please remove the symlink to the apache plugin:
    rm -f /usr/local/ispconfig/server/plugins-enabled/apache2_plugin.inc.php
     
  6. Tomislav Kopić

    Tomislav Kopić New Member

    Thanks,
    That worked :)
    Do you have any idea how did they both get activated?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Not really, never had that on my servers. But it might be that the ISPConfig updater asks if it shall configure apache as well when it finds the apache binary, the default is no, but when the person who run the update has chosen yes there, then the apache plugin will be activated besides the nginx plugin.
     
  8. Tomislav Kopić

    Tomislav Kopić New Member

    Hmm, it was probably one of the colleagues then , thanks for your help :)
     
  9. abdi

    abdi Member

    Hello Till, humble request to help ...
    See my plugins, however, I continually get that error (PHP Warning: symlink(): File exists in /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php on line 1844) on almost all domain names:
    Code:
    malta:# ls -la /usr/local/ispconfig/server/plugins-enabled/
    total 72
    drwxr-s---  2 root root 4096 Oct 17 16:00 .
    drwxr-s--- 14 root root 4096 Mar  5  2019 ..
    lrwxrwxrwx  1 root root   71 Dec 16  2015 apps_vhost_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apps_vhost_plugin.inc.php
    lrwxrwxrwx  1 root root   64 Dec 16  2015 aps_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/aps_plugin.inc.php
    lrwxrwxrwx  1 root root   67 Dec 16  2015 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx  1 root root   73 Dec 16  2015 cron_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php
    lrwxrwxrwx  1 root root   65 Dec 16  2015 cron_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_plugin.inc.php
    -rwxr-x---  1 root root   45 Feb 27 18:17 empty.dir
    lrwxrwxrwx  1 root root   69 Dec 16  2015 firewall_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/firewall_plugin.inc.php
    lrwxrwxrwx  1 root root   73 Dec 16  2015 ftpuser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/ftpuser_base_plugin.inc.php
    lrwxrwxrwx  1 root root   75 Dec 16  2015 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx  1 root root   77 Dec 16  2015 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx  1 root root   66 Dec 16  2015 nginx_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php
    lrwxrwxrwx  1 root root   75 Dec 16  2015 shelluser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php
    lrwxrwxrwx  1 root root   78 Dec 16  2015 shelluser_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php
    lrwxrwxrwx  1 root root   76 Dec 16  2015 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
    lrwxrwxrwx  1 root root   70 Jun  9  2017 webserver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/webserver_plugin.inc.php
    lrwxrwxrwx  1 root root   84 Oct 17 16:00 z_php_fpm_incron_reload_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/z_php_fpm_incron_reload_plugin.inc.php
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Your issue is just a info message and not an error and it can be ignored plus it should not occur in current ISPConfig, at least not in stable-3.1. Please make new threads if you have such a question as your post is not related to this thread as far as I can see.
     

Share This Page