Home > Backend Development > PHP7 > body text

How to install the openssl extension of php7 under centos7

醉折花枝作酒筹
Release: 2023-02-18 06:44:02
forward
2007 people have browsed it

As one of the core extensions of the system, openssl implements encryption extensions for PHP data security by encrypting the content with private keys and decrypting the public keys with the same encryption method. Today we will learn how to install the openssl extension of php7 under centos7.

How to install the openssl extension of php7 under centos7

To run the laravel project on the new server today, you need to install the openssl extension. The following are the installation steps

1. First find the php extension The directory I have is under '/usr/local/php-7.1.5/ext'

How to install the openssl extension of php7 under centos7

2. Enter the openssl directory and modify a config0.m4 inside Execute the command for config.m4 as "mv config0.m4 config.m4"

3. Enter phpize '/usr/local/php/bin/phpize '

How to install the openssl extension of php7 under centos7

4.Configure'./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config'

How to install the openssl extension of php7 under centos75.Compile After successful installation, you will be prompted to generate a .so file in a certain directory

make

sudo make install

How to install the openssl extension of php7 under centos7

##6. Configure php. ini, add extension

How to install the openssl extension of php7 under centos7

7. Restart the php service'/etc/init.d/php-fpm restart'

How to install the openssl extension of php7 under centos7

8. To check whether the installation is successful, search the openssl module in phpinfo

How to install the openssl extension of php7 under centos7

Recommended learning:

php video tutorial

The above is the detailed content of How to install the openssl extension of php7 under centos7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template