介绍 php7.1 安装openssl扩展
时间:2022-02-11 13:40
PHP7栏目介绍php7.1 安装openssl扩展的方法 推荐(免费):PHP7 在安装pha的时候发现需要php支持openssl,如下图所示 源码下载 解压 编译打包 进入openssl的扩展目录 : 初始化 配置 编译 启动php php-fpm 配置文件在/etc/php.ini /etc/php-fpm.conf 查看验证 以上就是介绍 php7.1 安装openssl扩展的详细内容,更多请关注gxlsystem其它相关文章!Wget https://www.php.net/distributions/php-7.1.33.tar.gz
Tar -xvf php-7.1.33.tar.gz
Cd /alidata2/software/php-7.1.33/ext/openssl
[root@59et openssl]# /usr/local/php/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module
[root@59et openssl]# cp ./config0.m4 ./config.m4
[root@59et openssl]# phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[root@59et openssl]# ./configure --with-php-config=/usr/local/php/bin/php-config
Make&make install
[root@59et openssl]# make install
Installing shared extensions: /usr/lib64/php/modules/
[root@59et openssl]# cd /usr/lib64/php/modules/
[root@59et modules]# ls
bz2.so curl.so fileinfo.so gettext.so json.so mcrypt.so opcache.so pdo.so shmop.so sqlite3.so xmlreader.so xsl.so
calendar.so dom.so ftp.so gmp.so ldap.so mysqlnd_mysqli.so openssl.so pdo_sqlite.so simplexml.so tokenizer.so xml.so zip.so
ctype.so exif.so gd.so iconv.so mbstring.so mysqlnd.so pdo_mysqlnd.so phar.so sockets.so wddx.so xmlwriter.so
[root@59et modules]#
[root@59et etc]# ps -ef|grep php
root 6535 1 0 18:38 ? 00:00:00 php-fpm: master process (/etc/php-fpm.conf)
apache 6536 6535 1 18:38 ? 00:00:17 php-fpm: pool www
apache 6537 6535 1 18:38 ? 00:00:19 php-fpm: pool www
apache 6538 6535 1 18:38 ? 00:00:20 php-fpm: pool www
apache 6539 6535 1 18:38 ? 00:00:19 php-fpm: pool www
apache 6540 6535 1 18:38 ? 00:00:19 php-fpm: pool www
apache 6541 6535 1 18:38 ? 00:00:19 php-fpm: pool www
apache 6542 6535 1 18:38 ? 00:00:21 php-fpm: pool www
apache 6543 6535 1 18:38 ? 00:00:18 php-fpm: pool www
apache 6648 6535 1 18:44 ? 00:00:14 php-fpm: pool www
root 6846 9081 0 19:00 pts/0 00:00:00 grep php