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.

  1. remove php* installed yum before

    yum remove php php-common php-cli 
  2. download php 5.3.10. unzip & switch directory

  3. 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 
  4. 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/lib64

    and --prefix, --with-config-file-path, --with-config-file-scan-dir optional

  5. according warning during make install (please find version @ end of it)

    libtool --finish /home/myuser/php-5.3.10/libs 
  6. copy config file should be

    cp php.ini-production /etc/php.ini 
  7. add index.php in httpd.conf directory index

    directoryindex index.php index.html index.html.var 
  8. restart httpd , should able process php files


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -