![]() ![]() If phpMyAdmin is installed successfully, you should see the standard phpMyAdmin login page. Step 9 : Checking Successful Installation of phpMyAdmin The latest available version of phpMyAdmin (4.5 as of Jan, 2017) will be installed. Use the Tab key to highlight the Ok button and press enter.ĭo the same when asked for password confirmation. Enter the password which you typed while installing MySql. You will then be asked to enter the password of MySql root account. You will then be asked whether to configure database for phpmyadmin with dbconfig-common. When selected apache2 would have a * symbol beside it, see the second image how it would look like. Pressing key in this order is very important, otherwise apache2 will not be selected. Now press Tab key to highlight the Ok button. You will be asked to choose the type of web server. Install phpMyAdmin through the commannd : sudo apt-get install phpmyadmin You should see a page like this, showing your PHP configuration : Type this url in the browser (or if installing locally). This will create a phpinfo.php file in the root directory. Type the following command : echo "" | sudo tee /var/www/html/phpinfo.php Step 7 : Checking Successful Installation of PHP The latest available version of PHP (7 as of Jan, 2017) will be installed. This module provides the connection between Apache and PHP. If required, you can install an extension later.Īlso note that libapache2-mod-php is the Apache Module to run PHP. ![]() PHP offers a lot more extensions, but these are the most commonly used. Zip Extension : Zip and unzip through PHP.Mcrypt Extension : Contains various encryption functions.JSON Extension : To decode and encode JSON through PHP.PHP uses GD library for image manipulation tasks GD Extension : To enable the GD library.Curl Extension : To make CURL requests through PHP, commonly used in implementing API calls of web services.MySql Extension : To use MySql functions available in PHP.In the above command in addition to PHP, the following PHP extensions are also installed : Install PHP and commonly used extensions : sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-json php-mcrypt php-zip Now to go back, exit MySql by typing in the command : exit Step 6 : Installing PHP with Commonly Used Extensions Here you can run mysql queries, create tables etc. You should see the MySql prompt like this : mysql> Enter the password which you chose in the above step. If MySql has been installed successfully, you should be prompted for a password. Type the following command : mysql -u root -p Step 5 : Checking Successful Installation of MySql The latest available version of MySql (5.7 as of Jan, 2017) will be installed. You will also be asked for a confirmation of the password. When highlighted the Ok button will turn red. Type in a strong password and press the arrow-down button to highlight the Ok button. The default password of the root account is blank, and instead of changing it later on, better do it now. You will also be asked to enter the desired password of the MySql root account. Install MySql through the following command. You should see a page like this : Step 4 : Installing MySql You can check whether Apache has been installed by typing in the IP address of your server (or if you're doing it on a local server). Step 3 : Checking Successful Installation of Apache Note that it will install the latest available version of Apache (2.4 as of Jan, 2017). ![]() Install Apache through the following command : sudo apt-get install apache2 sudo apt-get update Step 2 : Installing Apache Update the package list on your system so that you can have the latest available versions of Apache, PHP, MySql and phpMyAdmin. In fact you can have a fully functional LAMP stack by executing only 10-12 command line operations !įollow the steps given below, one by one. But installing Apache, PHP, MySql & phpMyAdmin is not difficult, as long as you stick with the process. Installing applications and working with the Linux command line are not the easiest of things. However the initial setup is quite a pain. You can enable Apache & PHP modules as per your wish, and also use many useful Linux utilities in your PHP code. Having your own VPS or a Dedicated Server offers a lot of freedom as compared to a Shared Hosting plan.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |