joomla - Upgrade PHP in Cent OS -
for reason, have upgrade php version 5.3.3 5.3.10 in order let joomla run. googled hours. sources pointed adding new repositories , typing commands upgrade. in end can't upgrade php these repositories, not specific version 5.3.10.
my production environment running on 5.3.10. better me upgrade 5.3.10 well. because version old cannot installed now?
i tried download php php.net , installed one. guess httpd cannot recognize such php installations installed newer version of php, website still crash.
i appreciate advice. thanks.
i had similar problem before.
remove php* installed yum before
yum remove php php-common php-cli
download php 5.3.10. unzip & switch directory
install library required (referring : http://open.litespeedtech.com/mediawiki/index.php/help:building_php_for_joomla)
yum install mysql mysql-devel mysql-server libxml2-devel gd-devel gcc gcc-c++ make patch yum install httpd-devel libpng-devel #for apxs2; added missing png headers
configure build files extension joomla use
./configure --prefix=/opt/php5.3.10 --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli --with-zlib --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-libdir=lib64 --with-config-file-path=/etc/php.ini --with-config-file-scan-dir=/etc/php.d make install
i use
--with-libdir=lib64
because find libmysqlclient.so in /usr/lib64and
--prefix, --with-config-file-path, --with-config-file-scan-dir
optionalaccording warning during
make install
(please find version @ end of it)libtool --finish /home/myuser/php-5.3.10/libs
copy config file should be
cp php.ini-production /etc/php.ini
add index.php in httpd.conf directory index
directoryindex index.php index.html index.html.var
restart httpd , should able process php files
Comments
Post a Comment