
22nd June 2007, 10:34
|
|
Junior Member
|
|
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
vhost_ispconfig not beeing updated
Hi there!
just updatet to the latest ISP-config, and now my vhost_ispconfig-file won't reflect any changes made to sites in ispconfig. here is the output from the ispconfig logfile:
Code:
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1231: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
22.06.2007 - 10:17:57 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2418: WARNING: could not httpd -t &> /dev/null
22.06.2007 - 10:17:57 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2429: httpd syntax seems to contain errors, reloading with old configuration
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2430: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf_22-06-07_10-17-57
22.06.2007 - 10:17:57 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2431: mv -f /etc/apache2/vhosts/Vhosts_ispconfig.conf~ /etc/apache2/vhosts/Vhosts_ispconfig.conf
22.06.2007 - 10:17:58 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
22.06.2007 - 10:17:58 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1892: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
and here is httpd -t:
Code:
admin@ubuntu-p3:~$ httpd -t
Syntax OK
Why?
please help
|

22nd June 2007, 11:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
You must rename the Vhost_ispconfig.conf file with the date appended to Vhost_ispconfig.conf before you run httpd -t.
Code:
mv /etc/apache2/vhosts/Vhosts_ispconfig.conf_22-06-07_10-17-57 /etc/apache2/vhosts/Vhosts_ispconfig.conf
|

22nd June 2007, 12:46
|
|
Junior Member
|
|
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks  that told me why is failed
|

20th March 2008, 05:56
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Different situation, same problem
I had to recover my ISP Config server after it recently lost some data due to the hdd heating up. At the same time I also upgraded from ISPC version 2.2.6 to 2.2.19. I managed to get the ISP Config running fine on the new installation, but now it cannot write to the Vhosts_ispconfig.conf
I also do not have a copy of the dated *.conf file anywhere, only the actual Vhosts_ispconfig.conf, and ISP Config cannot write to this file, as I have to manually add new websites and delete them from this file. The output of httpd -t as follows:
PHP Code:
httpd: Could not reliably determine the servers fully qualified domain name, using mail.actiononline.co.za for ServerName
[Thu Mar 20 06:54:11 2008] [warn] NameVirtualHost 196.37.170.xxx:80 has no VirtualHosts
[Thu Mar 20 06:54:11 2008] [warn] NameVirtualHost 196.37.170.xxx:80 has no VirtualHosts
Syntax OK
Although it says it has no VirtualHosts, all the websites are accessible on the server. Adding, editing or deleting either mailbox users or domains from the ISPConfig control panel has no effect on the actual files.
|

20th March 2008, 10:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
The messages are warnings and not errors, you can ignore them.
If you want to find a error in Vhost_ispconfig.conf, rename the files as I described above before you run httpd -t
|

21st March 2008, 08:46
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I renamed my Vhost_ispconfig.conf file to Vhost_ispconfig.conf_01-03-08_10-17-57 and saved in in etc/apache2/vhosts/ and restarted everything. I then added a new website in the control panel, and although it shows up there, it was not added to the Vhost_ispconfig.conf file.
On an existing website I had a login problem with one of the mail accounts on the domain. I tried resetting the password, and that didn't work, so I deleted the user and wanted to re-create the box. This then gave me an error from the ISPC control panel saying the account already exists. I checked the passwd file, and there is no such user. I then also checked the virtualusertable in postfix to see if the user is there, but nothing.
So where else can the user information be that prevents ISPConfig from deleting the info and recreating? And then how can the permission problem be sorted out that will allow ISPConfig to write to all the necessary files?
|

21st March 2008, 13:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Did you rename the Vhost_ispconfig.conf file with the date appended to Vhost_ispconfig.conf and run ?
|

21st March 2008, 14:17
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yes, I renamed the file and ran httpd -t and it gave me the same output as before
|

22nd March 2008, 16:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
What's the output of
Code:
ls -la /etc/apache2/vhosts
and
Code:
ls -la /root/ispconfig
? Any errors/warnings in /home/admispconfig/ispconfig/ispconfig.log?
|

22nd March 2008, 17:45
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
PHP Code:
mail:~ # ls -la /etc/apache2/vhosts
total 248
drwxr-xr-x 2 root root 4096 Mar 20 11:42 .
drwxr-xr-x 11 root root 4096 Mar 14 19:51 ..
-rw-rw---- 1 root root 118096 Mar 18 18:42 Vhosts_ispconfig.conf
-rw-r----- 1 root root 118096 Mar 20 11:42 Vhosts_ispconfig.conf_01-03-08_10-17-57
mail:~ # ls -la /root/ispconfig
total 100
drwxr-xr-x 9 root root 4096 Mar 22 15:20 .
drwx------ 13 root root 4096 Mar 21 10:29 ..
-rw-r--r-- 1 root root 8 Mar 22 15:20 .old_path_httpd_root
-rwxr-xr-x 1 root root 34515 Mar 14 19:51 cronolog
-rwxr-xr-x 1 root root 9673 Mar 14 19:51 cronosplit
drwxr-xr-x 12 root root 4096 Mar 14 19:35 httpd
drwxr-xr-x 15 root root 4096 Mar 14 19:51 isp
drwxr-xr-x 6 root root 4096 Mar 14 19:30 openssl
drwxr-xr-x 6 root root 4096 Mar 20 15:38 php
drwxr-xr-x 4 root root 4096 Mar 18 23:59 scripts
drwxr-xr-x 4 root root 4096 Mar 14 19:51 standard_cgis
drwxr-xr-x 2 root root 4096 Mar 14 19:51 sv
-rwx------ 1 root root 9389 Mar 14 19:51 uninstall
And here is what I could see in the ISPConfig log when the user mailbox was deleted and recreated.
PHP Code:
18.03.2008 - 13:21:25 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2597: rm -fr /var/www/web119/user/brokor.co.za_stuart
18.03.2008 - 13:23:34 => DEBUG - The username is already in use.<br><br><br> <a href='../../isp_manager/frame_start.php?'>Next >></a>
18.03.2008 - 13:24:50 => DEBUG - The username is already in use.<br><br><br> <a href='../../isp_manager/frame_start.php?'>Next >></a>
18.03.2008 - 13:48:17 => INFO - Signalfile Set: insert
18.03.2008 - 13:48:26 => WARN - WARNING: could not open file
Then I also saw this that seemed suspect:
PHP Code:
21.03.2008 - 09:48:24 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2520: httpd syntax ok
21.03.2008 - 09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/rc.d/init.d/httpd reload &> /dev/null
21.03.2008 - 09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/rc.d/init.d/postfix stop &> /dev/null
21.03.2008 - 09:48:24 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/rc.d/init.d/postfix start &> /dev/null
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 01:16.
|
|
Recent comments
23 hours 54 min ago
1 day 4 hours ago
1 day 9 hours ago
1 day 11 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 6 hours ago
2 days 13 hours ago
2 days 13 hours ago
2 days 15 hours ago