LAMP Installation with one command in Ubuntu
Kamis, 08 Desember 2011
0
komentar
LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.If you carefully follow these step by step instructions, you'll have your own LAMP setup running in no time.
Install LAMP in Ubuntu:
The Ubuntu developers have made it easy to install the LAMP server packages with a single command. Simply open a terminal window and enter the following.
sudo apt-get install lamp-server^
Please make sure to include the caret (^). The command will not work without it.
You will then be prompted to change the password for the root user on the MySQL database.Enter the password you want.Retype the password to confirm.
After you confirm your password, apt will continue to install the rest of the packages.
Congratulations, your LAMP installation is now complete!.
Now we are gonna check whether apache,php and mysql are working without any error .
sudo gedit /var/www/testing.php
Enter the following line into the text editor, save the file and exit.
Next, restart Apache with the following terminal command:
Now open browser and type : http://localhost/testing.php
To manage your LAMP server database ,its better to install phpmyadmin
sudo apt-get install phpmyadmin
(or)
Install it from software center.Now,type localhost/phpmyadmin in browser
Install LAMP in Ubuntu:
The Ubuntu developers have made it easy to install the LAMP server packages with a single command. Simply open a terminal window and enter the following.
sudo apt-get install lamp-server^
Please make sure to include the caret (^). The command will not work without it.
You will then be prompted to change the password for the root user on the MySQL database.Enter the password you want.Retype the password to confirm.
setting password for mysql |
Congratulations, your LAMP installation is now complete!.
Now we are gonna check whether apache,php and mysql are working without any error .
Test Apache :
Open a web browser and enter the address http://localhost/. You should see a web page that says "It Works!"Apache works |
Test php :
Now that you know Apache works, you'll want to test the php installation. You'll need to create a file in /var/www called testing.php. Open a terminal and enter:sudo gedit /var/www/testing.php
Enter the following line into the text editor, save the file and exit.
<?php phpinfo(); ?>
Next, restart Apache with the following terminal command:
sudo /etc/init.d/apache2 restart
Now open browser and type : http://localhost/testing.php
Php works |
sudo apt-get install phpmyadmin
(or)
Install it from software center.Now,type localhost/phpmyadmin in browser
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: LAMP Installation with one command in Ubuntu
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidjones7.blogspot.com/2011/12/lamp-installation-with-one-command-in.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar