I installed php 5.3.29 and apache 2.2 from the source.
OS:CentOS 7
configure option for php
[[email protected]]#./configure\
--prefix=/usr/local/php5\
--with-apxs2=/usr/local/apache/bin/apxs\
--without-sqlite\
--enable-mbstring\
--enable-zend-multibyte\
--enable-ftp\
--enable-sockets\
--with-mysql=/usr/local/mysql\
--with-gd\
--with-jpeg-dir\
--with-png-dir\
--with-freetype-dir\
--with-zlib\
configure option for apache
[root@localhostapache]#./configure
--prefix=/usr/local/php
--enable-mbstring
--with-apxs2=/usr/sbin/apxs
--with-config-file-path=/usr/local/php/lib/
-- enable-zend-multibyte
--enable-mbregex
--with-mime-magic
--enable-exif
--with-gd
--with-zlib
--with-jpeg-dir
--with-mysql=/usr/local/mysql/^
Reference Site
http://toriaezu-engineer.hatenablog.com/entry/2013/09/15/001120
I wrote on the website below that libphp5.so will be created to link the two, but it will not be generated by me.I'm at a loss whether the options are wrong or fundamentally wrong.
I would like you to give me some advice/point out for cooperation.
Please understand that I am a beginner.
I'm the questioner.
As you pointed out, it was an optional mistake.
Thank you.
© 2024 OneMinuteCode. All rights reserved.