Sudo apt install phpmyadmin nginx7/7/2023 You can easily follow the steps below to configure PHPMyAdmin. You can set the appropriate and required permissions with the help of the following commands: sudo chown -R www-data:www-data /usr/share/phpmyadmin sudo chmod 777 /usr/share/phpmyadmin/tmp 3) Configure and Access Run the tmp directory using the following command: sudo mkdir /usr/share/phpmyadmin/tmp Now you can move the PHPMyAdmin file to the desired path with the help of the following command: sudo mv phpMyAdmin-5.2.0-all-languages /usr/share/phpmyadmin In the first step, it is necessary to download PHPMyAdmin using the following command: wget Īfter you download the file, you must unzip it by running the following command: unzip phpMyAdmin-5.2.0-all-languages.zip It is also necessary to enable Apache: sudo systemctl enable apache2Īfter installing the required prerequisites in this section, in the next section we will teach you how to install PHPMyAdmin. Then you need to install PHP using the following command: sudo apt install php php-zip php-json php-mbstring php-mysqlĪfter completing the mentioned steps, you can start Apache by running the following command: sudo systemctl start apache2 Now you can install Apache by running the following command: sudo apt install apache2 wget unzip In the first step, it is necessary to install MySQL on Linux Ubuntu. Try to make things up-to-date in order to avoid potential problems with unwanted guests.Recommended Article: Tutorial Install Plesk on Ubuntu 22.04 1) Installing Apache and PHP As always, you can also check current vulnerabilities (CVE – Common Vulnerabilities and Exposures) on sources like CVEDetails / MITRE CVE or phpMyAdmin security. Alter phpMyAdmin path, select good MySQL usernames/passwords, restrict remote access to root users, etc. You should pay more attention to security. sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html Conclusion Leave it empty. Finally, make a soft link within web folder towards phpmyadmin. In case you have NGINX web server, don’t select anything on web server selection step. On web server selection step, simply choose Apache2 and everything should be configured automatically. There is a slight difference in steps between Apache/httpd and Nginx. For now, you can try and login with the password you just set, and username = phpmyadmin. With this you can open phpMyAdmin control panel url: http(s)://SERVER/phpmyadminĭepending on your MySQL setup, additional configuration might be required. Next, phpmyadmin user password prompt:įinished. You can select No and set things manually. Here we’ll select Yes, just to speed things up. Select the one you have by pressing SPACE (or none if you have NGINX – check 1b). You will be prompted to select HTTP server (Apache2, lighttpd). Ubuntu distributions with APT ( Advanced Packaging Tool) offer a simple way to do this: sudo apt install phpmyadminĪlso, you can update package repository before that line: sudo apt update. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.īefore continuing, install MySQL server or MariaDB. The phpMyAdmin supports a wide range of operations on MySQL and MariaDB. The phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. This is a quick step-by-step tutorial on how to install phpMyAdmin within linux ( Ubuntu 18.04).
0 Comments
Leave a Reply. |