This article mainly records the installation process of the software/development environment through compilation, and other installation methods are ignored!
Article background:
Because php and Apache use compile and installation methods to install, however, the compile and installation methods require a c and c++ compilation environment.
Install build-essential through apt
$ sudo apt-get install build-essential
The steps of compiling and installing are generally divided into:
Compile configuration
$ ./configure --XXX (parameters s)
Problems with compilation configuration:
a. Before installing, you cannot fully understand the software
b. If you don’t have a comprehensive understanding, and don’t know how to install it (with what parameters)
c. You can first choose the simplest installation method. As you use it, install it multiple times to solve this problem.
This process is relatively complicated and requires very complex specific parameter configuration. The specific parameters are viewed through configure --help
Compilation
$ make
Install
$ sudo make install
**************************************
Apache Installation
1. Download httpd-2.2.
2. Decompression
tar zxvf httpd-2.2.
Under the path of executing the tar directive, a httpd-2.2.11 directory will be generated
3. Check the compiled configuration information
Switch to the httpd-2.2.11 directory after decompression
./configure --help
Through this step, you can understand which modules can be installed and the installation configuration information you need to set.
Further view the manual and you can also learn about relevant information.
4. Compile and configure
$ ./configure --prefix=/usr/local/apache2 \ Specify the installation directory
--enable-so \
--with-mpm=prefork
5. Compilation:
$ make
6. Installation: (The use of sudo is because the path to be installed /usr/local/apache2 does not belong to the personal path)
$ sudo make install
"Installation Completed"
7. Test
Revise.
Modify #ServerName :80 to ServerName 127.0.0.1:80 (localhost:80)
Start sudo ./apachectl -k start
stop sudo ./apachectl -k stop
restart sudo ./apachectl -k restart (This command is sometimes invalid, use stop+start instead)
Article background:
Because php and Apache use compile and installation methods to install, however, the compile and installation methods require a c and c++ compilation environment.
Install build-essential through apt
$ sudo apt-get install build-essential
The steps of compiling and installing are generally divided into:
Compile configuration
$ ./configure --XXX (parameters s)
Problems with compilation configuration:
a. Before installing, you cannot fully understand the software
b. If you don’t have a comprehensive understanding, and don’t know how to install it (with what parameters)
c. You can first choose the simplest installation method. As you use it, install it multiple times to solve this problem.
This process is relatively complicated and requires very complex specific parameter configuration. The specific parameters are viewed through configure --help
Compilation
$ make
Install
$ sudo make install
**************************************
Apache Installation
1. Download httpd-2.2.
2. Decompression
tar zxvf httpd-2.2.
Under the path of executing the tar directive, a httpd-2.2.11 directory will be generated
3. Check the compiled configuration information
Switch to the httpd-2.2.11 directory after decompression
./configure --help
Through this step, you can understand which modules can be installed and the installation configuration information you need to set.
Further view the manual and you can also learn about relevant information.
4. Compile and configure
$ ./configure --prefix=/usr/local/apache2 \ Specify the installation directory
--enable-so \
--with-mpm=prefork
5. Compilation:
$ make
6. Installation: (The use of sudo is because the path to be installed /usr/local/apache2 does not belong to the personal path)
$ sudo make install
"Installation Completed"
7. Test
Revise.
Modify #ServerName :80 to ServerName 127.0.0.1:80 (localhost:80)
Start sudo ./apachectl -k start
stop sudo ./apachectl -k stop
restart sudo ./apachectl -k restart (This command is sometimes invalid, use stop+start instead)