Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Apache2 - VirtualHosts - phpMyAdmin question

$
0
0
Hi Guys,

I've been thinking recently about getting myself some VPS space to host a WordPress blog for myself (keep all my notes from work over the last 15 years!) and maybe consider playing around with some OwnCloud whilst I'm at it :-)

Before i take the plunge and sign up to anything, I've fired up a minimal openSUSE 13.1 server on VirtualBox locally to test my build and configuration and I've run into a challenge. Now i'm not a network / server admin by trade and this has been my very simply approach (which may be wrong and i'm open to advice all the way).

I've installed my LAMP, with apache2, mySQL (MariaDB) and php5 all with the phpMyAdmin utilities for managing database etc.

I have configured a static IP address and pointed that to a host called opensuse.gsustech.com, so when i open h**p://opensuse.gsustech.com everything works fine and i see the phpMyAdmin page and i can manage my databases accordingly.

However, when i start to introduce VirtualHosts to apache2, things start to get messed up.

At this point i've not altered any config files, so everything works straight out of the box as intended.

I have one local user called 'webadmin' and 2 directories in /home, one for wordpress and the other for owncloud :

Code:

/home/webadmin/wordpress
/home/webadmin/owncloud

I've added additional entries to my hosts file so that the server names can be resolved :

Code:

/etc/hosts

192.168.56.101  wordpress.gsustech.com
192.168.56.101  owncloud.gsustech.com

I've created a wordpress.conf and owncloud.conf in the vhosts.d directory under :

Code:

/etc/apache2/vhosts.d
In each of these virtual host directories in my user home I've created an index.html for testing.

When i restart the apache2 service and navigate to the urls for h**p://wordpress.gsustech.com and h**p://owncloud.gsustech.com i see my index files and i'm pointing to the right pages, however if i point back to h**p://opensuse.gsustech.com the phpMyAdmin can no longer be displayed.

I hope this all makes sense, and i really just wanted opensuse.gsustech.com to be my default server, and have wordpress.gsustech.com and owncloud.gsustech.com as my virtual servers.

If i remove my wordpress.conf and owncloud.conf from the /etc/apache2/vhosts.d directory i can open the phpMyAdmin on opensuse.gsustech.com again.

Hope this all makes sense.

Thanks

Glen

Hopes this all makes sense

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>