#1  
Old 27th July 2006, 01:02
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default changes to co-domain dont apply

Hey all.... again!...

I've noticed something thats been happening again and again where I've made a domain change in ISPC and it doesn't apply until I restart apache. I've been ignoring it until it happened again today.

I've come to the conclusion it's when I change the co-domain name and then Save it, wait a couple of seconds/minutes and find the site is still looking for the old name but the vhost httpd conf file shows the changes.
When I apachectl restart, all comes good and it now recognises the new name of the co-domain of the site.

Almost sounds as if any changes done to the co-domain name doesn't trigger a reload of apache.

Can anyone confirm this?
Reply With Quote
Sponsored Links
  #2  
Old 27th July 2006, 09:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,070
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Please check the /home/admispconfig/ispconfig/ispconfig.log file, is there a line that apache is reloaded after you add a co-domain or do you get any errors?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st August 2006, 00:45
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

I finally got it to happen again but noticed it didn't happen on changing co-domain info but just creating a new site.

01.08.2006 - 08:38:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2339: WARNING: could not httpd -t &> /dev/null
01.08.2006 - 08:38:55 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2345: httpd syntax seems to contain errors, reloading with old configuration

this is a new site with these options only :

php scripts
php safe mode
ftp access
mysql
individual error pages
(no apache directives)

I can't see why this failed since we can't see what data it tested with the 'httpd -t' command.

is there somewhere where we can see the chopped copy of the virtual host we can check what went wrong?
Reply With Quote
  #4  
Old 1st August 2006, 00:48
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

ok ok.. found the file..

Syntax error on line 26 of /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf_01-08-06_08-38-55:
Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration

Line 26:
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm


so what am I missing?
Reply With Quote
  #5  
Old 1st August 2006, 00:58
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

argh, just realised that file is only partial config so I changed the httpd.conf to include that 'so called' broken config and when i do a 'httpd -t' i now get the real error message below :

PHP Code:
Syntax error on line 30 of /etc/httpd/conf.d/php.conf:
Invalid command 'DirectoryIndex'perhaps misspelled or defined by a module not included in the server configuration 
So inside php.conf I have :
PHP Code:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

#LoadModule php4_module modules/libphp4.so
LoadModule php5_module /home/httpd/libexec/libphp5.so

# Use for PHP 4.x
#AddHandler php-script  php


#
# Cause the PHP interpreter handle files with a .php extension.
#
# Ref: http://bugs.php.net/bug.php?id=22881
# Since 4.3.2RC the default Apache 2 sapi is the apache2handler and is no
# longer filter based. Therefor you should use
#AddType application/x-httpd-php php
#AddType application/x-httpd-php-source phps

<Files *.php>
    
LimitRequestBody 20000000
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php 
So i don't know why it's complaining about that. Is it possible that the Include conf/*.conf line in the main httpd.conf is in a bad spot which is loading before a number of required modules are not loaded???

I might just move the line down a fair bit and see what happens........
Reply With Quote
  #6  
Old 1st August 2006, 01:44
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

argh!! can't get it working with any old httpd.conf file.. even the original. I don't know what the hell I did (if I did).

I tried moving the 'Include conf/*.conf' line further down but then other errors occur. confusing me really now...

The original line starts just after all the LoadModule commands are loaded so I don't know why it's whinging about DirectoryIndex.

*sigh*

--- 20 minutes later ---

Found it.. well, sort of.. all the errors were (somehow) due to some modules not loaded.... AT ALL. I have no idea how this could've worked in the first place.

I add :
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_host_module modules/mod_authz_host.so

which where related to the unknown directives and now it comes up with 'Syntax OK' on the apache httpd -t test... *sigh*...

worked it out myself but still worth saying thanks for the help anyway.

01.08.2006 - 09:46:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2339: httpd -t &> /dev/null
01.08.2006 - 09:46:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2341: httpd syntax ok

Last edited by djtremors; 1st August 2006 at 01:47.
Reply With Quote
  #7  
Old 2nd August 2006, 12:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Glad it's working again.
Quote:
Originally Posted by djtremors
Syntax error on line 26 of /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf_01-08-06_08-38-55:
Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
Looks as if the mod_dir module also wasn't loaded...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP Services wouldn't restart any service, possibly Domain Host configuration issue. Kamran Shah Installation/Configuration 20 17th August 2006 17:33
Domain Change in website Jose Gosalbez Installation/Configuration 15 19th July 2006 12:38
Configure Linux client to join a Samba domain controller denny_lin Installation/Configuration 1 9th June 2006 12:31
Server Not Autorative for Domain Error drbista Installation/Configuration 10 20th December 2005 16:41
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 00:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.