Claim your Biolink Click Here
1 like 0 dislike
525 views
How to Install PHP5.4 in Centos 6
in Education & Reference by (1.1k points) | 525 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
by

Related questions

0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Jan 4, 2018 in Education & Reference by Simmi (830 points) | 490 views
1 like 0 dislike
1 answer
asked Jan 4, 2018 in Education & Reference by Sam (1.6k points) | 1.1k views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
0 answers
asked May 31, 2020 in Education & Reference by Marc (4.6k points) | 290 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer

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

1,308 questions
1,469 answers
568 comments
4,809 users