What am I doing wrong in this httpd.conf file?

Hi Guys,

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

What does the Apache error log say?

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

Options FollowSymLinks

AllowOverride None

Order allow,deny

Allow from all

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct