Forum: 

I messed up my phpmyadmin virtual host

Clint's picture

Ok, so I was working on adding some new virtual host in the Apache module through Webmin. When inadvertantly I deleted the phpmyadmin from the list.

Could someone please post the virtual host config for phpmyadmin? I am using this on the LAMP appliance.

 

Thanks

Guest's picture

Looks like since no one has given a quick answer we may have to start up another appliance and get it ourselves.

Alon Swartz's picture

I hope this helps...
 
 
/etc/phpmyadmin/apache.conf

<VirtualHost *:12322>
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/cert.pem
    ServerAdmin webmaster@localhost
    DocumentRoot /usr/share/phpmyadmin/
</VirtualHost>

<Directory /usr/share/phpmyadmin>
    Options Indexes FollowSymLinks
    DirectoryIndex index.php

    <Files setup.php>
        Deny from all
    </Files>

    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .
    </IfModule>
</Directory>


Clint's picture

Thank you, that did it.

Post new comment