LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-15-2007, 04:09 PM   #1
iaingblack
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
Accessing phpmyadmin on a live server


Hi everyone. I am currently experimenting and running my own webserver for me and a friend but have hit a little snag... I was hoping to do some database programming and so installed phpmyadmin and I was hoping to access things fairly easily but my self-inflicted apache setup prevents it and i'm not sure how to get round it.

Just in case it matters, I have BIND running with 2 zones, lets call them test1.co.uk and test2.co.uk (not ready to reveal my sites to the world just yet!). I have pointed my domain names to use the server as their name server and BIND just forwards www, ftp, ns1, ns2 and mail requests to itself. Nothing fancy in the slightest.

My apache NameVirtualHost setup is as follows.

NameVirtualHost myipaddress

<VirtualHost myipaddress>
ServerName www.test1.co.uk
ServerAlias test1.co.uk *.test1.co.uk
DocumentRoot /var/www/test1
</VirtualHost>

<VirtualHost myipaddress>
ServerName www.test2.co.uk
ServerAlias test2.co.uk *.test2.co.uk
DocumentRoot /var/www/test2
</VirtualHost>

I have phpmyadmin installed in /var/www/phpmyadmin, but how do I get to it!?! Do i need to register another domainname and point it to it? Do I need a subdomain in bind such as phpmyadmin.test1.co.uk? I can obviously move the 'phpmyadmin' folder into /var/www/test1 but I think there must be a better way! I dont want another domain name and i'm not sure I want to go subdomaining things if I can help it.

Sorry for long post, I just cant quite figure out if this is possible and how to do it. Any help is appreciated, I really need a bit of 'best practice' advice!
Cheers!
 
Old 01-15-2007, 04:16 PM   #2
iaingblack
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Solved!

Hi,

Sorry, I solved this after posting, amazing what writing things out can do for you, eh?

I changed apache.conf to do the following

#--------------------------------------------------------------------------------
NameVirtualHost myipaddress

<VirtualHost myipaddress>
ServerName www.test1.co.uk # Took away *.test1.co.uk
ServerAlias test1.co.uk www.test1.co.uk
DocumentRoot /var/www/test1
</VirtualHost>

<VirtualHost myipaddress>
ServerName www.test2.co.uk
ServerAlias test2.co.uk *.test2.co.uk
DocumentRoot /var/www/test2
</VirtualHost>

#Added in phpmyadmin.test1.co.uk
<VirtualHost myipaddress>
ServerName phpmyadmin.test2.co.uk
ServerAlias phpmyadmin.test2.co.uk
DocumentRoot /var/www/phpmyadmin
</VirtualHost>
#---------------------------------------------------------------------------------
Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing domains on a server dihsar Linux - Newbie 3 03-22-2006 11:28 PM
Problem with accessing other network server when connected from a dial-in server radatan71 Linux - Networking 0 11-22-2005 02:20 AM
Ultimate Slack Server Guide::Installing Apache2, PHP4, MySQL4, Webmin1.2, phpMyAdmin Eric45008 Slackware - Installation 9 04-25-2005 11:59 PM
accessing a Windows server ? hildog Linux - Newbie 1 10-06-2003 05:31 PM
accessing a pop3 server artman62 Linux - Software 4 01-30-2003 04:09 PM


All times are GMT -5. The time now is 03:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration