Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the swoft framework of php

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to install the swoft framework of php". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install the swoft framework of php.

1. Download the swoole extension

Download the tar.gz package under 2.linux, decompress it after download, enter the directory, and execute the following command:

Phpize

Then execute:

. / configure-- with-php-config=/usr/local/php/bin/php-config

Finally, execute:

Make & & make install

3. Configure in php.ini

[swoole] extension = "/ www/server/php/71/lib/php/extensions/no-debug-non-zts-20160303/swoole.so"

The above two sentences can be written at the end of php.ini, swoole.so path, according to your own swoole.so directory configuration, 4. To view the specific path of swoole.so, you can use:

Find /-name swoole.so

In lnmp environment, you can see the following as long as you restart nginx and php-fpm, and you only need to restart apache in lamp.

In addition, remind swoft that php version is greater than 7.1. The swoole extension version is greater than 2.1.My swoole extension is 4.0.4 as shown below: this indicates that the swoole extension has been installed successfully

4. Execute the command, and the swoft framework is built.

Cd swoftcomposer install-no-devcp .env.example .envphp bin/swoft thank you for reading, the above is "how to install the swoft framework of php" content, after the study of this article, I believe you have a deeper understanding of how to install the swoft framework of php, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report