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

Problems needing attention in installing php extension in windows Environment

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "the problems that need to be paid attention to when installing php extension in windows environment". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "windows environment installation of php extensions need to pay attention to the problem" it!

Select the type of extension to be installed according to the information printed by phpinfo ()

Open PHPinfo (), view the information, and note 4 metrics:

1. Php version (PHP Version 5.6.40)

2. Operating system (32 is x86 and 64 bits is x64)

3. Thread safety: ts (Thread-Safety) means thread safety. When accessing multithread, a locking mechanism is used. When one thread accesses some data of this class, it is protected. Other threads cannot access it until the thread has finished reading it. Other threads can only use it. There will be no data inconsistencies or data contamination. Select this version when php is loaded in ISAPI. This version is selected when php is loaded in ISAPI.

Non-thread safety: nts (None-Thread Safe) means non-thread safety, that is, it does not provide data access protection. It is possible that multiple threads change the data one after another, resulting in dirty data. When php runs in fast cgi mode, choose this version, which has better performance.

4. VC version (corresponding runtime)

VC6

VC7 (Microsoft Visual C++ 2003)

VC8 (Microsoft Visual C++ 2005)

VC9 (Microsoft Visual C++ 2008)

VC10 (Microsoft Visual C++ 2010)

VC11 (Microsoft Visual C++ 2012)

VC12 (Microsoft Visual C++ 2013)

VC14 (Microsoft Visual C++ 2015)

Download, decompress and copy extended files

Enter the URL https://pecl.php.net to search for the extension to be installed (for example: redis, enter redis, click enter)

Select the latest stable version (which represents the stable version with stable) and click DLL with a blue icon to download

Note whether the number of the php version corresponds to

Download and extract to the current file, copy the extension

Third, put the extension file in the php extension directory, configure the php.ini file, and restart apache

The php extension directory can be viewed here

The directory of php.ini can be viewed here

Open php.ini and add a line

Extension=php_redis.dll

Restart

At this point, I believe you have a deeper understanding of the "problems you need to pay attention to when installing php extensions in the windows environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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