#21  
Old 17th October 2005, 16:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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.
__________________
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:
Sponsored Links
  #22  
Old 17th October 2005, 17:07
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
Default

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  ]
  #23  
Old 17th October 2005, 20:54
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
Default

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
  #24  
Old 17th October 2005, 22:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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?
__________________
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:
  #25  
Old 17th October 2005, 22:53
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
Default

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>
#
#
#
  #26  
Old 17th October 2005, 23:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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".
__________________
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:
  #27  
Old 17th October 2005, 23:58
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
Default

192.168.2.50 was in both places. I removed the one from the IP List and restarted the Apache. Still no luck though.
  #28  
Old 18th October 2005, 00:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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.
__________________
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:
  #29  
Old 18th October 2005, 02:03
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
Default

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.
  #30  
Old 18th October 2005, 17:00
ctroyp ctroyp is offline
Senior Member
 
Join Date: Sep 2005
Posts: 292
Thanks: 3
Thanked 2 Times in 1 Post
 
Default

This wouldn't be a BIND issue would it?
Closed Thread

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
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 14:17
PHP not working jefash General 10 28th May 2006 08:48
Cannot compile new PHP with apxs olli Installation/Configuration 11 4th March 2006 15:32
Multiple domains jysse Installation/Configuration 2 10th August 2005 11:22
Apache + PHP lola Server Operation 1 25th April 2005 13:41


All times are GMT +2. The time now is 05:33.


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