LAMP- Linux, Apache, Mysql, Php
Mainly for the Debian systems we can install lamp-server via a single command
# sudo apt-get install lamp-server^
# sudo apt-get install phpmyadmin
Include the cap(^) it is the wild-card for installation.
In between installation it will prompt for the sql-root password, don’t leave it blank.
enjoy lamp server installation via single command.
After installation we can check
1. Apache– test it by just typing “http://localhost/” in browser.
it will show that “It Works”
2. PHP— create a file test.php
# touch /var/www/test.php
# vim test.php
Enter the following code and save it.
<?php
echo phpinfo();
?>
save it and exit
now
In browser “http://localhost/test.php”
It will show the information regarding php.
if you also want to test PHPMYADMIN
just edit the file /etc/apache2/apache2.conf and add the below lines.
Include /etc/phpmyadmin/apache.conf
/etc/init.d/apache2 restart
now in browser “http://localhost/phpmyadmin”
Enjoy the easy installation and configuring of LAMP server.
Thanks.
Be the first to comment.