DEV Community

Sifat Faysal
Sifat Faysal

Posted on • Updated on

Run phpMyAdmin on ubuntu without install any server

phpMyAdmin is a popular tool for managing MySQL databases. It can be run on Ubuntu without installing a web server such as Nginx or Apache by using the built-in PHP server.

Here's how to run phpMyAdmin on Ubuntu without installing a web server:

Install phpMyAdmin on your system. You can do this by running the command sudo apt-get install phpmyadmin
Move the phpMyAdmin directory to your desired location. For example, you can move it to the /var/www/ directory by running sudo mv /usr/share/phpmyadmin /var/www/
Start the built-in PHP server by running the command php -S localhost:8000 in the directory where phpMyAdmin is located (in this case, /var/www/phpmyadmin)
Open your web browser and go to the URL http://localhost:8000. You should now see the phpMyAdmin login page.
It is worth noting that using the built-in PHP server for production environments is not recommended, as it is not as robust or secure as using a dedicated web server like Apache or Nginx.

Additionally, please be careful with the permissions of the folder you move the phpMyAdmin to, because it could be a security risk if you don't set the correct permissions on it.

In summary, you can run phpMyAdmin on Ubuntu without installing a web server by using the built-in PHP server and moving the phpMyAdmin directory to the desired location, and using the command "php -S localhost:8000" to start the server in the corresponding folder.

Top comments (0)