Hi,
I am a novice in Apache. I have set up Apache in a Linux machine. I have verified that the deault index page, coming with Apache, stored in directory /var/www could be seen if I type my site's address (say, [
myapps.mysite.com...] in a browser.
Now, I have a PHP based web site, which I want the user to access if he gives the same URL i.e. [
myapps.mysite.com...] This application I want to keep in the folder "var/www/applications/myapps".
Additionally, I have installed the phpMyAdmin package for mySQL administration in the directory /var/www. I want to access the phpMyAdmin by giving the URL "http://myapps.mysite.com/phpmyadmin".
To do the first, I changed the file /etc/apache2/sites-enebled/default in the following way:
<VirtualHost *:80>
DocumentRoot "/var/www/applications/myapps"
DirectoryIndex index.php
ServerName myapps.mysite.com
<directory "/var/www/applications/owletnightshift/htdocs">
Order allow,deny
Allow from all
AllowOverride All
</directory>
ErrorLog /var/log/apache2/myapps-error_log
CustomLog /var/log/apache2/myapps-access_log common
</VirtualHost>
Now, I can access my PHP application if I give the URL [
myapps.mysite.com...]
However, I cannot access the phpmyadmin any longer by typing [
myapps.mysite.com...] which is natural because there is no phpmyadmin directory under /var/www/applications/myapps. I also do not want to install phpmyadmin there.
In that case, how can I access the phpmyadmin application now? Do I have to create another subdomain like phpmyadmin.mysite.com and create another virtual host entry in the default file with this subdomain name? Is there any other way?
In general, if I want to run two web applications, do I have to create two subdomains in Apache? I know this is related to the concept of VirtualHost, but somehow I could not get it right.
Thanks in advance,