default install "do not edit" cpanel htaccess conflicts with phplist operations

jeffschips

Well-Known Member
Jun 5, 2016
221
23
68
new york
cPanel Access Level
Root Administrator
Hello and safe travels for everyone!

I have a standard phplist install which by default installs into a /lists directory beneath the domain root.

It works fine except for one feature which always gives a:

Forbidden You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

when running a particularly important feature of phplist.

The error doesn't happen and all works fine if I change the php version to 7.2 in the domain root .htaccess.

But I am using php version 7.3 throughout the server and am forced to downgrade php to 7.2 in order to get this program to play nice.

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php72.php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Where in cpanel does one set the actual php version for a web service to use?
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,029
313
cPanel Access Level
Root Administrator
Hey there! It depends on what level of access to the system you have. If you have WHM access, it's best to set this in the MultiPHP Manager page for the domain. There is also the MultiPHP Manager too in each individual cPanel, but that may be limited by your hosting provider on what versions you can choose there. If you have access to that, either way would work well to make this change permanent.
 

jeffschips

Well-Known Member
Jun 5, 2016
221
23
68
new york
cPanel Access Level
Root Administrator
Thanks for that! I have been toggling between php7.2 and php7.3 with the MultiPHP Manager as I do have WHM access. However, for whatever reason phplist seems to only want to use the config files for php7.2, so if I set php to 7.3 with MultiPHP manager, it pukes.

Don't know if there is a way to force phplist to use php7.3. I'm trying to find out.