
17th October 2005, 16:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
There's one Apache tto much on your system...  Try to find out which configuration files belong to your main Apache, and make sure that ISPConfig is writing to these files, not the ones of the other Apache.
|

17th October 2005, 17:07
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
Quote:
|
Originally Posted by falko
There's one Apache tto much on your system...  Try to find out which configuration files belong to your main Apache, and make sure that ISPConfig is writing to these files, not the ones of the other Apache.
|
Yeah, I messed up by adding the third one when I was trying to install PHP4. The only install instructions I could find was with Apache as well. But, I understand how to do it now without Apache. Oh well, I will uninstall the third Apache.
To remove the third Apache, would it be best to just delete all the associated files?
*****
I just ssh'd in to my server to rename the third apache directory to _apache2 and then restart my main apache. When I did it came back with:
Code:
[root@server1 init.d]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Oct 17 11:04:52 2005] [warn] module php4_module is already loaded, skipping
[Mon Oct 17 11:04:52 2005] [warn] NameVirtualHost 192.168.2.50:80 has no VirtualHosts
[ OK ]
|

17th October 2005, 20:54
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
Why would I get the message, "NameVirtualHost 192.168.2.50:80 has no VirtualHosts". The main Apache loads the Vhosts_ISPConfig.conf file.
This is what is in the main Apache config file for Virtual Hosts:
Code:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
<Directory /home/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
<Directory /home/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
Include /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
|

17th October 2005, 22:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
Originally Posted by ctroyp
Why would I get the message, "NameVirtualHost 192.168.2.50:80 has no VirtualHosts".
|
It's only a warning, nothing serious.
What's in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf?
|

17th October 2005, 22:53
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
Quote:
|
Originally Posted by falko
What's in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf?
|
Code:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.2.50:80
NameVirtualHost 192.168.2.50:80
#
#
######################################
# Vhost: www.mydomain1.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain1.com:80
ServerAdmin webmaster@mydomain1.com
DocumentRoot /home/www/web1/web
ServerAlias mydomain1.com
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
ScriptAlias /cgi-bin/ /home/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/www/web1/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mydomain2.com:80
######################################
#
#
<VirtualHost 192.168.2.50:80>
ServerName www.mydomain2.com:80
ServerAdmin webmaster@mydomain2.com
DocumentRoot /home/www/web2/web
ServerAlias ftp.mydomain2.com mydomain2.com
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
ScriptAlias /cgi-bin/ /home/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /home/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web2/phptmp/
php_admin_value session.save_path /home/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ftp\.mydomain2\.com [NC]
RewriteRule ^/(.*)$ http://www.mydomain2.com/ftp/$1 [R]
</VirtualHost>
#
#
#
|

17th October 2005, 23:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Is it possible the you have the IP address 192.168.2.50 twice under Management -> Server -> Settings? Once in "IP Address" and once in "IP List"? If so, remove it from "IP List".
|

17th October 2005, 23:58
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
192.168.2.50 was in both places. I removed the one from the IP List and restarted the Apache. Still no luck though.
|

18th October 2005, 00:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
Originally Posted by ctroyp
192.168.2.50 was in both places. I removed the one from the IP List and restarted the Apache. Still no luck though.
|
I know, this was only the first step.
Now you have to change something in ISPConfig for a web site, e.g. switch on/off SSI for a web site, so that ISPConfig sees that there's a change for a web site and rewrites the Apache configuration.
|

18th October 2005, 02:03
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
I thought we were on to something there, but it didn't help. I restarted apache too...
Under each website in ISPConfig, should they both be using the same IP? 192.168.2.50?
Also, I deleted the third Apache directories I had installed hoping this would help.
I noticed one thing when rebooting my server. When it was booting back up I saw a message error for named ...something like pri.mydomain1.com and pri.mydomain2.com ...
but it went too fast to record what it was actually saying.
Any idea what that would mean??
Last edited by ctroyp; 18th October 2005 at 16:03.
|

18th October 2005, 17:00
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
|
|
This wouldn't be a BIND issue would it?
|
| 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 02:05.
|
|
Recent comments
1 day 2 hours ago
1 day 2 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 20 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 8 hours ago