LAMP is an acronym for mention Linux, Apache, MySQL and PHP which is a web-based development environment, where the open source Linux as the operating system, Apache as the web server, MySQL as the relational database management system and PHP (Preprocessor Hyper Text) is object-oriented programming language.
As a Linux user maybe friends want to know how to install the new LAMP. There are many approaches to install a LAMP server on Linux. The simplest approach and is most often used is to use the command line in Terminal.
Note :
This practice uses a distro Ubuntu 11.04 "Natty Nawhal", Whereas to do a server installation process, first make sure the LAMP is connected to the Internet or DVD repository Ubuntu 11.04.
The steps are as follows:
- Open a Terminal via the menu: Applications → Accessories → Terminal
- Type the following command:
$ sudo apt-get install lamp-server^ - Enter the new password for MySQL root user :
Membuat password root MySQL |
A. Apache
Test the Apache web server by using your favorite browser application (Firefox, Chrome, etc.) by typing the address http://127.0.0.1 or http://localhost in your browser.
To find out that your PHP installation and back-end modules have been successfully integrated with the Apache web server, create a web page through the Terminal in the following way :
- sudo echo ”<? phpinfo() ?>” > /var/www/phpinfo.php
- Run the service apache2
$ sudo service apache2 restart
or it could also use command below :
$ sudo /etc/init.d/apache2 restart - Open the application browser such as Mozilla Firefox, and enter the address http://127.0.0.1/phpinfo.php or http://localhost/phpinfo.php.
If the browser window to perform information page as in the example image above, then the PHP module have been integrated with the Apache web server.
C. MySQL
To test the MySQL database type the command below in Terminal :
$ mysql -u root -p
if you come across information such as the example above, your sucessfull run MySQL.
Thanks for visiting him,,
hopefully useful ...source : http://kslcs.blogspot.com
0 komentar:
Post a Comment
Hello, visitors please fill your comments here.
thank you !
regards, Rikies.