How to enable Swoole Loader extension on Linux system virtual host

How to enable Swoole Loader extension on Linux system virtual host

Special note: Only the Swoole extension is installed, and the server is not installed on the host. Currently supported versions are php5.4-php7.2.

1. Log in to the host control panel and find the [Remote File Download] function.

image.png

2. Fill in the remote download file http://download.myhostadmin.net/vps/SwooleLoader_linux.zip and the download save path /others/

Or download from 123WORDPRESS.COM

image.png

3. Click [PHP version] in the control panel and select PHP5.3 or above. The example selects PHP5.5 (Note: PHP5.2 cannot edit php.ini, so you need to select a higher version).

image.png

4. Click [File Management] on the control panel, open the others directory, put the mouse on the compressed package just downloaded remotely, and click the decompression button. The number in the unzipped file name corresponds to the PHP version, for example, swoole_loader56.so is the extension file of PHP5.6 version.

image.png

5. Click to modify the php.ini file, copy the current path, and add extension=/home/xxxxxxxxxx/others/swoole_loader55.so to the last line at the bottom of php.ini (note the actual path and specific version), as shown in the figure below.

image.png

6. Enter the wwwroot directory, create an x.php file, open and edit x.php, enter <?phpinfo()?> in it and save it, then visit http://your own website domain name/x.php and search for swoole. If you can find it, it means the installation is successful. If you can't find it, please check the following steps or submit a work order.

image.png

Extension Conflict

Note: Please disable xdebug, ioncube loader, zend guard loader and other extensions that affect the underlying behavior of PHP.

As commented in php.ini:

;zend_extension=ioncube.so

PHP installation Swoole Loader extension tutorial, suitable for Windows and Linux

I saw that many Baidu extensions need to download Cygwin, so I specially launched this tutorial to explain that PHP does not need to install Cygwin to install the Swoole Loader extension. Looking at the many irresponsible installation tutorials on the Internet, I suddenly felt a little ridiculous. Maybe they publish articles just for the sake of publishing articles, or maybe they publish articles just for SEO.

Please confirm the following information before installing the Swoole Loader extension.

Operating system: Windows NT AMD64
PHP version: 7.2.22
PHP operating environment: cgi-fcgiPHP
Configuration file: C:\BtSoft\php\72\php.iniPHP
Extension installation directory: ext
Is PHP thread safe: Not thread safe

1. Download the Swoole Loader extension installation package

Download the compressed package, then find the Swoole Loader extension file corresponding to your system and unzip it

Download address: https://pecl.php.net/package/swoole

For the convenience of downloading, a domestic address is provided: https://zhiniaoyun.lanzous.com/ibfobgh

2. Install Swoole Loader

Upload the Swoole Loader extension file (swoole_loader version number.dll or swoole_loader version number.so) just unzipped to the current PHP extension installation directory: ext

3. Modify the php.ini configuration (if the configuration has been modified, please ignore this step and do not add it again)

Edit this PHP configuration file: C:\BtSoft\php\72\php.ini, and add the following configuration at the end of this file

extension=the file name just uploaded.dll

Note: The name must be the same as the file name just uploaded to the current PHP extension installation directory (for example: extension=swoole_loader72.dll)

4. Restart the service

Restart or reload PHP configuration

This is the end of this article about how to enable support for Swoole Loader extension in Linux system virtual host. For more relevant Linux Swoole Loader extension content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of PHP Swoole and TCP three-way handshake
  • In-depth explanation of the 6 modes of Swoole extension
  • Example of hot update implementation code of Swoole in PHP
  • Swoole lock mechanism code example explanation
  • Specific steps to install swoole in windows system php environment
  • How to query the connection problem of Websocket in Swoole source code
  • Graphic tutorial on installing Cygwin on Windows system to build Swoole test environment
  • PHP uses goto to automatically restart swoole, reactphp, and workerman services
  • Centos7 installation swoole extension operation example
  • Detailed explanation of the solution to the Swoole TCP stream data boundary problem

<<:  Vue.js implements the nine-grid image display module

>>:  Detailed explanation of the syntax and process of executing MySQL transactions

Recommend

Vue makes div height draggable

This article shares the specific code of Vue to r...

Six inheritance methods in JS and their advantages and disadvantages

Table of contents Preface Prototype chain inherit...

Detailed explanation of the execution process of mysql update statement

There was an article about the execution process ...

Simple steps to configure Nginx reverse proxy with SSL

Preface A reverse proxy is a server that receives...

Example of how to create and run multiple MySQL containers in Docker

1. Use the mysql/mysql-server:latest image to qui...

Use personalized search engines to find the personalized information you need

Many people now live on the Internet, and searchin...

CSS menu button animation

To write a drop-down menu, click the button. The ...

Inspiring Design Examples of Glossy and Shiny Website Design

This collection showcases a number of outstanding ...

Detailed explanation of mysql scheduled tasks (event events)

1. Brief introduction of the event An event is a ...

Linux operation and maintenance basic swap partition and lvm management tutorial

Table of contents 1. Swap partition SWAP 1.1 Crea...

Examples of correct judgment methods for data types in JS

Table of contents Preface Can typeof correctly de...

MySQL Innodb key features insert buffer

Table of contents What is insert buffer? What are...