search
HomeBackend DevelopmentPHP7Introduction to php7.1 installing openssl extension

PHP7The column introduces how to install openssl extension in php7.1

Introduction to php7.1 installing openssl extension

Recommended (free): PHP7

When installing pha, I found that php needs to support openssl, as shown in the figure below

Introduction to php7.1 installing openssl extension

Source code download

Wget https://www.php.net/distributions/php-7.1.33.tar.gz

Unzip

Tar -xvf php-7.1.33.tar.gz

Compile and package

Enter the extension directory of openssl:

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

Initialization

[root@59et openssl]# phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303

Configuration

[root@59et openssl]#  ./configure --with-php-config=/usr/local/php/bin/php-config

Compile

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]#

Start php

php-fpm configuration file in /etc/php.ini /etc/php-fpm.conf

View verification

[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

The above is the detailed content of Introduction to php7.1 installing openssl extension. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:CSDN. If there is any infringement, please contact admin@php.cn delete
Which versions of PHP7 have introduced new operatorsWhich versions of PHP7 have introduced new operatorsMar 03, 2025 pm 04:37 PM

This article details PHP 7's new operators: the null coalescing (??), spaceship (<=>), and null coalescing assignment (??=) operators. These enhance code readability and performance by simplifying null checks and comparisons, indirectl

What are the impacts of different versions of PHP7 on memory consumptionWhat are the impacts of different versions of PHP7 on memory consumptionMar 03, 2025 pm 04:35 PM

PHP 7's minor version differences yield subtle memory consumption variations. While newer versions generally improve performance and memory efficiency via Zend Engine and garbage collection optimizations, the impact is application-dependent. Signif

How to optimize PHP7 code to improve performanceHow to optimize PHP7 code to improve performanceMar 03, 2025 pm 04:28 PM

This article examines optimizing PHP7 code for performance. It addresses common bottlenecks like inefficient database queries, I/O operations, and memory leaks. Solutions include efficient coding practices, database & caching strategies, asynch

How to Use Sessions Effectively in PHP 7?How to Use Sessions Effectively in PHP 7?Mar 10, 2025 pm 06:20 PM

This article details effective PHP 7 session management, covering core functionalities like session_start(), $_SESSION, session_destroy(), and secure cookie handling. It emphasizes security best practices including HTTPS, session ID regeneration, s

What bugs have been fixed in the PHP7 version updateWhat bugs have been fixed in the PHP7 version updateMar 03, 2025 pm 04:36 PM

PHP 7 significantly improved upon previous versions by addressing numerous bugs, enhancing performance, and bolstering security. Key improvements included a rewritten Zend Engine 3, optimized memory management, and refined error handling. While gene

How to Monitor PHP 7 Performance with Tools like New Relic?How to Monitor PHP 7 Performance with Tools like New Relic?Mar 10, 2025 pm 06:28 PM

This article explains how to monitor PHP 7 application performance using New Relic. It details New Relic's setup, key performance indicators (KPIs) like Apdex score and response time, bottleneck identification via transaction traces and error track

How to Upgrade from PHP 5.6 to PHP 7?How to Upgrade from PHP 5.6 to PHP 7?Mar 10, 2025 pm 06:29 PM

This article details upgrading PHP 5.6 to PHP 7, emphasizing crucial steps like backing up, checking server compatibility, and choosing an upgrade method (package manager, compiling, control panel, or web server configuration). It addresses potentia

What impact does the PHP7 version update have on session processing?What impact does the PHP7 version update have on session processing?Mar 03, 2025 pm 04:31 PM

This article examines session handling in PHP7, highlighting performance improvements stemming from the enhanced Zend Engine. It discusses potential compatibility issues from upgrading and details optimization strategies for security and scalability

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment