View Full Version : VirtualHost Not updated properly
Morons
17th April 2007, 14:41
All the Virtual Hosts I created with CGI enabled have the settings
ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .plin the /etc/apache2/vhosts/Vhosts_ispconfig.conf file.
All those created without, cannot be changed! If I later then add those settings it does not reflect, nor does it work!
I checked the database in MySQL and the flags web_cgi, web_php, web_ssi are all set to 1 in isp_isp_web for the correct virtual domain. I even changed the status to "u" and ran touch /home/admispconfig/ispconfig/.runbut is did not change the Vhosts_ispconfig.conf file.
After manually Inserting those entries the cgi works fine but only until the next rewrite of the conf file!
My Version: 2.2.9 of ISPC
The master file (vhost.conf.master) does have the {CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{SSI}entries!
What now?
P.S. I have not upgraded to 2.2.12 due to the fact this is an running config and i do not know what will happen to ryzor, pyzor, dcc, bayes, fuzzyocr and postgrey installs I added. Will test one first.:cool:
Hans
17th April 2007, 14:46
An update of ISPConfig will not affect your apps.
I have installed ryzor, pyzor, dcc & postgrey myself and everything works fine.
till
17th April 2007, 15:10
If you have copies of the file Vhosts_ispconfig.conf with a recent date appended to the name, please try the procedure that is described in this thread to find the problem:
http://www.howtoforge.com/forums/showthread.php?t=7719
Morons
17th April 2007, 15:34
Did not have saved copy
root@hera:/etc/apache2/vhosts# httpd -t
Syntax OK
I had an problem earlier this week wer I deleted an client, this caused apache to stop and the logs told me that Warning: DocumentRoot [/var/www/web30/web] does not existThis I removed manually, however this problem with cgi not working even if I switch it on, came from before this, could it be that these to broken updates are somehow linked!?
Morons
17th April 2007, 15:40
What would happen if I empty the Vhosts_ispconfig.conf file, even delete id - (backup of cause) and then mark update in the database, run touch ... .run.
My guess is it will re-create the whole file from databse! If so it will certainly be a quick fix.:)
till
17th April 2007, 15:48
What would happen if I empty the Vhosts_ispconfig.conf file, even delete id - (backup of cause) and then mark update in the database, run touch ... .run.
My guess is it will re-create the whole file from databse! If so it will certainly be a quick fix.:)
This wont fix it because if ISPConfig would be able to write the file at all, it has overwritten your current copy.
Do you have any errors in the ispconfig.log file?
Morons
17th April 2007, 16:09
I saam to have some problems ! I have no ERRORS but lot of WARNINGS (not-related)
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /bastille-firewall restart &> /dev/null
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /httpd restart &> /dev/null
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /postfix stop &> /dev/null
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /postfix start &> /dev/null
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /named restart &> /dev/null
17.04.2007 - 13:22:39 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /proftpd restart &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /bastille-firewall restart &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /httpd restart &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /postfix stop &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /postfix start &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /named restart &> /dev/null
17.04.2007 - 15:02:03 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /proftpd restart &> /dev/null
Somehow sumethings got corrupted as earlier in the same logfile I can see this02.03.2007 - 01:45:24 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/apache2 restart &> /dev/null
02.03.2007 - 01:45:25 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix stop &> /dev/null
02.03.2007 - 01:45:25 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix start &> /dev/null
02.03.2007 - 01:45:28 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/bind9 restart &> /dev/null
02.03.2007 - 01:45:30 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/proftpd restart &> /dev/null
02.03.2007 - 23:20:49 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/apache2 restart &> /dev/null
02.03.2007 - 23:20:50 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix stop &> /dev/null
02.03.2007 - 23:20:51 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix start &> /dev/null
02.03.2007 - 23:20:53 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/bind9 restart &> /dev/null
02.03.2007 - 23:20:56 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/proftpd restart &> /dev/null
02.03.2007 - 23:59:01 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix stop &> /dev/null
hmmm. :(
Just after the first Occurance of this WARN there is an line saying 06.03.2007 - 13:27:08 => DEBUG - <center>Installation OK</center>
06.03.2007 - 13:41:37 => DEBUG - <center>Installation OK</center>
This could be (I'm guessing) after installing the 2 packages Webmail and MySQLAdmin
till
18th April 2007, 10:43
The path to the init.d directory is not set correctly.
Please make sure that the field dist_init_scripts in the database table isp_server contains:
/etc/init.d
Did you change anything in the isp_server table manually?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.