Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th March 2008, 15:15
Musty Musty is offline
Member
 
Join Date: Mar 2008
Location: Morocco
Posts: 38
Thanks: 3
Thanked 3 Times in 3 Posts
Default all Virtualhosts point to phpMyAdmin

I installed F7 with webmin and configured my hosts file as follow:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.2.3 mydomain.org mydomain
192.168.2.3 sql.mydomain.org sql
192.168.2.3 mail.mydomain.org mail
192.168.2.3 smtp.mydomain.org smtp
192.168.2.3 pop.mydomain.org pop
192.168.2.3 www.mydomain.org www
192.168.2.3 alcboard.ath.cx free1
::1 localhost6.localdomain6 localhost6


First I installed phpmyadmin and set a virtualhost to point to it this way:

<VirtualHost *>
DocumentRoot /var/www/html/phpMyAdmin
ServerName sql.mydomain.org
<Directory "/var/www/html/phpMyAdmin">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

works fine! I get phpmyadmin login box and I can access it just fine.

Then I set a second Vhost this way:

<VirtualHost *>
DocumentRoot /var/www/html/dbm
ServerName www.mydomain.org
<Directory "/var/www/html/dbm">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

when I type www.mydomain.org I get phpmyadmin although directory is different.

Did I do anything wrong? Any help would be appreciated.

Thanks
__________________
Computers are like air conditioners, they stop working properly if you open Windows.
Reply With Quote
Sponsored Links
  #2  
Old 7th March 2008, 17:47
Musty Musty is offline
Member
 
Join Date: Mar 2008
Location: Morocco
Posts: 38
Thanks: 3
Thanked 3 Times in 3 Posts
Default

More on this problem.

I run Virtualhost configuration check and this is what I got:

[root@localhost~]# /usr/sbin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 localhost (/etc/httpd/conf.d/ssl.conf:81)
*:80 is a NameVirtualHost
default server sql.mydomain.org (/etc/httpd/conf/httpd.conf:991)
port 80 namevhost sql.mydomain.org (/etc/httpd/conf/httpd.conf:991)
port 80 namevhost www.mydomain.org (/etc/httpd/conf/httpd.conf:998)
Syntax OK

I am just wondering why sql.mydomain.org is mentioned twice. 1 as a default server and 1 as a Vhost?

Thanks
__________________
Computers are like air conditioners, they stop working properly if you open Windows.
Reply With Quote
  #3  
Old 7th March 2008, 18:10
Musty Musty is offline
Member
 
Join Date: Mar 2008
Location: Morocco
Posts: 38
Thanks: 3
Thanked 3 Times in 3 Posts
 
Default

Sorted out!

That was just a stupid thing. I found out I had assigned the site 192.168.2.8 in the network card hosts instead of the server's IP 192.168.2.3.

Sorry for bothering.
__________________
Computers are like air conditioners, they stop working properly if you open Windows.
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
ssl on phpmyadmin rick z Installation/Configuration 9 22nd October 2010 12:12
phpmyadmin "Cannot load mysql extension. Please check your PHP configuration" rjamesd Programming/Scripts 4 23rd October 2007 16:27
Moving /var to a new drive & renaming mount point tdd_topdog Technical 2 12th July 2006 05:10
phpMyAdmin question? ctroyp Installation/Configuration 1 20th March 2006 23:19
phpMyAdmin string error IntnsRed General 2 7th November 2005 10:48


All times are GMT +2. The time now is 12:13.


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