Linux PHP5.3????PHP5.5.33
???????????? ???????[ 2016/3/31 11:33:31 ] ??????????????
??????????????laravel5.1??php???????5.5????????廷????Aliyun Cent OS 7.0??????????yum?lastest???5.4??laravel5.1????php5.5??????????????yum????????????????????????鷳?????????
????????????????????·??????????????????????????????????????????????????????????????????php????????????????????????????????????????Apache 2.x on Unix systems????????
????1.????
????http://php.net/downloads.php
1 wget http://cn2.php.net/get/php-5.5.33.tar.gz/from/this/mirror
2 #??????????????
3 mv mirror php-5.5.33.tar.gz
4 tar -zxf php-5.5.33.tar.gz php-5.5.33
5 cd php-5.5.33
????2.?????
????1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
????????--with-apxs2=/usr/local/apache2/bin/apxs??????????????????????????????????У?????????????libphp5.so??????httpd.conf?У?find / -name apxs2????????????????????????????apache??????????????5.3????????????????????????
????yum install httpd-devel
???????apxs2??????У????????apxs???
????1 find / -name apxs2
????2 find / -name apxs
????3 /usr/bin/apxs
?????????????????????????????
????1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
????2 make
????3 make install
??????????????????????
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
...
...
...
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/usr/local/src/php-5.5.33/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/
????3.????
????????php.ini
????#????
????cp php.ini-development /usr/local/lib/php.ini
????#??????
????cp php.ini-development /usr/local/lib/php/php.ini
???????httpd.conf
find / -name httpd.conf
vi /etc/httpd/conf/httpd.conf
#??????????310???????
AddType application/x-httpd-php .php .php3 .phtml .inc
AddType application/x-httpd-php-source .phps
#??????????????????????????У????????50???????
LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so
????????apache??
????service httpd restart
??????????£?
????php -v
??????????phpinfo.php??????£?
????<?php
????echo phpinfo();
?????????????
???????????????Щ????????gd php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap????Щ????yum?ɡ?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11