ERROR 500 - Internal Server Error! after update to 3.1

Discussion in 'Installation/Configuration' started by Aivaras, Sep 29, 2016.

  1. Aivaras

    Aivaras Member

    I have updated my multiserver system, after update control panel works good but my website in the /web directory at the same server .
    ERROR 500 - Internal Server Error!
    Files are accessible directl(images, html files), ftp accessible, database ok, server online, but not php files in pulic directory ...
    ------------------------
    root@web:~# /usr/local/ispconfig/server/server.sh

    28.09.2016-18:35 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    28.09.2016-18:35 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.

    no any info.. :/

    -------
    And error in site configoration page:
    CONFIGURATION ERROR

    2016-09-28 18:18 :
    Syntax error on line 160 of /etc/apache2/sites-enabled/900-(mysite.name).vhost:
    RewriteCond: bad flag delimiters
    Action 'configtest' failed.
    The Apache error log may have more information.
    failed!

    ----------------------

    Please help..
     
    Last edited: Sep 29, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log file of the website to find the reason for the 500 error and post line 160 of the /etc/apache2/sites-enabled/900-(mysite.name).vhost
     
  3. Aivaras

    Aivaras Member

    after update another server I have critical error. All sites have error 500
    Web serber not started... Error log have 1000s messages
    ---------------------
    [....] Restarting web server: apache2[Sat Oct 01 15:14:29 2016] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match be
    cause it overlaps an earlier Alias.
    [Sat Oct 01 15:14:29 2016] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Sat Oct 01 15:14:29 2016] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
    [Sat Oct 01 15:14:29 2016] [warn] NameVirtualHost *:443 has no VirtualHosts
    (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    --------------------
    Code:
    [Sat Oct 01 15:27:55 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:27:55 2016] [notice] Digest: done
    [Sat Oct 01 15:27:55 2016] [notice] FastCGI: process manager initialized (pid 28389)
    [Sat Oct 01 15:27:55 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:27:55 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:27:55 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:27:55 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:27:55 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:27:55 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:27:56 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:27:56 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:27:57 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:27:57 2016] [notice] Digest: done
    [Sat Oct 01 15:27:57 2016] [notice] FastCGI: process manager initialized (pid 28470)
    [Sat Oct 01 15:27:57 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:27:57 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:27:57 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:27:57 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:27:57 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:27:57 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:27:59 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:28:00 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:28:00 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:28:00 2016] [notice] Digest: done
    [Sat Oct 01 15:28:00 2016] [notice] FastCGI: process manager initialized (pid 28585)
    [Sat Oct 01 15:28:00 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:28:00 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:28:00 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:28:00 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:28:00 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:28:00 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:28:02 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:28:03 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:28:04 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:28:04 2016] [notice] Digest: done
    [Sat Oct 01 15:28:04 2016] [notice] FastCGI: process manager init
    
    [Sat Oct 01 15:28:56 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:28:57 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:28:57 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:28:57 2016] [notice] Digest: done
    [Sat Oct 01 15:28:57 2016] [notice] FastCGI: process manager initialized (pid 31169)
    [Sat Oct 01 15:28:57 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:28:57 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:28:57 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:28:57 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:28:57 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:28:57 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:29:00 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:29:02 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:29:02 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:29:02 2016] [notice] Digest: done
    [Sat Oct 01 15:29:02 2016] [notice] FastCGI: process manager initialized (pid 31545)
    [Sat Oct 01 15:29:02 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:29:02 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:29:02 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:29:02 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:29:02 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:29:02 2016] [error] [client 85.254.73.221] script '/var/www/button.php' not found or unable to stat, referer: http://www.pornuha.lv/
    [Sat Oct 01 15:29:02 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:29:03 2016] [notice] caught SIGTERM, shutting down
    [Sat Oct 01 15:29:03 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Sat Oct 01 15:29:03 2016] [notice] Digest: generating secret for digest authentication ...
    [Sat Oct 01 15:29:03 2016] [notice] Digest: done
    [Sat Oct 01 15:29:03 2016] [notice] FastCGI: process manager initialized (pid 32026)
    [Sat Oct 01 15:29:03 2016] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
    [Sat Oct 01 15:29:03 2016] [error] python_init: Python executable found '/usr/bin/python'.
    [Sat Oct 01 15:29:03 2016] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/p$
    [Sat Oct 01 15:29:03 2016] [notice] mod_python: Creating 8 session mutexes based on 1600 max processes and 0 max threads.
    [Sat Oct 01 15:29:03 2016] [notice] mod_python: using mutex_directory /tmp
    [Sat Oct 01 15:29:03 2016] [notice] Apache/2.2.22 (Debian) DAV/2 SVN/1.6.17 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.6 PHP/5.4.45-0+deb7u5 mod_pyt$
    [Sat Oct 01 15:29:04 2016] [error] [client 192.243.55.129] File does not exist: /var/www/language
    [Sat Oct 01 15:29:05 2016] [notice] caught SIGTERM, shutting down
     
  4. Aivaras

    Aivaras Member

    apache2: bad group name www-data
    Action 'configtest' failed.
     
  5. Aivaras

    Aivaras Member

    All sites shows default web page:
    -----------
    It works!
    This is the default web page for this server.

    The web server software is running but no content has been added, yet.
     
  6. Aivaras

    Aivaras Member

    Debug:
    Code:
    01.10.2016-18:06 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    01.10.2016-18:06 - DEBUG - Found 2 changes, starting update process.
    01.10.2016-18:06 - DEBUG - Replicated from master: REPLACE INTO `server` (`server_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_othe
    r`,`server_name`,`mail_server`,`web_server`,`dns_server`,`file_server`,`db_server`,`vserver_server`,`proxy_server`,`firewall_server`,`xmpp_server`,`config`,`upd
    ated`,`mirror_server_id`,`dbversion`,`active`) VALUES ('3','1','1','riud','riud','r','001fr-web.hostingex.net','1','1','0','1','1','0','0','1','0','[permissions
    ]\nallow_shell_user=yes\nadmin_allow_server_config=superadmin\nadmin_allow_server_services=superadmin\nadmin_allow_server_ip=superadmin\nadmin_allow_remote_user
    s=superadmin\nadmin_allow_system_config=superadmin\nadmin_allow_server_php=superadmin\nadmin_allow_langedit=superadmin\nadmin_allow_new_admin=superadmin\nadmin_
    allow_del_cpuser=superadmin\nadmin_allow_cpuser_group=superadmin\nadmin_allow_firewall_config=superadmin\nadmin_allow_osupdate=superadmin\nadmin_allow_software_
    packages=superadmin\nadmin_allow_software_repo=superadmin\nremote_api_allowed=yes\npassword_reset_allowed=yes\nsession_regenerate_id=yes\n\n[ids]\nids_enabled=n
    o\nids_log_level=1\nids_warn_level=5\nids_block_level=100\nsql_scan_enabled=yes\nsql_scan_action=warn\napache_directives_scan_enabled=yes\n\n[systemcheck]\nsecu
    rity_admin_email=root@localhost\nsecurity_admin_email_subject=Security alert from server\nwarn_new_admin=yes\nwarn_passwd_change=no\nwarn_shadow_change=no\nwarn
    _group_change=no\n\n[global]\nwebserver=apache\nmailserver=postfix\ndnsserver=mydns\n\n[server]\nauto_network_configuration=n\nip_address=195.154.222.26\nnetmas
    k=255.255.255.0\nv6_prefix=\ngateway=195.154.222.1\nfirewall=bastille\nhostname=001fr-web.hostingex.net\nnameservers=8.8.8.8,8.8.4.4\nloglevel=0\nadmin_notify_e
    vents=3\nbackup_dir=/var/backup\nbackup_dir_is_mount=n\nbackup_mode=userzip\nbackup_time=0:00\nbackup_delete=n\nmonit_url=\nmonit_user=\nmonit_password=\nmunin_
    url=\nmunin_user=\nmunin_password=\nmonitor_system_updates=y\n\n[mail]\nmodule=postfix_mysql\nmaildir_path=/var/vmail/[domain]/[localpart]\nhomedir_path=/var/vm
    ail\nmaildir_format=maildir\ndkim_path=/var/lib/amavis/dkim\ndkim_strength=1024\npop3_imap_daemon=dovecot\nmail_filter_syntax=sieve\nmailuser_uid=5000\nmailuser
    _gid=5000\nmailuser_name=vmail\nmailuser_group=vmail\nmailbox_virtual_uidgid_maps=n\nrelayhost=\nrelayhost_user=\nrelayhost_password=\nmailbox_size_limit=0\nmes
    sage_size_limit=0\nmailbox_quota_stats=y\nrealtime_blackhole_list=sbl.spamhaus.org\noverquota_notify_admin=y\noverquota_notify_client=y\noverquota_notify_freq=7
    \noverquota_notify_onok=n\nsendmail_path=/usr/sbin/sendmail\n\n[getmail]\ngetmail_config_dir=/etc/getmail\n\n[web]\nserver_type=apache\nwebsite_basedir=/var/www
    \nwebsite_path=/var/www/clients/client[client_id]/web[website_id]\nwebsite_symlinks=/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domai
    n]/\nwebsite_symlinks_rel=n\nnetwork_filesystem=n\nvhost_conf_dir=/etc/apache2/sites-available\nvhost_conf_enabled_dir=/etc/apache2/sites-enabled\nnginx_vhost_c
    onf_dir=/etc/nginx/sites-available\nnginx_vhost_conf_enabled_dir=/etc/nginx/sites-enabled\nsecurity_level=20\nuser=www-data\ngroup=www-data\nnginx_user=www-data
    \nnginx_group=www-data\napps_vhost_enabled=y\napps_vhost_port=8081\napps_vhost_ip=_default_\napps_vhost_servername=\nphp_open_basedir=[website_path]/web:[websit
    e_path]/private:[website_path]/tmp:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/ph
    pmyadmin:/var/lib/phpmyadmin\nhtaccess_allow_override=All\nawstats_conf_dir=/etc/awstats\nawstats_data_dir=/var/lib/awstats\nawstats_pl=/usr/lib/cgi-bin/awstats
    .pl\nawstats_buildstaticpages_pl=/usr/share/awstats/tools/awstats_buildstaticpages.pl\nphp_ini_path_apache=/etc/php5/apache2/php.ini\nphp_ini_path_cgi=/etc/php5
    /cgi/php.ini\ncheck_apache_config=y\nenable_sni=y\nenable_spdy=n\nenable_ip_wildcard=y\novertraffic_notify_admin=y\novertraffic_notify_client=y\nnginx_cgi_socke
    t=/var/run/fcgiwrap.socket\nphp_fpm_init_script=php5-fpm\nphp_fpm_ini_path=/etc/php5/fpm/php.ini\nphp_fpm_pool_dir=/etc/php5/fpm/pool.d\nphp_fpm_start_port=9010
    \nphp_fpm_socket_dir=/var/lib/php5-fpm\nset_folder_permissions_on_update=n\nadd_web_users_to_sshusers_group=y\nconnect_userid_to_webid=n\nconnect_userid_to_webi
    d_start=10000\nweb_folder_protection=y\nphp_ini_check_minutes=1\noverquota_notify_admin=y\noverquota_notify_client=y\noverquota_notify_freq=7\noverquota_db_noti
    fy_admin=y\noverquota_db_notify_client=y\noverquota_notify_onok=n\nwebsite_autoalias=[website_domain]\nCA_path=\nCA_pass=\n\n[dns]\nbind_user=root\nbind_group=b
    ind\nbind_zonefiles_dir=/etc/bind\nnamed_conf_path=/etc/bind/named.conf\nnamed_conf_local_path=/etc/bind/named.conf.local\ndisable_bind_log=n\n\n[fastcgi]\nfast
    cgi_starter_path=/var/www/php-fcgi-scripts/[system_user]/\nfastcgi_starter_script=.php-fcgi-starter\nfastcgi_alias=/php/\nfastcgi_phpini_path=/etc/php5/cgi/\nfa
    stcgi_children=8\nfastcgi_max_requests=5000\nfastcgi_bin=/usr/bin/php-cgi\nfastcgi_config_syntax=1\n\n[jailkit]\njailkit_chroot_home=/home/[username]\njailkit_c
    hroot_app_sections=basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh\njailkit_chroot_app_programs=/usr/bin/groups /usr/bin/id /usr/bin/dircol
    ors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico\njailkit_chroot_cron_programs=/usr/bin/php /usr/bin/perl /usr/share/perl /u
    sr/share/php\n\n[vlogger]\nconfig_dir=/etc\n\n[cron]\ninit_script=cron\ncrontab_dir=/etc/cron.d\nwget=/usr/bin/wget\n\n[rescue]\ntry_rescue=n\ndo_not_try_rescue
    
     
  7. Aivaras

    Aivaras Member

    Code:
    _httpd=n\ndo_not_try_rescue_mongodb=n\ndo_not_try_rescue_mysql=n\ndo_not_try_rescue_mail=n\n\n[xmpp]\nxmpp_use_ispv6=n\nxmpp_bosh_max_inactivity=30\nxmpp_server
    [email protected], [email protected]\nxmpp_modules_enabled=saslauth, tls, dialback, disco, discoitems, version, uptime, time, ping, admin_adhoc, adm
    in_telnet, bosh, posix, announce, offline, webpresence, mam, stream_management, message_carbons\nxmpp_port_http=5290\nxmpp_port_https=5291\nxmpp_port_pastebin=5
    292\nxmpp_port_bosh=5280\n\n','23791','0','84','1')
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Network configuration disabled in server settings.
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Processed datalog_id 23792
    01.10.2016-18:06 - DEBUG - Replicated from master: REPLACE INTO `server` (`server_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_othe
    r`,`server_name`,`mail_server`,`web_server`,`dns_server`,`file_server`,`db_server`,`vserver_server`,`proxy_server`,`firewall_server`,`xmpp_server`,`config`,`upd
    ated`,`mirror_server_id`,`dbversion`,`active`) VALUES ('3','1','1','riud','riud','r','001fr-web.hostingex.net','1','1','0','1','1','0','0','1','0','[permissions
    ]\nallow_shell_user=yes\nadmin_allow_server_config=superadmin\nadmin_allow_server_services=superadmin\nadmin_allow_server_ip=superadmin\nadmin_allow_remote_user
    s=superadmin\nadmin_allow_system_config=superadmin\nadmin_allow_server_php=superadmin\nadmin_allow_langedit=superadmin\nadmin_allow_new_admin=superadmin\nadmin_
    allow_del_cpuser=superadmin\nadmin_allow_cpuser_group=superadmin\nadmin_allow_firewall_config=superadmin\nadmin_allow_osupdate=superadmin\nadmin_allow_software_
    packages=superadmin\nadmin_allow_software_repo=superadmin\nremote_api_allowed=yes\npassword_reset_allowed=yes\nsession_regenerate_id=yes\n\n[ids]\nids_enabled=n
    o\nids_log_level=1\nids_warn_level=5\nids_block_level=100\nsql_scan_enabled=yes\nsql_scan_action=warn\napache_directives_scan_enabled=yes\n\n[systemcheck]\nsecu
    rity_admin_email=root@localhost\nsecurity_admin_email_subject=Security alert from server\nwarn_new_admin=yes\nwarn_passwd_change=no\nwarn_shadow_change=no\nwarn
    _group_change=no\n\n[global]\nwebserver=apache\nmailserver=postfix\ndnsserver=mydns\n\n[server]\nauto_network_configuration=n\nip_address=195.154.222.26\nnetmas
    k=255.255.255.0\nv6_prefix=\ngateway=195.154.222.1\nfirewall=bastille\nhostname=001fr-web.hostingex.net\nnameservers=8.8.8.8,8.8.4.4\nloglevel=0\nadmin_notify_e
    vents=3\nbackup_dir=/var/backup\nbackup_dir_is_mount=n\nbackup_mode=userzip\nbackup_time=0:00\nbackup_delete=n\nmonit_url=\nmonit_user=\nmonit_password=\nmunin_
    url=\nmunin_user=\nmunin_password=\nmonitor_system_updates=y\n\n[mail]\nmodule=postfix_mysql\nmaildir_path=/var/vmail/[domain]/[localpart]\nhomedir_path=/var/vm
    ail\nmaildir_format=maildir\ndkim_path=/var/lib/amavis/dkim\ndkim_strength=1024\npop3_imap_daemon=dovecot\nmail_filter_syntax=sieve\nmailuser_uid=5000\nmailuser
    _gid=5000\nmailuser_name=vmail\nmailuser_group=vmail\nmailbox_virtual_uidgid_maps=n\nrelayhost=\nrelayhost_user=\nrelayhost_password=\nmailbox_size_limit=0\nmes
    sage_size_limit=0\nmailbox_quota_stats=y\nrealtime_blackhole_list=sbl.spamhaus.org\noverquota_notify_admin=y\noverquota_notify_client=y\noverquota_notify_freq=7
    \noverquota_notify_onok=n\nsendmail_path=/usr/sbin/sendmail\n\n[getmail]\ngetmail_config_dir=/etc/getmail\n\n[web]\nserver_type=apache\nwebsite_basedir=/var/www
    \nwebsite_path=/var/www/clients/client[client_id]/web[website_id]\nwebsite_symlinks=/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domai
    n]/\nwebsite_symlinks_rel=n\nnetwork_filesystem=n\nvhost_conf_dir=/etc/apache2/sites-available\nvhost_conf_enabled_dir=/etc/apache2/sites-enabled\nnginx_vhost_c
    onf_dir=/etc/nginx/sites-available\nnginx_vhost_conf_enabled_dir=/etc/nginx/sites-enabled\nsecurity_level=20\nuser=www-data\ngroup=www-data\nnginx_user=www-data
    \nnginx_group=www-data\napps_vhost_enabled=y\napps_vhost_port=8081\napps_vhost_ip=_default_\napps_vhost_servername=\nphp_open_basedir=[website_path]/web:[websit
    e_path]/private:[website_path]/tmp:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/ph
    pmyadmin:/var/lib/phpmyadmin\nhtaccess_allow_override=All\nawstats_conf_dir=/etc/awstats\nawstats_data_dir=/var/lib/awstats\nawstats_pl=/usr/lib/cgi-bin/awstats
    .pl\nawstats_buildstaticpages_pl=/usr/share/awstats/tools/awstats_buildstaticpages.pl\nphp_ini_path_apache=/etc/php5/apache2/php.ini\nphp_ini_path_cgi=/etc/php5
    /cgi/php.ini\ncheck_apache_config=y\nenable_sni=y\nenable_spdy=n\nenable_ip_wildcard=y\novertraffic_notify_admin=y\novertraffic_notify_client=y\nnginx_cgi_socke
    t=/var/run/fcgiwrap.socket\nphp_fpm_init_script=php5-fpm\nphp_fpm_ini_path=/etc/php5/fpm/php.ini\nphp_fpm_pool_dir=/etc/php5/fpm/pool.d\nphp_fpm_start_port=9010
    \nphp_fpm_socket_dir=/var/lib/php5-fpm\nset_folder_permissions_on_update=n\nadd_web_users_to_sshusers_group=y\nconnect_userid_to_webid=n\nconnect_userid_to_webi
    d_start=10000\nweb_folder_protection=y\nphp_ini_check_minutes=1\noverquota_notify_admin=y\noverquota_notify_client=y\noverquota_notify_freq=7\noverquota_db_noti
    fy_admin=y\noverquota_db_notify_client=y\noverquota_notify_onok=n\nwebsite_autoalias=[website_domain]\nCA_path=\nCA_pass=\n\n[dns]\nbind_user=root\nbind_group=b
    ind\nbind_zonefiles_dir=/etc/bind\nnamed_conf_path=/etc/bind/named.conf\nnamed_conf_local_path=/etc/bind/named.conf.local\ndisable_bind_log=n\n\n[fastcgi]\nfast
    cgi_starter_path=/var/www/php-fcgi-scripts/[system_user]/\nfastcgi_starter_script=.php-fcgi-starter\nfastcgi_alias=/php/\nfastcgi_phpini_path=/etc/php5/cgi/\nfa
    stcgi_children=8\nfastcgi_max_requests=5000\nfastcgi_bin=/usr/bin/php-cgi\nfastcgi_config_syntax=1\n\n[jailkit]\njailkit_chroot_home=/home/[username]\njailkit_c
    hroot_app_sections=basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh\njailkit_chroot_app_programs=/usr/bin/groups /usr/bin/id /usr/bin/dircol
    ors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico\njailkit_chroot_cron_programs=/usr/bin/php /usr/bin/perl /usr/share/perl /u
    sr/share/php\n\n[vlogger]\nconfig_dir=/etc\n\n[cron]\ninit_script=cron\ncrontab_dir=/etc/cron.d\nwget=/usr/bin/wget\n\n[rescue]\ntry_rescue=n\ndo_not_try_rescue
    _httpd=n\ndo_not_try_rescue_mongodb=n\ndo_not_try_rescue_mysql=n\ndo_not_try_rescue_mail=n\n\n[xmpp]\nxmpp_use_ispv6=n\nxmpp_bosh_max_inactivity=30\nxmpp_server
    [email protected], [email protected]\nxmpp_modules_enabled=saslauth, tls, dialback, disco, discoitems, version, uptime, time, ping, admin_adhoc, adm
    in_telnet, bosh, posix, announce, offline, webpresence, mam, stream_management, message_carbons\nxmpp_port_http=5290\nxmpp_port_https=5291\nxmpp_port_pastebin=5
    292\nxmpp_port_bosh=5280\n\n','23791','0','84','1')
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Network configuration disabled in server settings.
    01.10.2016-18:06 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
    01.10.2016-18:06 - DEBUG - Processed datalog_id 23793
    01.10.2016-18:06 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    01.10.2016-18:06 - DEBUG - Restarting httpd: /etc/init.d/apache2 restart
    01.10.2016-18:06 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    The output shows that you did a change in the server settings and that this change has been replicated successfully to the slave server.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Which OS do you use?
     
  10. Aivaras

    Aivaras Member

    This is Slave server:
    (Debian Wheezy/Sid) ISPConfig 3.1

    Do you mean changes in master server ?
    Unfortunately first I upgraded master server, and only later slave...
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    That's ok, the master has to be upgraded first.

    On Debian there is always a group www-data when apache is installed on that server, so you should have one in /etc/group. If it's not there, apache can not start.
     
  12. Aivaras

    Aivaras Member

    sorry, I have accessed "group" by "nano /etc/group" . In the slave server (sites does not work) are many records such as:
    Code:
    client389:x:1001:www-data
    client390:x:1002:www-data
    client391:x:1003:www-data
    client392:x:1005:www-data
    client386:x:1007:www-data
    client394:x:1008:www-data
    client395:x:1009:www-data
    client396:x:1011:www-data
    client397:x:1013:www-data
    client398:x:1015:www-data
    client399:x:1017:www-data
    client400:x:1018:www-data
    client401:x:1020:www-data
    client407:x:1021:www-data
    client406:x:1023:www-data
    client415:x:1024:www-data
    client419:x:1025:www-data
    client212:x:1026:www-data
    client3:x:1027:www-data
    client36:x:1028:www-data
    faisal:x:5329:
    sshusers:x:5330:
    client339:x:5331:www-data
    client355:x:5332:www-data
    client333:x:5333:www-data
    client251:x:5334:www-data
    client57:x:5335:www-data
    client311:x:5336:www-data
    client267:x:5337:www-data
    client296:x:5338:www-data
    client410:x:5339:www-data
    client196:x:5340:www-data
    client35:x:5341:www-data
    client34:x:5342:www-data
    client305:x:5343:www-data
    client376:x:5344:www-data
    
    only.

    In the master server records are completely diferent, such as:
    Code:
    nogroup:x:65534:
    libuuid:x:101:
    crontab:x:102:
    Debian-exim:x:103:
    mlocate:x:104:
    ssh:x:105:
    oneprovider:x:1000:
    mysql:x:106:
    ssl-cert:x:107:
    postfix:x:108:
    postdrop:x:109:
    dovecot:x:110:
    clamav:x:111:
    amavis:x:112:clamav
    debian-spamd:x:113:
    messagebus:x:114:
    vmail:x:5000:
    getmail:x:5001:
    sshusers:x:5002:web16,web56,web301,web326,web371
    ispapps:x:5003:www-data
    ispconfig:x:5004:www-data
    client1:x:5005:www-data
    ntp:x:115:
    client3:x:5006:www-data
    bind:x:116:
    client40:x:5007:www-data
     
    Last edited: Oct 1, 2016
  13. Aivaras

    Aivaras Member

    Im trying to update/reconfigure ispconfig in slave server (downloaded and using php -q update.php)
    .
    and get these errors :
    Code:
    Reconfigure Services? (yes,no,selected) [yes]: yes
    
    Configuring Postfix
    postalias: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    postmap: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    postmap: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    Configuring Dovecot
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/dist/lib/debian60.lib.php on line 141
    Configuring Mailman
    PHP Warning:  chgrp(): Unable to find gid for list in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 801
    postmap: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    Configuring Spamassassin
    Configuring Amavisd
    adduser: The group `amavis' does not exist.
    Configuring Getmail
    Configuring Pureftpd
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 1443
    Configuring Apache
    Configuring vlogger
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 1955
    Configuring Apps vhost
    Configuring Jailkit
    Configuring Bastille Firewall
    Configuring Database
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2664
    Updating ISPConfig
                           
    
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2408
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2417
    PHP Warning:  chgrp(): Unable to find gid for root in /tmp/ispconfig3_install/install/lib/installer_base.lib.php on line 2422
    chown: invalid group: `root:root'
    Reconfigure Crontab? (yes,no) [yes]:
    
    Updating Crontab
    Restarting services ...
    postmulti: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    Stopping Postfix Mail Transport Agent: postfix.
    postmulti: fatal: file /etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop
    Starting Postfix Mail Transport Agent: postfix.
    Stopping amavisd: (not running).
    dpkg-statoverride: unrecoverable fatal error, aborting:
    syntax error: unknown group 'postdrop' in statoverride file
    You are missing a dpkg-statoverride on /var/run/amavis.  Fix it, otherwise you risk silent breakage on upgrades.
    Starting amavisd: Stopping ClamAV daemon: clamdNo clamd found running; none killed.
    .
    ERROR: Unknown group clamav
    Starting ClamAV daemon: clamd  failed!
    Fatal: service(auth) Group doesn't exist: postfix (See service auth { unix_listener /var/spool/postfix/private/auth { group } } setting)
    Restarting IMAP/POP3 mail server: dovecot failed!
    apache2: bad group name www-data
    Action 'configtest' failed.
    The Apache error log may have more information.
    failed!
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -J HIGH:MEDIUM:+TLSv1:!SSLv2:!SSLv3 -u 1000
    -D -b -Y 1 -8 UTF-8 -O clf:/var/log/pure-ftpd/transfer.log -H -A -E -B
    Update finished.
     
  14. Aivaras

    Aivaras Member

    Im trying purchase Howtoforge supscription, to get support faster but also unlucky.. "Transaction declined. You may wish to try another card, or contact the merchant." I tired 3 diferent cards :) Today not lucky day for me:)
    I very need help, because hundreds of my clients are offline now. Almost all these my clients use FREE web hosting but it in any way is very important to me..
    Please help..
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    If the Linux system groups are missing in the /etc/group file if there are only the client groups from ISPConfig present, in that case you have to restore that file from a backup as ispconfig does not alter system groups and therefore it can not restore them by running an ispconfig update again. The ispconfig update des not remove anything from that file, so it must have been damaged by another action. You can take a look at /var/backup, most likely you have several backups there made by ispconfig during updates and these backups contain a etc.tar.gz file which contains all files from /etc incl. the group file. Or you take this file from a system backup which you hopefully do regularly anyway.
     
    Aivaras likes this.
  16. Aivaras

    Aivaras Member

    Thank you for info!

    but.. now all the way at the beginning
    --------
    service apache2 restart
    Syntax error on line 136 of /etc/apache2/sites-enabled/900-(site.name).vhost:
    RewriteCond: bad flag delimiters
    Action 'configtest' failed.
    ---------
    Line: 136: RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ RewriteRule ^(.*)$ http://sitename.tldu$1 [R=301,NE,L]

    --------------
    I have removed all redirections, but unlucky. Do Ispconfig3.1 have diferent rules for redirection?

    Or I must do somenthing else?
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats an issue in the template for apache 2.2 which is fixed already in git.

    Run:

    ispconfig_update.sh

    select "git-stable" as update source. You dont have to let the updater reconfigure the services.
     
  18. Aivaras

    Aivaras Member

    c
    Updated..
    ---------------------------
    # service apache2 restart
    Syntax error on line 153 of /etc/apache2/sites-enabled/900-(sitename).vhost:
    RewriteCond: bad flag delimiters
    Action 'configtest' failed.
    -------------------------

    Line 153:
    --------

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.(site)\.pro$ [NC]
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ RewriteRule ^(.*)$ http://(sitename)$1 [R=301,NE,L]
    -----------
    After removing these lines manualy, error ucur with next site.. Do Ispconfig3.1 have diferent rules for redirection?
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Like I posted above, you have to run the update and chose git stable to fix that. The ispconfig update fixes just the template, to apply it use the resync function in ispconfig.
     
  20. Aivaras

    Aivaras Member

    Thank you for info!
    Yes, I have updated slave server to git-stable. Apache2 restarted withouth errors. All sites still are offline. Sites accesible via FTP, but not http..
    ISPConfig control panel in master server today not accessible at all. No errors in the server when restarting.
    Even I do not know where to look for errors .. and what to do .. :/
     

Share This Page