RHEL6.4 source code package compilation and installation of LAMP Environment

Source: Internet
Author: User
Tags install openssl
One, compile and install the httpd1.installation Software Package unzip tarzxfhttpd-2.2.25.tar.gz # cdhttpd-2.2.25 #./configure -- prefix =/usr/local/httpd -- enable-so -- enable-rewrite -- enable-cgi -- enable-ssl & nb

1. Compile and install httpd

1. install the software package

# Tar zxf httpd-2.2.25.tar.gz

# Cd httpd-2.2.25

#./Configure -- prefix =/usr/local/httpd -- enable-so -- enable-rewrite -- enable-cgi -- enable-ssl -- enable-charset-lite

-------------------------------------- Split line --------------------------------------

Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04Http://www.linuxidc.com/Linux/2013-06/86250.htm

Compile and install LAMP (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12) http://www.linuxidc.com/Linux/2013-03/80333p3.htm in CentOS 5.9

Source code construction of Web Server Architecture in RedHat 5.4 LAMP environment and application PHPWind http://www.linuxidc.com/Linux/2012-10/72484p2.htm

LAMP source environment to build WEB Server Linux + Apache + MySQL + PHP http://www.linuxidc.com/Linux/2013-05/84882.htm

Build http://www.linuxidc.com/Linux/2014-05/101087.htm in LAMP + Xcache Environment

-------------------------------------- Split line --------------------------------------


Purpose of configuration parameters:

-- Prefix =: Specifies the installation directory.

-- Enable-so: supports dynamic loading of modules.

-- Enable-rewrite: supports website address rewriting.

-- Enable-cgi: supports CGI program scripts.

-- Enable-ssl: supports SSL encryption

-- Enable-charset-lite: multi-language encoding supported

 


Configuration Error prompt:


No SSL-C headers found

Configure: error:... No recognized SSL/TLS toolkit detected

Install the corresponding Library File

# Yum-y install openssl-devel

#./Configure -- prefix =/usr/local/httpd -- enable-so -- enable-rewrite -- enable-cgi -- enable-ssl -- enable-charset-lite

# Make & make install

 


2. Create a service script

# Cd/usr/local/httpd/bin/

# Cp apachectl/etc/init. d/httpd

# Vim/etc/init. d/httpd

#! /Bin/sh

# Chkconfig: 2345 85 35

# Description: Apache is a world wide web server

......

# Chkconfig -- add httpd

# Chkconfig -- list httpd

Httpd 0: off1: off2: on3: on4: on5: on6: off

 


3. Modify the master configuration file and start the service.

# Vim/usr/local/httpd/conf/httpd. conf

ServerName www.linuxidc.com: 80

# Service httpd start

[Root @ client bin] # netstat-ln | grep: 80

Tcp 0 0: 80: * LISTEN

 

 

 

Ii. Compile and install mysql

1. Add a running user

# Useradd-M-u 49-s/sbin/nologin mysql

 


2. install the software package

# Tar zxf mysql-5.1.62.tar.gz

# Cd mysql-5.1.62

#./Configure -- prefix =/usr/local/mysql -- with-charset = utf8 -- with-collation = utf8_general_ci -- with-extra-charsets = gbk, gb2312

 


Purpose of configuration parameters:

-- Prefix =: Specifies the installation directory.

-- With-charset = utf8: Specifies the default Character Set

-- With-collation = utf8_general_ci: Specifies the default checking rule set.

-- With-extra-charsets = gbk, gb2312: set other supported character sets

 


Configuration error message:

Checking for termcap functions library... configure: error: No curses/termcap library found

Install library files

# Yum-y install ncurses-devel libtermcap-devel

 


#./Configure -- prefix =/usr/local/mysql -- with-charset = utf8 -- with-collation = utf8_general_ci -- with-extra-charsets = gbk, gb2312

# Make & make install

Compilation error message:

../Depcomp: line 571: exec: g ++: not found

Make [1]: *** [my_new.o] Error 127

Make [1]: Leaving directory '/root/Desktop/mysql-5.1.62/mysys'

Make: *** [all-recursive] Error 1

 


# Yum-y install gcc-c ++ // install software


Re-configure the compilation and Installation

 

For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-05/101171p2.htm

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.