If you are a web designer and web developer so that you need those application to design and development web sites. You can easily install Apache MySQL, and PHP in your windows base platform computer. When you are using Linux, you need to install LAMP (Apache, MySQL, and PHP).
In this tutorial, you can easily install LAMP (Apache, MySQL, and PHP) on your Linux. It is also support, Linux Mint, Ubuntu, Kubuntu, Lubuntu.
Let,s go....installing LAMP. LAMP is combination of Linux, Apache, MySQL, and PHP.
Install Apache :
In this tutorial, you can easily install LAMP (Apache, MySQL, and PHP) on your Linux. It is also support, Linux Mint, Ubuntu, Kubuntu, Lubuntu.
Let,s go....installing LAMP. LAMP is combination of Linux, Apache, MySQL, and PHP.
Install Apache :
- Open Terminal (Application->Accessories->Terminal)
- Type or copy/paste following code into terminal then press enter :
sudo apt-get install apache2 - If the terminal ask you password, type it and press enter
- Now open a web browser and enter following address into the web address:
http://localhost/ - Press enter and you will a web page. Here you can see "It's works!", congrats to you! or something like that!
Install PHP :
In This part we will install php5
- Again Open the Terminal (Application->Accessories->Terminal)
- Type or copy/paste following code into terminal then press enter :
sudo apt-get install php5 libapache2-mod-php5
- In this session, your need to restart Apache. Type the following code in terminal to do this :
sudo /etc/init.d/apache2 restart
Testing PHP :
To ensure you php5 is running
it will be open a file called testphp.php
- In this terminal write the following code
sudo gedit /var/www/testphp.php
it will be open a file called testphp.php
- Now copy paste this code into the testphp.php file
<?php phpinfo(); ?>
- Save and close those file.
- Now open you web browser and type the following into the web address :
http://localhost/testphp.php
it will be show all information about php.
Install MySQL:
- Open Terminal (Application->Accessories->Terminal)
- Type or copy/paste following code into terminal then press enter :
sudo apt-get install mysql-server
- If the terminal ask you password, type it and press enter
- Now Install phpMyAdmin for edit you database.
- Open the terminal and type or copy/paste following code into terminal then press enter :
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
- after it is install our next target to work php with MySQL. Open terminal and type or copy/paste following code into terminal then press enter :
gksudo gedit /etc/php5/apache2/php.ini
- Now change the following line:
;extension=mysql.so
- To like as
extension=mysql.so
- Now just restart Apache
sudo /etc/init.d/apache2 restart
- If you get 404 Error to open http://localhost/phpmyadmin so that you need to configure Apache2 to work with phpMyAdmin. Open terminal and type or copy/paste following code into terminal then press enter :
sudo gedit /etc/apache2/apache2.conf
- Include the following line at the bottom of the file then save and quite.
Include /etc/phpmyadmin/apache.conf
- Then Just restart Apache
sudo /etc/init.d/apache2 restart
If any problem to install those installation, just comments...........
0 comments:
Post a Comment