Content
You are here:
installing phpmyadmin
Added by Arne Kabelitz almost 9 years ago
Hi,
after finishing the OP installation on Debian 8 Jessie I tried to install a phpmyadmin.
The installation was no problem (using the packages installation), but I cann’t run the phpmyadmin in the browser using the URL: http://localhost/phpmyadmin
Which file has to be configured so that I can use the link and have access to phpmyadmin?
As default I change the apache2.conf with: sudo nano /etc/apache2/apache2.conf
Add the phpmyadmin config to the file: Include /etc/phpmyadmin/apache.conf
Restart apache
But these changes have no effect.
Thaks for any ideas.
Replies (3)
I just solved it, maybe there is a smarter way but this one is working :)
Edit the file /etc/apache2/ports.conf
Add the line: Listen 88
Edit the file /etc/apache2/sites-available/openproject.conf
Add a new virtual host:
<VirtualHost *:88>
ServerName openproject.local
DocumentRoot /usr/share/phpmyadmin/
restart apache
Now phpmyadmin is available with the url
http://localhost:88/phpmyadmin
greetz
Hit this myself. OP hijacks normal website operation, haven’t figured out exactly how, their conf files are extremely complex and unorthodox.
I was unable to wrestle control of /phpmyadmin back away for OP on the DNS name that OP is using. The only way I could get this to work without changing ports was by configuring the aname of the server separate from the cname that OP is using. In this way phpmyadmin can work on the aname since the cname behavior is hijacked. If you don’t have two DNS names on the server, changing port would be the only solution I can see.
It would be great if someone from the team could chime in on what OP is doing in its configs to break phpmyadmin as it’s an extremely handy tool, especially if you’re not running OP on a single use server. I imagine there is a more elegant way to deal with this, I just couldn’t sort it out and really didn’t want to start trying to edit their config files.
For Centos 7 ==> You can also check the file /etc/httpd/conf.d/openproject.conf
and see if you have a star in your VirtualHost definition (to be replaced by your public IP address)
<VirtualHost *:80> —-> to be -
ServerName xxxxxxxxxxxxxxxxxxx
RewriteEngine On
RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]