apache+php 5+mysql 5 Source code compilation installation

Source: Internet
Author: User
Keywords nbsp; executing compiling installing HTTP
Tags .gz .url aliyun apache apache2 c compiler code code compilation

In addition, Apache open url_rewrite Expansion, PHP open curl,soap,imagick,mb_string,mysql,mysqli expansion and so on.

The first step is to install http://www.aliyun.com/zixun/aggregation/14417.html ">apache2

Download Httpd-2.0.59.tar.gz, execute

sudo tar xzvf httpd-2.0.59.tar.gz

sudo cd httpd-2.0.59

sudo./configure--prefix=/usr/local/apache2--enable-module=most--enable-rewrite--enable-shared=max--enable-so

If you are prompted with the following error:

Checking for C compiler default output file name ... configure:error:c compiler cant create executables

The reason is that Libc6-dev is not installed,

sudo apt install build-essential

Ok.

And then the new execution:

sudo./configure--prefix=/usr/local/apache2--enable-module=most--enable-rewrite--enable-shared=max--enable-so

No error, then execute

sudo make

sudo make install

sudo groupadd Apache

sudo useradd-g Apache Apache

sudo passwd Apache

sudo chown-r apache:apache/usr/local/apache2

Modify Apache configuration file, execute

sudo vi/usr/local/apache2/conf/httpd.conf

Found it

User Nobody

Group #-1

Modified into

User Apache

Group Apache

Found it

#ServerName www.example.com:80

To

ServerName *:80

Save!

Execute command

Sudo/usr/local/apache2/bin/apachectl start starts Apache.

Open the browser to access the http://localhost

If all goes well, you should be able to see the Apache test page. Congratulations, Apache installed!

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.