MultiPHP Manager PHP 5.4 are not getting the same settings

stanflow

Member
Jun 18, 2019
5
1
3
Stockholm
cPanel Access Level
Root Administrator
I've tried activating PHP 5.4 on an account that needs this old PHP version. However, it seems like it's not reading the settings/ini-files correctly.

Currently there's no mysql*-support on this PHP 5.4-account. But another account with PHP 5.4 do have the mysql*-support.

This is what the MultiPHP Managers look like:
- Removed -

Somehow they're different (sorry for being a newbie on cpanel).

The accounts are reading the same ini-file...
/opt/cpanel/ea-php54/root/etc/php.ini

... but this is empty on the non-working account:
Scan this dir for additional .ini files
Additional .ini files parsed


This is the .htaccess-file for the non-working account:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54” package as the default “PHP” programming language.
<IfModule mime_module>
Thanks for any help solving this.
 
Last edited by a moderator:

stanflow

Member
Jun 18, 2019
5
1
3
Stockholm
cPanel Access Level
Root Administrator
I was looking at the wrong .htaccess-file somehow. The correct .htaccess-file contained this:
Code:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/*****/public_html
</IfModule>
When I commented this bit it started working properly.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,816
541
263
Houston
cPanel Access Level
DataCenter Provider
I'm glad you were able to identify the cause of the issue and thanks for posting how you resolved it @stanflow