Hi all. I have a master-slave ISPConfig cluster that's giving me a really big problem: when I try to create a virtualhost on the "slave" server, it doesn't get created fully. /etc/fstab is updated, symlink to webN is created, but webN (and all its subdirs) are missing Using ISPConfig 3.0.5.4p1 on Debian 7 x86_64 with latest updates. Webserver is Apache2, PHP is 5.4.4-14+deb7u9. Any hint? Where should I look? TIA
Yup. found instructions just after posting. Seems I already posted all relevant info. Now I'm trying to create another vhost with full debugging enabled. This is the output from server.sh (manually run): Code: # ./server.sh 26.05.2014-12:15 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock /usr/bin/fail2ban-client /sbin/iptables /sbin/ip6tables 26.05.2014-12:15 - DEBUG - Found 1 changes, starting update process. 26.05.2014-12:15 - DEBUG - Replicated from master: REPLACE INTO web_domain (`domain_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`ip_address`,`ipv6_address`,`domain`,`type`,`parent_domain_id`,`vhost_type`,`document_root`,`web_folder`,`system_user`,`system_group`,`hd_quota`,`traffic_quota`,`cgi`,`ssi`,`suexec`,`errordocs`,`is_subdomainwww`,`subdomain`,`php`,`ruby`,`python`,`perl`,`redirect_type`,`redirect_path`,`seo_redirect`,`ssl`,`ssl_state`,`ssl_locality`,`ssl_organisation`,`ssl_organisation_unit`,`ssl_country`,`ssl_domain`,`ssl_request`,`ssl_cert`,`ssl_bundle`,`ssl_key`,`ssl_action`,`stats_password`,`stats_type`,`allow_override`,`apache_directives`,`nginx_directives`,`php_fpm_use_socket`,`pm`,`pm_max_children`,`pm_start_servers`,`pm_min_spare_servers`,`pm_max_spare_servers`,`pm_process_idle_timeout`,`pm_max_requests`,`php_open_basedir`,`custom_php_ini`,`backup_interval`,`backup_copies`,`backup_excludes`,`active`,`traffic_quota_lock`,`fastcgi_php_version`,`proxy_directives`,`last_quota_notification`,`rewrite_rules`,`added_date`,`added_by`) VALUES ('7','1','4','riud','ru','','2','*','','example.it','vhost','0','name','/var/www/clients/client3/web7','','web7','client3','-1','-1','n','n','y','1','1','www','no','n','n','n','','','','n','','','','','','','','','','','','','webalizer','All','','','y','dynamic','10','2','1','5','10','0','/var/www/clients/client3/web7/web:/var/www/clients/client3/web7/private:/var/www/clients/client3/web7/tmp:/var/www/example.it/web:/srv/www/example.it/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin','','none','1','','y','n','','','','','0000-00-00','admin') 26.05.2014-12:15 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/ssl 26.05.2014-12:15 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 26.05.2014-12:15 - DEBUG - Adding the user: web7 26.05.2014-12:15 - DEBUG - Action aborted, target is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web/error 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/web/error 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/cgi-bin 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/cgi-bin 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/tmp 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/tmp 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/webdav 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/webdav 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/log 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: //var/www/clients/client3/web7/log 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/log 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/log 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/log mount: mount point /var/www/clients/client3/web7/log does not exist 26.05.2014-12:15 - DEBUG - Action aborted, target is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web7/ /var/www/example.it 26.05.2014-12:15 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web7/ /var/www/clients/client3/example.it cp: l'obiettivo "/var/www/clients/client3/web7/web/error/" non è una directory chmod: impossibile accedere a "/var/www/clients/client3/web7/web/error/": File o directory non esistente cp: impossibile creare il file regolare "/var/www/clients/client3/web7/web/index.html": File o directory non esistente cp: impossibile creare il file regolare "/var/www/clients/client3/web7/web/": File o directory non esistente cp: impossibile creare il file regolare "/var/www/clients/client3/web7/web/": File o directory non esistente cp: impossibile creare il file regolare "/var/www/clients/client3/web7/web/": File o directory non esistente chmod: impossibile accedere a "/var/www/clients/client3/web7/web/": File o directory non esistente 26.05.2014-12:15 - DEBUG - exec: chown -R web7:client3 /var/www/clients/client3/web7/web chown: impossibile accedere a "/var/www/clients/client3/web7/web": File o directory non esistente 26.05.2014-12:15 - DEBUG - exec: chown web7:client3 /var/www/clients/client3/web7/web chown: impossibile accedere a "/var/www/clients/client3/web7/web": File o directory non esistente 26.05.2014-12:15 - DEBUG - Action aborted, target is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/webdav 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/tmp 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/cgi-bin 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/cgi-bin 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/ssl 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/tmp 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/tmp 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/error 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/error 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/stats 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/stats 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/webdav 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/webdav 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/private 26.05.2014-12:15 - DEBUG - Action aborted, target is a symlink: /var/www/clients/client3/web7 26.05.2014-12:15 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/example.it.vhost 26.05.2014-12:15 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-example.it.vhost->/etc/apache2/sites-available/example.it.vhost 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/stats 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/stats/.htaccess 26.05.2014-12:15 - WARNING - Action aborted, file is a symlink: /var/www/clients/client3/web7/web/stats/.htaccess 26.05.2014-12:15 - DEBUG - Apache status is: running 26.05.2014-12:15 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 26.05.2014-12:15 - DEBUG - Apache restart return value is: 0 26.05.2014-12:15 - DEBUG - Apache online status after restart is: running 26.05.2014-12:15 - DEBUG - Processed datalog_id 131 26.05.2014-12:15 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock finished. Seems it doesn't even attempt to create /var/www/client3/web7 dir ...
IIUC, it seems checkpath() returns false even for non-existing dirs. Going to try setting $allow_symlink to true: my /var/www is a symlink!
Ok. It seems the problem was exactly that: I moved /var/www/ to /srv/webhosts (different filesystem, with more space available) and symlinked it to the new path. Seemed logical and wasn't advised not to do it. Maybe it could be added as a periodic check in ISPConfig to make it more robust?
You can not use symlinks for any paths in /var/www or /var/vmail. Use bind mounts in /etc/fstab instead. See Tutorial about moving website location in ispconfig to a different directory: http://www.howtoforge.com/use_mount...ctory_of_a_ispconfig_server_to_a_new_location
Tks. Didn't look at it since I did not move an existing site... There was a symlink there since before creating the first vhost... Maybe the error should be "path contains a symlink" instead of "file is a symlink"?