Reputation: 47
I have a website on a webserver that is using php 5.6 (joomla 1.5). I also want to set up another website based on wordpress. I managed to make it work, however some wordpress extensions require php 7. I decided to add AddHandler application/x-httpd-php74 .php
in htaccess
file placed in directory with wordpress.
It seems to be working as phpinfo()
in that dir shows the desired php version (7.4). Unfortunately wordpress stopped working. It throws such error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
However if I changed php version to 7.4 through cpanel
it works flawlessly (however joomla website stops working). Is there any easy way to fix this?
Upvotes: 2
Views: 1139
Reputation: 183
Problem:
Solution: You would need a MultiPHP configuration on CPanel.
1 - Keep the Joomla site with PHP 5.6
2 - Keep the WordPress site with PHP 7.4
Reference: https://docs.cpanel.net/cpanel/software/multiphp-manager-for-cpanel/
Regards. Ed.
Upvotes: 1