HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   problem with virtual hosts (http://www.howtoforge.com/forums/showthread.php?t=51632)

andron26 25th February 2011 19:43

problem with virtual hosts
 
Hello,

Installed ISPConfig 2.2.37 on Debian 5.0.8.
Everything worked fine, I've created 3 sites. When created forth noticed that site is pointing to shared ip. checked apache configuration and noticed that there is no info about 4th site. Users, folders for web4 created ok, also can create db from ispconfig. But no input about web4 in vhost configuration at all. If I create new site everything is the same. Users, folders, databases are created but no info in vhost configuration.
Tried to reinstall ISPConfig there is such infog in the end:

All prerequisites are fulfilled.
Here we go...

Connected successfully to db db_ispconfig
cp: cannot stat `customized_templates/*': No such file or directory
Restarting some services...
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
Stopping ftp server: proftpd.
Starting ftp server: proftpd - setting default address to 127.0.0.1
.
Shutting down ISPConfig system...
/root/ispconfig/httpd/bin/apachectl stop: httpd (no pid file) not running
ISPConfig system stopped!
Starting ISPConfig system...
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
ISPConfig system is now up and running!
Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.

So I have no idea what happend. What does this mean:
cp: cannot stat `customized_templates/*': No such file or directory

falko 26th February 2011 14:18

Quote:

Originally Posted by andron26 (Post 252164)
So I have no idea what happend. What does this mean:
cp: cannot stat `customized_templates/*': No such file or directory

This is nothing to worry about. ISPConfig's templates are stored in /root/ispconfig/isp/conf/; if you want to modify a template, you can create the directory /root/ispconfig/isp/conf/customized_templates and store the modified template there (instead of modifying the original template) so that your modified template will not be affected by an ISPConfig upgrade. If ISPConfig finds a template in /root/ispconfig/isp/conf/customized_templates, it will use that one instead of the otiginal one. If the directory doesn't exist, that's prefectly ok.

To your problem: what's the output of
Code:

ls -la /root/ispconfig/
?

Do you see any error messages when you run
Code:

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
on the shell?

andron26 28th February 2011 07:13

ls -la /root/ispconfig/

total 104
drwxr-xr-x 10 root root 4096 2011-02-25 20:50 .
drwxr-xr-x 6 root root 4096 2011-02-25 20:17 ..
-rwxr-xr-x 1 root root 34690 2011-02-25 20:17 cronolog
-rwxr-xr-x 1 root root 9673 2011-02-25 20:17 cronosplit
drwxr-xr-x 12 root root 4096 2011-02-25 20:04 httpd
drwxr-xr-x 16 root root 4096 2011-02-25 20:17 isp
drwxr-xr-x 7 root root 4096 2011-02-25 20:04 libmcrypt
-rw-r--r-- 1 root root 8 2011-02-25 20:50 .old_path_httpd_root
drwxr-xr-x 6 root root 4096 2011-02-25 20:04 openssl
drwxr-xr-x 6 root root 4096 2011-02-25 20:07 php
drwxr-xr-x 4 root root 4096 2011-02-25 20:17 scripts
drwxr-xr-x 4 root root 4096 2011-02-25 20:17 standard_cgis
drwxr-xr-x 2 root root 4096 2011-02-25 20:17 sv
-rwx------ 1 root root 9405 2011-02-25 20:17 uninstall

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

export APACHE_RUN_USER=www-data
start
ende

admin 1st March 2011 15:59

Both outputs look ok.

Are the new sites listed in /etc/apache2/vhosts/Vhosts_ispconfig.conf?

andron26 1st March 2011 18:57

I can create ne sites, users, databases, but there is no input i vhosts file. I forgot to mention that I forgot ispconfig password and changed it in mysql (UPDATE sys_user SET passwort = md5('myNewPassword') WHERE username = 'admin')

falko 2nd March 2011 19:15

Can you post the output of
Code:

ls -la /etc/apache2/vhosts/
?

andron26 3rd March 2011 07:12

ls -la /etc/apache2/vhosts/
total 264
drwxr-xr-x 2 root root 4096 2011-03-03 08:10 .
drwxr-xr-x 8 root root 4096 2011-02-22 00:46 ..
-rw-r--r-- 1 root root 6804 2011-03-01 19:54 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 7330 2011-03-01 17:39 Vhosts_ispconfig.conf_01-03-11_17-39-26
-rw-r--r-- 1 root root 8408 2011-03-01 19:54 Vhosts_ispconfig.conf_01-03-11_19-54-08
-rw-r--r-- 1 root root 4105 2011-02-23 14:34 Vhosts_ispconfig.conf_23-02-11_14-34-36
-rw-r--r-- 1 root root 2436 2011-02-23 15:50 Vhosts_ispconfig.conf_23-02-11_15-50-12
-rw-r--r-- 1 root root 5440 2011-02-24 13:18 Vhosts_ispconfig.conf_24-02-11_13-18-03
-rw-r--r-- 1 root root 5440 2011-02-24 13:20 Vhosts_ispconfig.conf_24-02-11_13-20-13
-rw-r--r-- 1 root root 5440 2011-02-24 13:21 Vhosts_ispconfig.conf_24-02-11_13-21-14
-rw-r--r-- 1 root root 6689 2011-02-24 13:23 Vhosts_ispconfig.conf_24-02-11_13-23-44
-rw-r--r-- 1 root root 6842 2011-02-24 13:24 Vhosts_ispconfig.conf_24-02-11_13-24-25
-rw-r--r-- 1 root root 6842 2011-02-24 13:25 Vhosts_ispconfig.conf_24-02-11_13-25-26
-rw-r--r-- 1 root root 6842 2011-02-24 13:26 Vhosts_ispconfig.conf_24-02-11_13-26-56
-rw-r--r-- 1 root root 6689 2011-02-25 10:27 Vhosts_ispconfig.conf_25-02-11_10-27-17
-rw-r--r-- 1 root root 6746 2011-02-25 10:29 Vhosts_ispconfig.conf_25-02-11_10-29-39
-rw-r--r-- 1 root root 5440 2011-02-25 10:33 Vhosts_ispconfig.conf_25-02-11_10-33-20
-rw-r--r-- 1 root root 5440 2011-02-25 10:38 Vhosts_ispconfig.conf_25-02-11_10-38-51
-rw-r--r-- 1 root root 6689 2011-02-25 10:43 Vhosts_ispconfig.conf_25-02-11_10-43-50
-rw-r--r-- 1 root root 6689 2011-02-25 10:49 Vhosts_ispconfig.conf_25-02-11_10-49-12
-rw-r--r-- 1 root root 6746 2011-02-25 11:00 Vhosts_ispconfig.conf_25-02-11_11-00-03
-rw-r--r-- 1 root root 6746 2011-02-25 11:15 Vhosts_ispconfig.conf_25-02-11_11-15-54
-rw-r--r-- 1 root root 6753 2011-02-25 11:17 Vhosts_ispconfig.conf_25-02-11_11-17-15
-rw-r--r-- 1 root root 6753 2011-02-25 11:17 Vhosts_ispconfig.conf_25-02-11_11-17-46
-rw-r--r-- 1 root root 6753 2011-02-25 20:17 Vhosts_ispconfig.conf_25-02-11_20-17-27
-rw-r--r-- 1 root root 7023 2011-02-25 20:18 Vhosts_ispconfig.conf_25-02-11_20-18-17
-rw-r--r-- 1 root root 7330 2011-02-25 20:49 Vhosts_ispconfig.conf_25-02-11_20-49-38
-rw-r--r-- 1 root root 7330 2011-02-25 20:50 Vhosts_ispconfig.conf_25-02-11_20-50-39
-rw-r--r-- 1 root root 7330 2011-02-28 08:09 Vhosts_ispconfig.conf_28-02-11_08-09-01
-rw-r--r-- 1 root root 7330 2011-02-28 08:12 Vhosts_ispconfig.conf_28-02-11_08-12-25
-rw-r--r-- 1 root root 7330 2011-02-28 08:24 Vhosts_ispconfig.conf_28-02-11_08-24-23
-rw-r--r-- 1 root root 7330 2011-02-28 08:28 Vhosts_ispconfig.conf_28-02-11_08-28-03
-rw-r--r-- 1 root root 7330 2011-02-28 08:29 Vhosts_ispconfig.conf_28-02-11_08-29-34
-rw-r--r-- 1 root root 7330 2011-02-28 08:34 Vhosts_ispconfig.conf_28-02-11_08-34-15

falko 4th March 2011 17:19

Make a backup of Vhosts_ispconfig.conf, rename Vhosts_ispconfig.conf_01-03-11_19-54-08 to Vhosts_ispconfig.conf and run
Code:

httpd -t
Does it show any syntax errors?

andron26 10th March 2011 21:14

httpd -t

httpd: Syntax error on line 331 of /etc/apache2/apache2.conf: Syntax error on line 205 of /etc/apache2/vhosts/Vhosts_ispconfig.conf: Expected </VirtualHost> but saw </Directory>

falko 11th March 2011 15:53

What's in /etc/apache2/vhosts/Vhosts_ispconfig.conf? Did you modify the file?


All times are GMT +2. The time now is 16:38.

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