Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th June 2006, 07:42
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Vhosts no longer written to

It appears that the vhosts file is no longer being written to by ispconfig upon a change in the configuration. I have no idea why, but I was completely unable to add another subdomain - it would go through fine in the bind side of things, but then there'd be no virtual host to take care of it on the apache end. When I backed up the vhosts file and made the real one blank then changed something in the web interface, the file was not restored as it normally would be, but was left blank, leaving me to wonder why ispconfig has stopped updating it.

Any ideas would be greatly appriciated, and thanks for the great software and help!
Reply With Quote
Sponsored Links
  #2  
Old 30th June 2006, 08:22
tosser tosser is offline
Junior Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 3 Times in 3 Posts
Default

copy the last backup like Vhosts_ispconfig.conf_29-04-06_16-51-40
to Vhosts_ispconfig.conf then should ispconfig updating it
Reply With Quote
  #3  
Old 30th June 2006, 12:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

Make a backup of Vhosts_ispconfig.conf

Then copy back the latest Vhosts_ispconfig.conf with date appended and the execute:

httpd -t

to get the error message that prevents ISPConfig on updating your Vhosts_ispconfig.conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 30th June 2006, 19:11
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i've figured out the problem, but no solution: as soon as I make a change, it writes to a new vhosts_ispconfig.conf file and immidiately thereafter appends the datestamp onto the end. It never even touches the straight file. For example: I added a bunch of junk characters to the front of the filenames currently in the folder (the straight file and one with a datestamp) so there was no straight file left. As soon as i made a change, it made the file, added all the correct data (except one bit- hold on) then as soon as it did that, added the datestamp, making it useless. The interesting thing is, in all the newly created files at the top under the ispconfig header bit, it used to add
NameVirtualHost (myiphere):80
<virtualhost (myiphere):80 and so on

now it just adds
(myiphere):80
(myiphere):80

I say myiphere because it was originally my public ip, but since i'm behind a nat router, i changed it to my private ip hardcoded into the template file. I did this so I could use my public ip as my default, so when new virtual hosts were created, they'd have the proper ip in their vhost entries, but the users could add domains which would use the proper public ip. anyway, thats not my problem, that's worked for weeks.

and there are no syntax errors in httpd.conf

Any ideas
Reply With Quote
  #5  
Old 30th June 2006, 20:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

The beahviour you describe is absolutely OK, it means ISPConfig is working correctly.

Never edit Vhosts_ispconfig.conf manually as this file is always overriden by ISPConfig!

To figure out your httpd problem, please do exactly what i posted above:

1) rename Vhosts_ispconfig.conf to Vhosts_ispconfig.conf.bak
2) rename the latest Vhosts_ispconfig.conf file with a date appended to Vhosts_ispconfig.conf
3) Execute:

httpd -t

and post the error message here.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 30th June 2006, 20:39
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it says that

192.168.1.2:80 is an invalid command on line 8.

192.168.1.2:80
192.168.1.2:80

is what appears directly after the commented header, instead of the

NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>

that always has. I've not edited this as such in the Vhosts_ispconfig.conf.master either.
Reply With Quote
  #7  
Old 30th June 2006, 20:46
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

once again, after pasting the correct vhost block over the

192.168.1.2:80
192.168.1.2:80

bit and restarting apache, i make an edit in ispconfig and instead of editing vhost_ispconfig.conf it makes a new vhost_ispconfig.conf_(proper time stamp from seconds after the change here) and doesnt touch the former. The new file with the time stamp is yet again perfectly correct except for the

192.168.1.2:80
192.168.1.2:80

bit where the vhost block should be.
Reply With Quote
  #8  
Old 30th June 2006, 20:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

Which ISPConfig version do you use?

Quote:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
This complete block is written at once, so I can not see how it shall be possible that only a part of it is included in the Vhost_ispconfig.conf when you use an unmodified ISPConfig version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 30th June 2006, 21:21
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

vhost.conf.master:
{FP_RESOURCE_CONFIG}
{FP_ACCESS_CONFIG}
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
<!-- BEGIN DYNAMIC BLOCK: namevhost -->
192.168.1.2:80
<!-- END DYNAMIC BLOCK: namevhost -->
#
#
<!-- BEGIN DYNAMIC BLOCK: vhost -->

######################################
# Vhost: {SERVERNAME}
######################################
#
#
<VirtualHost 192.168.1.2:80>
{HTTPD_INCLUDE}
{SUEXEC}
ServerName {SERVERNAME}
ServerAdmin {SERVERADMIN}
DocumentRoot {DOCUMENTROOT}
{SERVERALIAS}
{DIRECTORYINDEX}
{CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{SSI}
{WAP}
{ERRORALIAS}
{ERROR}
AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
{REWRITE_RULE}
{FRONTPAGE}
</VirtualHost>
#
{SSL}
#
#
<!-- END DYNAMIC BLOCK: vhost -->

The only change I made to it was to replace {SERVERIP} with 192.168.1.2:80 in order to set my ip to the public one within ISPConfig so that automatically added bind records would have the proper public ip. That's it, and it's worked for many weeks until just recently.
Reply With Quote
  #10  
Old 30th June 2006, 21:26
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

even when i copy the newly created (timestamped) vhost.conf's contents into the proper Vhost_ispconfig.conf and let the

192.168.1.2:80
192.168.1.2:80

block slide and therefore let apache fail to restart, it still won't write to that file on the next update
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
drupal setup with several vhosts scherpenzeel Installation/Configuration 4 2nd June 2006 12:13
vhosts symmetry Installation/Configuration 12 22nd May 2006 09:34
Not written "vhosts_ispconfig.conf" misterm Installation/Configuration 25 26th April 2006 14:58
How do we make individual changes at vhosts that will not be overwritten by ISPC? tom Installation/Configuration 1 23rd April 2006 13:56
Vhosts Temp. nok Installation/Configuration 2 25th February 2006 12:45


All times are GMT +2. The time now is 10:37.


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