Linux installation Lamp

Source: Internet
Author: User
Tags rows count

Installing the Package Compiler

Gcc-v See if there are any

Yum Install GCC gcc-c++ Mack

Rpm-q httpd to see if HTTP is installed

RPM-E httpd--nodeps Uninstalling packages and dependencies

TAR-ZXF apr-1.5.1.tar.gz Extract Apr Package

CD apr-1.5.1

./configure--help General methods for viewing configuration scripts

./configure--PREFIX=/USR/LOCAL/APR Configuration

Make compilation

Make install Installation

Same method for configuring Apr-util

./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR

Compile and install ibid.

Same way to decompress pcre

./configure--prefix=/usr/local/pcre

Same method to install httpd

Configuration

./configure--prefix=/usr/local/httpd--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-pcre=/ Usr/local/pcre--enable-so (open dynamic Library load function)--enable-ite (turn on dynamic library redirection)--enable-charset-lite (character set function)-- ENABLE-CGI (CGI program functions)

Ln-s/usr/local/httpd/bin/*/usr/local/bin do a soft connection, so you can directly lose the command.

Ls-l/usr/local/bin/httpd/usr/local/bin/apachectl can view the soft connection to which the command points

Can be entered directly into the command to start the service can also be added to the system, using service to control services

Because Apach's script requires a Lynx command

Yum-y Install Lynx

Cp/usr/local/httpd/bin/apachectl/etc/init.d/httpd

chmod 755/etc/init.d/httpd

Vi/etc/init.d/httpd

Chkconfig--add httpd with chkconfig command bar httpd join the service

Chkconfig--list httpd View httpd The status of this service

Configure an IP address with the Setup command Select Network configuration-device configuration

Service Network restart Restart networking service

Ifconfig

Ifup eth0 activating the eth0 NIC

Vi/usr/local/httpd/conf/httpd.conf Edit 190 lines: Set nu View rows Count

/usr/local/httpd/bin/apachectl-t checking the syntax of a configuration file

Netstat-anpt|grep httpd to see if the service is started

Cat/usr/local/httpd/htdocs/index.html viewing the contents of a test Web page

Vim/etc/hosts

Lsof-i:80 to see if the port is open

Linux installation Lamp

Related Article

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.