Moving website to another client not working
Before I move a website to another client:
root@v677:/var/www/test3.de# ls -la total 32 drwxr-xr-x 8 root root 4096 Jan 30 13:30 . drwxr-xr-x 7 root root 4096 Jan 30 13:30 .. drwxr-xr-x 2 web8 client0 4096 Jan 30 13:30 cgi-bin drwxr-xr-x 2 root root 4096 Jan 30 13:30 log drwx--x--- 2 web8 client0 4096 Jan 30 13:30 private drwxr-xr-x 2 root root 4096 Jan 30 13:30 ssl drwxrwxrwx 2 web8 client0 4096 Jan 30 13:30 tmp drwx--x--- 3 web8 client0 4096 Jan 30 13:30 web root@v677:/var/www/test3.de#
Afterwards:
root@v677:/var/www/test3.de# ls -la total 32 drwxr-xr-x 8 root root 4096 Jan 30 13:33 . drwxr-xr-x 4 root root 4096 Jan 30 13:33 .. drwxr-xr-x 2 root root 4096 Jan 30 13:33 cgi-bin drwxr-xr-x 2 root root 4096 Jan 30 13:30 log drwx--x--- 2 web8 client3 4096 Jan 30 13:33 private drwxr-xr-x 2 root root 4096 Jan 30 13:33 ssl drwxr-xr-x 2 root root 4096 Jan 30 13:33 tmp drwxr-xr-x 3 root root 4096 Jan 30 13:33 web root@v677:/var/www/test3.de#
Files/directories should have changed from web8:client0 to web8:client3 instead of root:root.
In addition to that, the webserver user must be made a member of the client group which is not happening:
/etc/group:
[...] client0:x:5005:www-data client1:x:5006:www-data client3:x:5007:
www-data is missing in the client3 group.
Another observation: the vhost's IP address seems to be reset to *.
The whole content of the web/ folder (except error/) seems to get deleted:
root@v677:/var/www/test3.de/web# ls -l total 4 drwxr-xr-x 2 root root 4096 Jan 30 13:33 error root@v677:/var/www/test3.de/web#
root@v677:/var/www/test3.de# /usr/local/ispconfig/server/server.sh
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
30.01.2013-13:49 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
30.01.2013-13:49 - DEBUG - Found 3 changes, starting update process.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Network configuration disabled in server settings.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Processed datalog_id 330
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Network configuration disabled in server settings.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
30.01.2013-13:49 - DEBUG - Processed datalog_id 331
30.01.2013-13:49 - DEBUG - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
30.01.2013-13:49 - DEBUG - Calling function 'update' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
30.01.2013-13:49 - DEBUG - Adding the group: client2
30.01.2013-13:49 - DEBUG - Removed symlink: rm -f /var/www/test3.de
30.01.2013-13:49 - DEBUG - Removed symlink: rm -f /var/www/clients/client1/test3.de
30.01.2013-13:49 - DEBUG - Renaming existing directory in new docroot location. mv /var/www/clients/client2/web8 /var/www/clients/client2/web8_bak_2013_01_30
mv: cannot move /var/www/clients/client1/web8' to
/var/www/clients/client2/web8': Operation not permitted
30.01.2013-13:49 - DEBUG - Moving site to new document root: mv /var/www/clients/client1/web8 /var/www/clients/client2
usermod: user web8 is currently used by process 25712
chattr: No such file or directory while trying to stat /var/www/clients/client2/web8
30.01.2013-13:49 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web8/ /var/www/test3.de
30.01.2013-13:49 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web8/ /var/www/clients/client2/test3.de
30.01.2013-13:49 - DEBUG - exec: usermod --groups sshusers web8
30.01.2013-13:49 - DEBUG - SSL Disabled.
30.01.2013-13:49 - DEBUG - Writing the vhost file: /etc/nginx/sites-available/test3.de.vhost
30.01.2013-13:49 - DEBUG - Writing the PHP-FPM config file: /etc/php5/fpm/pool.d/web8.conf
30.01.2013-13:49 - DEBUG - Calling function 'restartPHP_FPM' from module 'web_module'.
30.01.2013-13:49 - DEBUG - nginx status is: 1
30.01.2013-13:49 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
30.01.2013-13:49 - DEBUG - nginx online status after restart is: 1
30.01.2013-13:49 - DEBUG - Processed datalog_id 332
30.01.2013-13:49 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
30.01.2013-13:49 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
root@v677:/var/www/test3.de#
30.01.2013-14:00 - DEBUG - Adding the group: client4
30.01.2013-14:00 - DEBUG - Removed symlink: rm -f /var/www/test3.de
30.01.2013-14:00 - DEBUG - Removed symlink: rm -f /var/www/clients/client3/test3.de
30.01.2013-14:00 - DEBUG - Renaming existing directory in new docroot location. mv /var/www/clients/client4/web8 /var/www/clients/client4/web8_bak_2013_01_30
mv: cannot move /var/www/clients/client3/web8' to
/var/www/clients/client4/web8': Operation not permitted
30.01.2013-14:00 - DEBUG - Moving site to new document root: mv /var/www/clients/client3/web8 /var/www/clients/client4
usermod: user web8 is currently used by process 30629
chattr: No such file or directory while trying to stat /var/www/clients/client4/web8
30.01.2013-14:00 - DEBUG - Creating symlink: ln -s /var/www/clients/client4/web8/ /var/www/test3.de
30.01.2013-14:00 - DEBUG - Creating symlink: ln -s /var/www/clients/client4/web8/ /var/www/clients/client4/test3.de
30.01.2013-14:00 - DEBUG - exec: usermod --groups sshusers web8