'Zend'에 해당되는 글 1건

  1. 2020.06.01 Apache 2.4 + PHP 5.3 + Zend 컴파일 설치

Apache : 2.4.25

PHP : 5.3.28

+ Zend 설치

 

예전에 직접 실무에서 사용했기 때문에 컨피그 경로만 환경에 맞게 조금 수정하면 사용가능

 

1320  cd /usr/local/src

 1321  ls

 1322  cd httpd-2.4.25

 1323  ls

 1324  ./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-module=shared --enable-rewrite --enable-ssl --with-ssl --with-mpm=prefork --with-included-apr

 1325  service httpd restart

 1326  make & make install

 1327   rpm -qa httpd php mysql

 1328  rpm -qa httpd php mysql

 1329  make & make install

 1330  make install

 1331  pwd

 1332  cd ..

 1333  cd php-5.3.28

 1334  ls

 1335  make distclean

 1336  ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --disable-debug --enable-bcmath --enable-exif --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-intl --enable-mbregex --enable-mbstring --enable-mod-charset --enable-sigchild --enable-soap --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-xml --enable-zip --with-iconv=/usr/local/lib --with-curl --with-zlib --with-gd --with-gettext --with-mcrypt --with-mysqli --with-openssl --with-xmlrpc --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/lib --with-libxml-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --disable-maintainer-zts --disable-safe-mode

 1337  make clean

 1338  make

 1339  vi /usr/local/src/php-5.3.28/Zend/zend_language_parser.h

 1340  make

 1341  make install

 1342  service httpd restart

 1343  ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf --with-mysql=/usr/local/mysql --with-mysql-sock=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-regex=php --with-libxml-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-bz2 --with-curl --with-gdbm --with-db4=/usr --with-dbm --with-pcre-dir=/usr --with-openssl-dir=/usr --with-libxml-dir=/usr --with-gd --with-vpx-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --with-gettext --with-gmp --with-mhash --with-imap --with-imap-ssl --with-kerberos --with-icu-dir=/usr --with-ldap --with-ldap-sasl --with-libmbfl --with-onig --with-mcrypt --with-libedit --with-readline --with-tidy --with-libexpat-dir=/usr --with-xmlrpc --with-xsl --with-pear --with-pic --with-libdir=lib64 --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-pcntl --enable-gd-native-ttf --enable-gd-jis-conv --enable-intl --enable-mbstring --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --enable-mysqlnd --enable-dba=shared --enable-mod-charset --enable-dom --enable-mbregex --enable-inline-optimization --enable-sigchild --enable-soap --enable-maintainer-zts --enable-opcache=nom

 1344  make

 1345  make clean

 1346  make

 1347  vi /usr/local/src/php-5.3.28/Zend/zend_language_parser.h

 1348  make

 1349  make install

 1350  php -v

 1351  service httpd restart

 1352  /etc/init.d/httpd restart

 1353  rsync -avz /usr/lib /usr/lib64/

 1354  rsync -avz /usr/lib64/ /usr/lib/

 1355  rsync -avz /lib64/ /lib/

 1356  /etc/init.d/httpd restart

 1357  cd /lib64

 1358  ln -s /usr/local/lib/libpcre.so.1 libpcre.so.1

 1359  /etc/init.d/httpd restart

 

 

-----------------------------------------------------------------------------------

 

* php.ini 위치 설정이 적용안되는 경우(최초 설정이나 버전에 따라 다를 수 있음)

1. httpd.conf 파일의 마지막 라인에 include /usr/local/apache/conf/httpd-php5.conf 추가

(httpd-php5.conf 파일이 없는 경우 해당 주소에 새로 생성)

 

2. 편집기로 열어 PhpIniDir "/usr/local/apache/conf/extra/httpd-php5.conf 내용추가

3. 저장하고 httpd 데몬 재실행

 

'Linux CentOS' 카테고리의 다른 글

CentOS 서비스 자동실행  (0) 2020.06.01
sendmail You(ip:xxx.xxx.xxx are NOT allowed to RELAY  (0) 2020.06.01
PHP 첨부파일 용량 늘리기  (0) 2020.06.01
XE(XpressEngine) 설치  (0) 2020.06.01
MySQL 5.6 컴파일 설치  (0) 2020.06.01
Posted by sodp
,