What am I doing wrong in this httpd.conf file?
I can't use PhpMyAdmin on our server.
12.34.56.78/phpmyadmin does not resolve to the PhpMyAdmin installation on the server.
Neither does, mywebsite1/phpmyadmin
I have phpmyadmin installed at: /var/www/vhost/phpmyadmin and /var/www/vhosts/phpmyadmin
but I can't get to use any one of them.
I'm thinking maybe if I shared my httpd.conf file here, I might get some help.
Maybe someone can spot what I am doing wrong.
Here's a snippet of my Apache httpd.conf file:
# 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>
<virtualhost *:80="">ServerName mywebsite1.com
ServerAlias www.mywebsite1.com
DocumentRoot /var/www/vhosts/mywebsite1/httpdocs/
<directory var="" www="" vhosts="" mywebsite1="" httpdocs="">AllowOverride all</directory>
Alias /phpmyadmin "/var/www/vhost/phpmyadmin/"</virtualhost>
# <virtualhost *:80="">#Alias /phpmyadmin "/var/www/vhost/phpmyadmin"
#DocumentRoot /var/www/html/phpmyadmin
# <directory var="" www="" html="" phpmyadmin="">#AllowOverride all
#</directory>
#</virtualhost>
Thanks.
1 Reply
Are the file permissions correct to allow apache / php to read and execute the installation?
Add a Directory directive as well.
Alias /phpmyadmin /var/www/vhost/phpmyadmin
AllowOverride None
Order allow,deny
Allow from all