HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to remove phpmyadmin from port 80 (http://www.howtoforge.com/forums/showthread.php?t=61493)

jimmyk 17th April 2013 14:51

How to remove phpmyadmin from port 80
 
How do you block phpmyadmin from being available on port 80?

I would like it to use only a secure connection on port 2222 (port that ispconfig is installed on).

I gave this a try on the debian squeeze server, but it did not work:
# mv /var/www/ispconfig /var/www/disabledispconfig
# /etc/init.d/apache2 restart

till 17th April 2013 14:57

You can not run other software beside ispconfig on the ispconfig port without compromising security of your server.

jimmyk 17th April 2013 15:49

I noticed that phpmyadmin is working on the ispconfig port so I wanted to just remove it from port 80.

Ideally, I would like phpmyadmin to run on its own seperate port so it can be restricted with iptables. However, I have not really used phpmyadmin before so I do not know if this is possible. My Google search has given me diffent opinions on this so far.

till 17th April 2013 16:07

Quote:

I noticed that phpmyadmin is working on the ispconfig port so I wanted to just remove it from port 80.
Then you seem to use a older version of ispconfig were we had not blocked that yet.

Quote:

Ideally, I would like phpmyadmin to run on its own seperate port so it can be restricted with iptables. However, I have not really used phpmyadmin before so I do not know if this is possible. My Google search has given me diffent opinions on this so far.
Use port 8081, this is the ispconfig apps vhost which is made to run additional apps on a ispconfig server.

jimmyk 18th April 2013 15:28

I installed version 3.0.5.2 using the dclardy script that was posted elsewhere in this forum. However, I selected port 2222 for ispconfig when ispconfig asked for an installation port.

It looks like I will have to reinstall ispconfig using the standard ports.

till 18th April 2013 15:46

You dont have to reinstall ispconfig. The port you selected for ispconfig does not matter for this.

jimmyk 18th April 2013 18:03

I have switched ports now and ispconfig is on port 8080.

phpmyadmin is now available on:

https:www.example.com:8080/phpmyadmin

This is essentially what is was aiming for. However, phpmyadmin is still also available on:

http:www.example.com/phpmyadmin

This is what I am hoping to be able to avoid. I am not sure if the issue has arisen because I initially installed ispconfig on a nonstandard port.


All times are GMT +2. The time now is 06:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.