LAMP(Apache + MySQL + PHP) quick install on Linux

Last update on May 8, 2009 09:10 AM by jak58
Published by netty5

LAMP(Apache + MySQL + PHP) quick install on Linux








Intro
LAMP is the acronym for a free and open source software suite.usually used to define and run dynamic a web server infrastructure ,software development and establish a software distribution package.
  • Linux: the OS
  • Apache:the Web server
  • MySQL: the database management system
  • And finally one of these scripting languages: Perl, PHP or Python


Quick Installation

sudo aptitude install apache2 php5 mysql-server php5-mysql libapache2-mod-php5 

Enter admin password required by mySQL.
sudo /etc/init.d/apache2 restart



Once installation is complete, open http://localhost in your browser:



The root of your website is located in/var/www

Php test

Create the file /var/www/test.php containing:

<? phpinfo(); ?>


Open http://localhost/test.php in your browser.



Links
https://help.ubuntu.com/community/ApacheMySQLPHP
http://www.howtoforge.com/ubuntu_lamp_for_newbies
http://services.tucows.com/...
Best answers for « LAMP(Apache + MySQL + PHP) quick install on Linux » in :
Installing Linux using your USB drive Show Installing Linux using your USB drive UNetbootin Other features UNetbootin If it happens that you have to install linux on a machine and you don’t have any CD or DVD to make an image but you have your USB flash drive. The minimum...
Creating an ISO image under Linux ShowCreating an ISO image under Linux Create ISO image(which we will name) a disc in a CD-ROM drive(/dev/cdrom) is quite simple : dd if=/dev/hdd of=mycd.iso
Reinitializing the root password of MySQL ShowReinitializing the root password of MySQL The root password is lost! Reinitializing the password: It's important that you are able to access and modify the admin (root) password of MYSQL, either when installing MySQL for the first...
Installing an easy HTTP proxy-cache (polipo) ShowInstalling an easy HTTP proxy-cache (polipo) Intro Quick Installation Allowing hosts on the LAN to connect Changing the port Use a proxy server parent Using an alternative DNS server Disabling IPv6 More info Intro Installing an...
Download Wubi ShowFor those who want to become familiar with the handling of Ubuntu, there are four paths: one must simply install it. The install? But how? It's a bit difficult not? Wubi (Windows-based Ubuntu Installer) is a program that can install Linux (Ubuntu to...
Download Project Future ShowDescription Designed by Concilio Business For Professional, Project Future is a tool that allows you to optimize your projects risks. Simple and easy to use, the application has also a quick installation. The application consists of an intuitive...
Installation of Linux ShowInstallation of the RedHat distribution The RedHat distribution is currently one of the most popular distributions, considering that the installation procedure is very simple. As a matter of fact, this procedure simply asks you to choose from a...
Linux - Compiling the kernel ShowCompiling the kernel In this article, compiling the kernel under Linux is explained. The following explanations are based on version 2.4.20 of kernel, i.e. the most recent version of the kernel at the time this article was written (March 2003)....
Intranet - Installing a mail server ShowIntroduction to installation The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with...