VirtualHost Not updated properly

Discussion in 'Installation/Configuration' started by Morons, Apr 17, 2007.

  1. Morons

    Morons Member

    All the Virtual Hosts I created with CGI enabled have the settings
    Code:
    ScriptAlias  /cgi-bin/ /var/www/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    in 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
    Code:
    touch /home/admispconfig/ispconfig/.run
    but 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
    Code:
    {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:
     
  2. Hans

    Hans Moderator ISPConfig Developer

    An update of ISPConfig will not affect your apps.
    I have installed ryzor, pyzor, dcc & postgrey myself and everything works fine.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. Morons

    Morons Member

    Did not have saved copy
    Code:
    [email protected]:/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
    Code:
    Warning: DocumentRoot [/var/www/web30/web] does not exist
    This 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!?
     
  5. Morons

    Morons Member

    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.:)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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?
     
  7. Morons

    Morons Member

    I saam to have some problems ! I have no ERRORS but lot of WARNINGS (not-related)

    Code:
    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 this
    Code:
    02.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
    Code:
    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
     
    Last edited: Apr 17, 2007
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    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?
     

Share This Page