I am trying to add a new website in ISPConfig3, but the newwebsite.com is loading the Apache2 Ubuntu Default Page instead of the virtual "welcome to your website" page. I have successfully added a few other websites previously but not this time. Can I get some advise on how to fix this? Where to start? In the directory /var/www I can see directories for all the other previously added websites, but no directory for the newwebsite.com In the directory /etc/apache2/sites-available there are vhost files for all the other added websites but no newwebsite.com.vhost file.
See last chapter of the sticky post in this forum: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
Hi till, thanks for your reply. The server is Ubuntu 14.04 and the ISPConfig version is 3.0.5.4p8. The content of htf-report.txt: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** IP-address(es) (as per ifconfig): ***.***.***.*** [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.0.5.4p8 ##### VERSION CHECK ##### [INFO] php (cli) version is 5.5.9-1ubuntu4.9 ##### PORT CHECK ##### ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Unknown process (fcgi-pm) (PID 5432) [INFO] I found the following mail server(s): Postfix (PID 30323) [INFO] I found the following pop3 server(s): Dovecot (PID 31421) [INFO] I found the following imap server(s): Dovecot (PID 31421) [INFO] I found the following ftp server(s): PureFTP (PID 2512) ##### LISTENING PORTS ##### (only () Local (Address) [anywhere]:25 (30323/master) [anywhere]:993 (31421/dovecot) [anywhere]:995 (31421/dovecot) [localhost]:10024 (19806/amavisd-new) [localhost]:10025 (30323/master) [anywhere]:3306 (29892/mysqld) [anywhere]:587 (30323/master) [localhost]:11211 (4005/memcached) [anywhere]:110 (31421/dovecot) [anywhere]:143 (31421/dovecot) [localhost]:783 (3368/spamd.pid) [anywhere]:465 (30323/master) [anywhere]:21 (2512/pure-ftpd) [anywhere]:22 (3021/sshd) *:*:*:*::*:25 (30323/master) *:*:*:*::*:443 (5432/fcgi-pm) *:*:*:*::*:993 (31421/dovecot) *:*:*:*::*:995 (31421/dovecot) *:*:*:*::*:587 (30323/master) [localhost]10 (31421/dovecot) [localhost]43 (31421/dovecot) *:*:*:*::*:783 (3368/spamd.pid) *:*:*:*::*:8080 (5432/fcgi-pm) *:*:*:*::*:80 (5432/fcgi-pm) *:*:*:*::*:8081 (5432/fcgi-pm) *:*:*:*::*:465 (30323/master) *:*:*:*::*:21 (2512/pure-ftpd) *:*:*:*::*:22 (3021/sshd) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 fail2ban-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993 fail2ban-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-dovecot-pop3imap (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-postfix-sasl (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-pureftpd (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain fail2ban-ssh (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 :q I am using Apache2 as the web server.
The last chapter I referred to is about the debug mode, not the test script. Please use the debug mode to see why ispconfig can not write the config.
I've tried to follow the debug mode directions: ---------------------------------------------------- [email protected]:~# crontab -e crontab: installing new crontab [email protected]:~# /usr/local/ispconfig/server/server.sh 17.09.2015-16:32 - DEBUG - There is already an instance of server.php running. Exiting. ----------------------------------------------------- In System->Server Config the Loglevel is set to "Debug". I've tried changing the Loglevel to "Errors" then the output of /usr/local/ispconfig/server/server.sh is nothing.
run: rm -f /usr/local/ispconfig/server/temp/.ispconfig_lock and then again: /usr/local/ispconfig/server/server.sh
I stopped the command with ctrl+c after a while... note the domain example.site has been substituted... [email protected]:~# /usr/local/ispconfig/server/server.sh 17.09.2015-16:47 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 17.09.2015-16:47 - DEBUG - Found 56 changes, starting update process. 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Adding the user: web7 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web7/ /var/www/example.site 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client2/web7/ /var/www/clients/client2/example.site 17.09.2015-16:47 - DEBUG - exec: chown -R web7:client2 /var/www/clients/client2/web7/web 17.09.2015-16:47 - DEBUG - exec: chown web7:client2 /var/www/clients/client2/web7/web 17.09.2015-16:47 - DEBUG - exec: usermod --groups sshusers web7 2>/dev/null 17.09.2015-16:47 - DEBUG - Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web7/ 17.09.2015-16:47 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web7/.php-fcgi-starter 17.09.2015-16:47 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-example.site.vhost->/etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Apache status is: running 17.09.2015-16:47 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 17.09.2015-16:47 - DEBUG - Restarting httpd: service apache2 restart 17.09.2015-16:47 - DEBUG - Apache restart return value is: 0 17.09.2015-16:47 - DEBUG - Apache online status after restart is: running 17.09.2015-16:47 - DEBUG - Processed datalog_id 110 17.09.2015-16:47 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'. 17.09.2015-16:47 - DEBUG - Processed datalog_id 111 17.09.2015-16:47 - DEBUG - Calling function 'ftp_user_delete' from plugin 'apache2_plugin' raised by event 'ftp_user_delete'. 17.09.2015-16:47 - DEBUG - Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'. 17.09.2015-16:47 - DEBUG - Ftpuser: deleted. 17.09.2015-16:47 - DEBUG - Processed datalog_id 112 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 17.09.2015-16:47 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 17.09.2015-16:47 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web7/.php-fcgi-starter 17.09.2015-16:47 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Apache status is: running 17.09.2015-16:47 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 17.09.2015-16:47 - DEBUG - Restarting httpd: service apache2 restart 17.09.2015-16:47 - DEBUG - Apache restart return value is: 0 17.09.2015-16:47 - DEBUG - Apache online status after restart is: running 17.09.2015-16:47 - DEBUG - Processed datalog_id 113 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 17.09.2015-16:47 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 17.09.2015-16:47 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-example.site.vhost->/etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Removing vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Removing website: /var/www/clients/client2/web7 17.09.2015-16:47 - DEBUG - Removing symlink: /var/www/example.site 17.09.2015-16:47 - DEBUG - Removing symlink: /var/www/clients/client2/example.site 17.09.2015-16:47 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/example.site 17.09.2015-16:47 - DEBUG - Processed datalog_id 114 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Adding the user: web8 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web8/ /var/www/example.site 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web8/ /var/www/clients/client3/example.site 17.09.2015-16:47 - DEBUG - exec: chown -R web8:client3 /var/www/clients/client3/web8/web 17.09.2015-16:47 - DEBUG - exec: chown web8:client3 /var/www/clients/client3/web8/web 17.09.2015-16:47 - DEBUG - exec: usermod --groups sshusers web8 2>/dev/null 17.09.2015-16:47 - DEBUG - Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web8/ 17.09.2015-16:47 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web8/.php-fcgi-starter 17.09.2015-16:47 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-example.site.vhost->/etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Apache status is: running 17.09.2015-16:47 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 17.09.2015-16:47 - DEBUG - Restarting httpd: service apache2 restart 17.09.2015-16:47 - DEBUG - Apache restart return value is: 0 17.09.2015-16:47 - DEBUG - Apache online status after restart is: running 17.09.2015-16:47 - DEBUG - Processed datalog_id 115 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 17.09.2015-16:47 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 17.09.2015-16:47 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-example.site.vhost->/etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Removing vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:47 - DEBUG - Removing website: /var/www/clients/client3/web8 17.09.2015-16:47 - DEBUG - Removing symlink: /var/www/example.site 17.09.2015-16:47 - DEBUG - Removing symlink: /var/www/clients/client3/example.site 17.09.2015-16:47 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/example.site 17.09.2015-16:47 - DEBUG - Processed datalog_id 116 17.09.2015-16:47 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'. 17.09.2015-16:47 - DEBUG - Adding the user: web9 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web9/ /var/www/example.site 17.09.2015-16:47 - DEBUG - Creating symlink: ln -s /var/www/clients/client3/web9/ /var/www/clients/client3/example.site 17.09.2015-16:47 - DEBUG - exec: chown -R web9:client3 /var/www/clients/client3/web9/web 17.09.2015-16:47 - DEBUG - exec: chown web9:client3 /var/www/clients/client3/web9/web 17.09.2015-16:47 - DEBUG - exec: usermod --groups sshusers web9 2>/dev/null 17.09.2015-16:48 - DEBUG - Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web9/ 17.09.2015-16:48 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web9/.php-fcgi-starter 17.09.2015-16:48 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/example.site.vhost 17.09.2015-16:48 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-example.site.vhost->/etc/apache2/sites-available/example.site.vhost 17.09.2015-16:48 - DEBUG - Apache status is: running 17.09.2015-16:48 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 17.09.2015-16:48 - DEBUG - Restarting httpd: service apache2 restart 17.09.2015-16:48 - DEBUG - Apache restart return value is: 0 17.09.2015-16:48 - DEBUG - Apache online status after restart is: running 17.09.2015-16:48 - DEBUG - Processed datalog_id 117 17.09.2015-16:48 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 17.09.2015-16:48 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'. 17.09.2015-16:48 - DEBUG - Creating fastcgi starter script: /var/www/php-fcgi-scripts/web3/.php-fcgi-starter 17.09.2015-16:48 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/onehandtyper.com.vhost 17.09.2015-16:48 - DEBUG - Apache status is: running 17.09.2015-16:48 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. ^C [email protected]:~#
Very bad idea as this can cause inconsistencies. The script must run until it says finished, depending on the amount of config that has to be written this can take from seconds to hours. The output shows that itis working fine, it did not work due to the stalled lock file which means that the script was interrupted before.
Oh... OK. I'll run it again and just let it finish. The post had a limit of 10000 characters so perhaps if I can email you the output..? It may be easier for me to pay for an hour or so of support to get you to log in and have a look. I'll run the command again in the mean time. Thanks Till.
The output is ok, I explained above why your website was not created. Let it run until it is finished and then activate the cronjob again.
Thank you Till. I also have another problem with a couple of wordpress sites having the dreaded "http error" on media upload. Separate Wordpress issue, this issue is solved. Thank you again.