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!