Steps for installing LAMP on VPS (1)

Source: Internet
Author: User
Tags vps

 

Figure-VPS

VPSInstall OnLAMPThe steps are as follows:

Recently, I bought a VPS, MB memory, 8 GB hard drive, and CentOS5 operating system in rashost. After the system is initialized, the memory usage is as follows:

Total used free shared buffers cached

Mem: 131232 62872 68360 0 11384 37688

Hard disk usage:

Filesystem 1K-blocks Used Available Use % Mounted on

/Dev/sda1 8256952 626932 7210592 8%/

Poor memory, so we had to try to install as little as possible on it. What ftp and what pptp are saved. Only LAMP is installed on it. The installation steps are as follows.

First install the basic Compilation Program

Yum install gcc

Yum install make

Download the package required by LAMP

MySQL-client-community-5.1.41-0.rhel5.i386.rpm

MySQL-devel-community-5.1.41-0.rhel5.i386.rpm

MySQL-server-community-5.1.41-0.rhel5.i386.rpm

Gd-2.0.35.tar.gz

Httpd-2.2.14.tar.gz

Libpng-1.2.41.tar.gz

Libxml2-2.7.6.tar.gz

Php-5.3.1.tar.gz

Zlib-1.2.3.tar.gz

Because mysql compilation is not smooth, other packages are required, so no source code compilation and installation is used, and rpm installation is used.

Install Apache

./Configure -- prefix =/usr/local/httpd -- enable-module = so -- enable-rewrite

Make

Make install

Add the startup item so that it can be started randomly (because chkconfig is not installed, no service is added)

Add the command to start apache in/etc/rc. d/rc. local, for example,/usr/local/httpd/bin/apachectl-k start.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.