![]() ![]() In this article, we have seen how our support engineers install Apache, MariaDB, PHP, and phpMyAdmin in Ubuntu 18.04 server. Now, we can log in to phpMyAdmin using the admin user. MariaDB > GRANT ALL PRIVILEGES ON *.* TO WITH GRANT OPTION To create a new user, login into MariaDB using the following command: We need to create a new user and grant all privileges to that user. Once everything installed, you can now restart the apache2 service to effect the recent changes. Next, enter the password for the MySQL/MariaDB administrative user so the installer can create a database for phpmyadmin. Through the package installation process, you will be asked to choose the web server that should be automatically configured to run phpMyAdmin, select apache by pressing the space bar and press Enter. You can install phpMyAdmin for administrating MySQL/MariaDB databases from the comfort of a web browser using the following command: Now, let’s access it from the web browser: # echo “” | sudo tee /var/www/html/info.php Once PHP installed, for testing purpose, create a simple info.php page using following command: # apt install php php-common php-mysql php-gd php-cli -y Here we are installing the default PHP version 7.2 and other modules for web deployments using the following command: Remove test database and access to it? : y Then enter yes/y to the following security questions: It will ask you to enter the current password for root (enter for none): Once the script gets executed, it will ask multiple questions. Let’s secured the installation using the following command: The default configuration of the MariaDB will not be secured. # apt install mariadb-server mariadb-client -y Now, let’s verify the Apache installation. In case, you enabled firewall and firewall block requests of the apache web server, open a port in the firewall. It is known as LAMP and installs on the Linux system environment. Then add following line to the end of file.In this article, we will learn to install Apache, MariaDB, PHP, and PHPMyAdmin in Ubuntu 18.04 server.Īpache, MySQL/MariaDB, and PHP are composed of packages. "the requested url was not found on this server. IF it's still not open and you found following error: Solved Error: the requested url was not found on this server. Now you can go to your browser and open IP or localhost then you will found bellow layout: You can create new user for mysql by using following query:ĬREATE USER IDENTIFIED BY 'rootnewpassword' ![]() ![]() Sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl Now you can access mysql by using mysql command: Now create info.php file on following location: Sudo nano /etc/apache2/mods-enabled/dir.confĭirectoryIndex index.php index.html index.cgi index.xhtml index.htm so let's run bellow command and update file: You have to set default index.php file for run. Sudo apt-get install php-mysql php-curl php-cgi php-xsl php-mbstring Now you can check php version by following command: Sudo apt install php libapache2-mod-php php-mysql Sudo apt install software-properties-common Here is my full install script PHP sudo apt install -y php7.4 sudo apt install php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7. Also make sure youre using the latest verion of PHP. so let's follow following step to make it done.Īfter install successfully apache2, you can go to browser and check your IP as like bellow and layout: TO phpmyadminlocalhost WITH GRANT OPTION FLUSH PRIVILEGES Use this user anywhere you want 'root' access. In this tutorial, i will show you step by step install apache2, php, mysql and phpmyadmin in ubuntu 22.10, ubuntu 22.04, ubuntu 21.10, ubuntu 21.04, ubuntu 20.04, ubuntu 18.04 and ubuntu 16.04 server. We will use ubuntu 20 install apache php mysql phpmyadmin. I’m going to show you about ubuntu server 20.04 install apache php mysql phpmyadmin. step by step explain ubuntu install apache php mysql phpmyadmin. Today our leading topic is how to install apache php mysql and phpmyadmin on ubuntu 20.04.
0 Comments
Leave a Reply. |