1 like 0 dislike
14 views
How to Install PHP5.4 in Centos 6
asked Sep 7, 2017 in Education & Reference by Krish (920 points) | 14 views
    

1 Answer

0 like 0 dislike

Install PHP5.4

CentOS
First install the SCL repo:

yum install centos-release-SCL

Then install PHP 5.4 and these modules:

yum install php54 php54-php php54-php-gd php54-php-mbstring

You must also install the updated database module. This installs the new PHP 5.4 module for MySQL/MariaDB:

yum install php54-php-mysqlnd

Disable loading the old PHP 5.3 Apache module:

mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.off

You should now have a /etc/httpd/conf.d/php54-php.conf file, which loads the correct PHP 5.4 module for Apache.

Finally, restart Apache:

service httpd restart

If not working do the below steps

find / -name php.ini

In my case I got my PHP in below path

/opt/rh/php54/root/etc/php.ini

run the below command

source /opt/rh/php54/enable
answered Sep 7, 2017 by anonymous

Related questions

1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Nov 29, 2017 in Education & Reference by Krish (920 points) | 202 views
2 like 0 dislike
1 answer
asked Nov 29, 2017 in Education & Reference by Sam (1,470 points) | 156 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Oct 26, 2017 in Education & Reference by Sam (1,470 points) | 13 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,151 questions
1,281 answers
263 comments
1,509 users