Do not recompile PHP to add openssl module record to php-php Tutorial

Source: Internet
Author: User
Do not recompile PHP add openssl module record reference yum-yinstallopensslusrlocalbin is php installation directory switch to php installation directory etxopenssl directory cdrootsoftphp-5.2.8extopenssl reference usrlocalbinphpizeCannotfindconfig do not recompile php add openssl module record to PHP
Reference
Yum-y install openssl


/Usr/local/bin/is the php installation directory.
Switch to the etx/openssl directory in the php installation directory.
Cd/root/soft/php-5.2.8/ext/openssl

Reference
/Usr/local/bin/phpize
Cannot find config. m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

Check that the openssl directory contains config. w32 and config0.m4, and change config0.m4 to config. m4.
Mv config0.m4 config. m4

Run:
Reference
/Usr/local/bin/phpize

Compile:
Reference
./Configure -- with-openssl -- with-php-config =/usr/local/bin/php-config
Make; make install

After the prompt is successful, add extension = openssl. so to php. ini.
Restart apache or php-fpm.


PS: Why is config0.m4 in the directory instead of config. m4.
The Directory of pcre, zlib, and other modules is also config0.m4.






Http://www.9enjoy.com/php-install-openssl/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.