Did not want to hijack the older post: - https://forum.howtoforge.com/threads/issues-after-using-migration-toolkit.87340/ - I have disable firewall & fail2ban, etc. - Ispconfig3->Ispconfig3 to new server migration. - Removed Sites - Prefix in destination. - I have tried 6 times to migrate, and also went to destination System->Main Config->Sites and removed all prefixes as well. - [WARN] The target server has a different Let'sEncrypt client than this server. We cannot copy over certificates! It goes through most of the data and fails towards the end. Apache would not restart in destination. I've only found a single site without owner/client and fixed it, also removed/deleted inactive clients or disabled sites. ============================================== [ERROR] API call to server_config_set failed. See log file for details. [WARN] Failed setting apache config check active on the target web server. [ERROR] API call to server_config_set failed. See log file for details. [WARN] Failed setting migration mode inactive on the target web server. [ERROR] API call to system_config_set failed. See log file for details. [WARN] Failed restoring prefixes on target. You find them under system -> Main config -> Sites. ============================================== 2023-02-15 17:44:14 - [INFO] Successfully executed command rm -rf '/tmp/dumps' 2023-02-15 17:44:14 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:14 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:14 - [INFO] Trying again (server_config_set) 2023-02-15 17:44:16 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:16 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:16 - [INFO] Trying again (server_config_set) 2023-02-15 17:44:18 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:18 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:18 - [ERROR] API call to server_config_set failed. 2023-02-15 17:44:18 - [ERROR] JSON API ERROR. Arguments sent were: array ( 'server_id' => '1', 'section' => 'web', 'key' => 'check_apache_config', 'value' => 'y', 'session_id' => 'h9eaefc838dba52cdbfb61947674a9129b32d21bb', ) 2023-02-15 17:44:18 - [WARN] Failed setting apache config check active on the target web server. 2023-02-15 17:44:18 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:18 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:18 - [INFO] Trying again (server_config_set) 2023-02-15 17:44:20 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:20 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:20 - [INFO] Trying again (server_config_set) 2023-02-15 17:44:22 - [WARN] Curl exception: cURL error: [7] Failed to connect to xy.zdomain.com port 8080: Connection refused 2023-02-15 17:44:22 - [ERROR] JSON API ERROR in API call (server_config_set): NO ACCESS 2023-02-15 17:44:22 - [ERROR] API call to server_config_set failed. 2023-02-15 17:44:22 - [ERROR] JSON API ERROR. Arguments sent were: array ( 'server_id' => '1', 'section' => 'server', 'key' => 'migration_mode', ============================================== Apache is running right now as we speak: systemctl status apache2.service Feb 15 18:56:04 s4 systemd[1]: Starting The Apache HTTP Server... Feb 15 18:56:05 s4 apachectl[604]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7 Feb 15 18:56:05 s4 systemd[1]: Started The Apache HTTP Server. After migration stops. systemctl status apache2.service Feb 15 19:53:12 s4 systemd[1]: apache2.service: Consumed 9.590s CPU time. Feb 15 19:53:12 s4 systemd[1]: Starting The Apache HTTP Server... Feb 15 19:53:12 s4 apachectl[142090]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7 Feb 15 19:53:12 s4 apachectl[142090]: AH00526: Syntax error on line 48 of /etc/apache2/sites-enabled/100-adomain.com.vhost: Feb 15 19:53:12 s4 apachectl[142090]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration Feb 15 19:53:12 s4 apachectl[142087]: Action 'start' failed. Feb 15 19:53:12 s4 apachectl[142087]: The Apache error log may have more information. Feb 15 19:53:12 s4 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Feb 15 19:53:12 s4 systemd[1]: apache2.service: Failed with result 'exit-code'. Feb 15 19:53:12 s4 systemd[1]: Failed to start The Apache HTTP Server. ============================================== I checked the adomain.com and verified that php.ini or apache directives are all empty/blank. Any suggestions or feedback is appreciate it. Danny
For Migration tool specific questions you can contact migration tool support. Link at end of https://www.ispconfig.org/add-ons/ispconfig-migration-tool/ -page, namely http://www.ispconfig.org/get-support/?type=migration But at least you have error in website file, Syntax error on line 48 of /etc/apache2/sites-enabled/100-adomain.com.vhost: Those listings would be more readable if you posted them in CODE tags.
Thank you for the prompt reply, that particular domain had a redirect in the panel to redirect to another site. I went ahead and deleted entire domain. - That fixed the entire issue and migration went through. But the vhost info was as follows for visibility and if others have the issue. ============================ Code: <Directory /var/www/adomain.com> AllowOverride None Require all denied </Directory> <VirtualHost 123.34.123.8:80> DocumentRoot /var/www/adomain.com/web ServerName adomain.com ServerAlias www.adomain.com ServerAdmin [email protected] ErrorLog /var/log/ispconfig/httpd/adomain.com/error.log <Directory /var/www/adomain.com/web> # Clear PHP settings of this website <FilesMatch ".+\.ph(p[345]?|t|tml)$"> SetHandler None </FilesMatch> Options +SymlinksIfOwnerMatch AllowOverride All Require all granted </Directory> <Directory /var/www/clients/client1/web3/web> # Clear PHP settings of this website <FilesMatch ".+\.ph(p[345]?|t|tml)$"> SetHandler None </FilesMatch> Options +SymlinksIfOwnerMatch AllowOverride All Require all granted </Directory> # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 SetEnv TMP /var/www/clients/client1/web3/tmp SetEnv TMPDIR /var/www/clients/client1/web3/tmp SetEnv TEMP /var/www/clients/client1/web3/tmp php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]" php_admin_value upload_tmp_dir /var/www/clients/client1/web3/tmp php_admin_value session.save_path /var/www/clients/client1/web3/tmp # PHPIniDir /var/www/conf/web3 php_admin_value open_basedir /var/www/clients/client1/web3/web:/var/www/clients/client1/web3/private:/var/www/clients/client1/web3/tmp:/var/www/adomain.com/web:/srv/www/adomain.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom RewriteEngine on RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/ RewriteRule ^ - [END] RewriteCond %{HTTP_HOST} ^adomain\.com$ [NC] RewriteRule ^/(.*)$ https://www.someotherdomain.com/in/adomain/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^www\.adomain\.com$ [NC] RewriteRule ^/(.*)$ https://www.someotherdomain.com/in/adomain/$1 [R=301,L] # add support for apache mpm_itk <IfModule mpm_itk_module> AssignUserId web3 client1 </IfModule> <IfModule mod_dav_fs.c> # Do not execute PHP files in webdav directory <Directory /var/www/clients/client1/web3/webdav> <ifModule mod_security2.c> SecRuleRemoveById 960015 SecRuleRemoveById 960032 </ifModule> <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> </Directory> DavLockDB /var/www/clients/client1/web3/tmp/DavLock # DO NOT REMOVE THE COMMENTS! # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE! # WEBDAV BEGIN # WEBDAV END </IfModule> </VirtualHost>
I guess the reason is that your old server uses deprecated mod_php mode for PHP in that one website while your new server does not has mod_php installed at all (which is ok and intended as mod_php has been phased out in general as it conflicts with HTTP/2), therefore when you copy over a website with mod_php, apache will complain as it does not understand the config for it. Set the website to a more modern PHP mode like php-fpm on the old server (as you should do anyway) and you will not have any issues.