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-clidownload 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 headersconfigure 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 installi use
--with-libdir=lib64because find libmysqlclient.so in /usr/lib64and
--prefix, --with-config-file-path, --with-config-file-scan-diroptionalaccording warning during
make install(please find version @ end of it)libtool --finish /home/myuser/php-5.3.10/libscopy config file should be
cp php.ini-production /etc/php.iniadd index.php in httpd.conf directory index
directoryindex index.php index.html index.html.varrestart httpd , should able process php files
Comments
Post a Comment