Home Backend Development PHP Tutorial How to use the dynamic shared object pattern to_PHP tutorial

How to use the dynamic shared object pattern to_PHP tutorial

Jul 13, 2016 pm 05:08 PM
linux php unix superior use shared dynamic how install object match operating system model of Pass

PHP is usually installed on Linux/Unix operating systems and used with the Apache server. When installing PHP with the Apache server, you have three different installation methods to choose from: static modules, dynamic shared objects (Dynamic Shared Object, DSO) and CG
I program executable files.

Here I recommend that you use the dynamic shared object mode to install PHP, because this installation method provides great convenience for future maintenance and upgrades. Suppose that when you first installed PHP, you only added PHP's database-related modules. A few days later, you decide to install PHP coding function-related modules. At this time, you only need to enter the make clean command in your system command line, then enter the new PHP setting options, and then enter the make and make install commands, and then After that, the system will generate a new PHP dynamic shared object and install it to the appropriate directory location specified by the Apache server. All you need to do next is to reactivate the Apache server. You don't need to recompile the entire Apache server.

The following basic steps can allow you to install a new Apache server, including PHP dynamic loading module:
1. Go to http://www.apache.org/dist/ to download the latest version of the Apache server source code.

2. Copy the obtained file to a meaningful directory location, such as /usr/local/ or /opt/, or other directory location you feel is appropriate.

3. Unzip the obtained file. After unzipping, you will get some *.tar files.

4. Enter the following command to unpack these *.tar files, and place the unpacked files into a directory location 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 extracted the *.tar file to a different directory in the previous step, then switch to the one you specified directory)
6. Enter the following command to prepare the compiler. Remember to replace the [path] part in the following command with your own directory name, such as /usr/local/apache[version] (do not add the last The slash on the surface! ). What this step does is activate 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, enter make, and then continue to wait for the system to return to the command prompt.

8. Enter the make install command.

At this time, the compilation program will generate the directories and files needed for the final use. After completion, you will return to the command prompt again.

Now you can start installing 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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629888.htmlTechArticlePHP is usually installed on Linux/Unix operating systems and used with the Apache server. When installing PHP with an Apache server, you have three different installation methods...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why does an error occur when installing an extension using PECL in a Docker environment? How to solve it? Why does an error occur when installing an extension using PECL in a Docker environment? How to solve it? Apr 01, 2025 pm 03:06 PM

Causes and solutions for errors when using PECL to install extensions in Docker environment When using Docker environment, we often encounter some headaches...

How to solve the permissions problem encountered when viewing Python version in Linux terminal? How to solve the permissions problem encountered when viewing Python version in Linux terminal? Apr 01, 2025 pm 05:09 PM

Solution to permission issues when viewing Python version in Linux terminal When you try to view Python version in Linux terminal, enter python...

How to efficiently integrate Node.js or Python services under LAMP architecture? How to efficiently integrate Node.js or Python services under LAMP architecture? Apr 01, 2025 pm 02:48 PM

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to configure apscheduler timing task as a service on macOS? How to configure apscheduler timing task as a service on macOS? Apr 01, 2025 pm 06:09 PM

Configure the apscheduler timing task as a service on macOS platform, if you want to configure the apscheduler timing task as a service, similar to ngin...

Can the Python interpreter be deleted in Linux system? Can the Python interpreter be deleted in Linux system? Apr 02, 2025 am 07:00 AM

Regarding the problem of removing the Python interpreter that comes with Linux systems, many Linux distributions will preinstall the Python interpreter when installed, and it does not use the package manager...

How to operate Zookeeper performance tuning on Debian How to operate Zookeeper performance tuning on Debian Apr 02, 2025 am 07:42 AM

This article describes how to optimize ZooKeeper performance on Debian systems. We will provide advice on hardware, operating system, ZooKeeper configuration and monitoring. 1. Optimize storage media upgrade at the system level: Replacing traditional mechanical hard drives with SSD solid-state drives will significantly improve I/O performance and reduce access latency. Disable swap partitioning: By adjusting kernel parameters, reduce dependence on swap partitions and avoid performance losses caused by frequent memory and disk swaps. Improve file descriptor upper limit: Increase the number of file descriptors allowed to be opened at the same time by the system to avoid resource limitations affecting the processing efficiency of ZooKeeper. 2. ZooKeeper configuration optimization zoo.cfg file configuration

How to solve permission issues when using python --version command in Linux terminal? How to solve permission issues when using python --version command in Linux terminal? Apr 02, 2025 am 06:36 AM

Using python in Linux terminal...

See all articles