Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1010 Bytes

3.0-SetupLAMP.md

File metadata and controls

41 lines (24 loc) · 1010 Bytes

Configuring CentOS

This manual explains how to setup LAMP: Linux, Apache, MySQL, PHP. Linux is already setup from previous manuals, so really this is just the AMP part.

Install Perl

Perl is required for building certain other packages from source. Most Linux distributions have it built in, but the CentOS minimum install does not. Install Perl:

yum install perl

Install Apache

Install Apache using these steps.

Testing Apache

Create an index.html file at your webserver root:

cd /var/www/meza/htdocs
echo "<h1>Hello, World!</h1>" > index.html

Navigate to http://192.168.56.56 from your host machine. If you're successful then Apache is working and your VM is serving over HTTP. Congratulations. Create a snapshot.

Install PHP

See Install PHP. When complete, create a snapshot.

Install MySQL

Install MySQL using these instructions.

Install other stuff

yum -y install git