How to use the dynamic shared object mode. PHP is usually installed on the LinuxUnix operating system and used together with the Apache server. When installing PHP with the Apache server, you have three different installation methods: PHP is usually installed on a Linux/Unix operating system and used together with the Apache server. When you install PHP and Apache server together, you can choose from three different installation methods: static module, Dynamic Shared Object (Dynamic Shared Object, DSO), and CG.
I program execution file.
Here I suggest you use the dynamic shared object mode to install PHP, because this installation method provides great convenience for future maintenance and upgrade. Suppose you only added the PHP database modules when installing PHP. A few days later, you decided to add the PHP encoding function modules. at this time, you only need to enter the make clean command in your system command column, and then enter the new PHP setting options, then enter the make and make install commands. then the system will generate a new PHP dynamic sharing object and install it to the appropriate directory location specified by the Apache server. Next, you only need to reactivate the Apache server. you do not need to recompile the entire Apache server.
The following basic steps allow you to install a completely new Apache server and contain the PHP dynamic loading module:
1. download the latest Apache Server source code at http://www.apache.org/dist.
2. copy the obtained files to a meaningful directory location, such as/usr/local/or/opt/, or another directory location that you think is appropriate.
3. decompress the obtained file. After unzipping, you will get some *. tar files.
4. enter the following command to unbind the *. tar file and place the file to a directory named apache _ [version:
Tar-xvf apache_{version}.tar
5. enter the cd command to switch the working directory to/usr/local/apache _ [version] (if you set *. when the tar file is removed to another directory, switch to the directory you specified)
6. enter the following command to prepare the compilation program. replace the [path] section in the following command with your own directory name, for example,/usr/local/apache [version] (do not add the last Slash !). This step activates mod_so so that the Apache server can use dynamic shared objects.
./Configure -- prefix = [path] -- enable-module = so
7. wait until the system returns to the command prompt symbol, enter make, and then wait until the system returns to the command prompt symbol.
8. enter the make install command.
At this time, the compilation program will generate the directories and files to be used at the end, and return to the command prompt symbol after completion.
Next, you can start to install PHP:
1. go to the PHP official website: http://www.php.net/downloads.php to download the latest version of the PHP original program code.
Http://www.bkjia.com/PHPjc/629888.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/629888.htmlTechArticlePHP is usually installed on Linux/Unix operating systems and used together with Apache servers. When you install PHP and the Apache server together, you have three different installation methods...