0

My Adminer (Database management in a single PHP file) runs on a Debian Server, and I want to move my database management web login screen from port 80 to port 50001. How can I do it ?

migrated from askubuntu.com Jan 5 '18 at 13:08

This question came from our site for Ubuntu users and developers.

4

The correct question would be: How to change my web server's default port?

In case you're using Apache Web Server, then follow this steps:

In /etc/apache2/ports.conf, change the port to:

Listen 50001

Then go to /etc/apache2/sites-enabled/000-default.conf

And change the first line to:

<VirtualHost *:50001>

Now restart the apache2 service:

sudo service apache2 restart

Apache will now listen on port 50001.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.