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.