Build a lamp Environment (2)

Source: Internet
Author: User
Tags apache log

 

1. Install GD2

: Http://www.libgd.org/Downloads

According to the previous article

# Cd/usr/local/src

# Wget http://www.libgd.org/releases/gd-2.0.35.tar.gz

# Tar zxvf gd-2.0.35.tar.gz

# Cd gd-2.0.35.tar.gz

#./Configure -- prefix =/usr/local/GD2

# Make

I encountered an error during make.

"Configure. AC: 64: Error: Possibly undefined macro: am_iconv"

Google says that gettext is not installed. The simplest method is to use yum for installation.

# Yum install gettext

Make again is normal.

# Make install

 

2. Install libxml2

Download link: ftp://xmlsoft.org/libxml2/

# Cd/usr/local/src

# Wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz

# Cd libxml2-2.7.3

#./Configure -- prefix =/usr/local/libxml2

# Make

# Make install

 

3. Apache Log TruncationProgram

Download link: http://cronolog.org/download/index.html

# Cd/usr/local/src

# Wget http://cronolog.org/download/cronolog-1.6.2.tar.gz

# Tar zxvf cronolog-1.6.2.tar.gz

# Cd cronolog-1.6.2

#./Configure -- prefix =/usr/local/cronolog

# Make

# Make install

4. Upgrade OpenSSL and OpenSSH

# Cd/usr/local/src

# Wget http://www.openssl.org/source/openssl-0.9.8k.tar.gz

# Wget http://ftp.jaist.ac.jp/pub/OpenBSD/OpenSSH/portable/openssh-5.2p1.tar.gz

This step is not clear

OpenSSL is installed in the original system and updated with Yum update, but not the latest version.

The OpenSSL provided by the system does not dare to use Yum remove easily. You can skip this step for the moment.

Below is the http://www.phpchina.com/batch.viewlink.php? Itemid = 12233 indicates how to upgrade SSL and SSH.

# Cd/usr/local/src
# Wget http://download.discuz.net/env/openssl-0.9.7j.tar.gz
# Wget http://download.discuz.net/env/openssh-4.2p1.tar.gz
# Tar xzvf openssl-0.9.7j.tar.gz
# Cd openssl-0.9.7j
#./Config -- prefix =/usr/local/OpenSSL
# Make
# Make Test
# Make install
# CD ..
# Tar xzvf openssh-4.2p1.tar.gz
# Cd openssh-4.2p1
#./Configure \
"-- Prefix =/usr "\
"-- With-Pam "\
"-- With-zlib "\
"-- With-SSL-Dir =/usr/local/OpenSSL "\
-- With-md5-passwords"
# Make
# Make install
Prohibit direct root login. First, create a common system user:
# Useradd Username
# Passwd Username
# Echo 'Protocol 2'>/etc/ssh/sshd_config
# Echo 'Protocol 2'>/usr/etc/sshd_config
# Echo 'permitrootlogin no'>/etc/ssh/sshd_config
# Echo 'permitrootlogin no'>/usr/etc/sshd_config
#/Etc/rc. d/init. d/sshd restart

 

 

 

 

 

 

 

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.