403 Error When Trying to Use PHP 7.1 or 7.2

sbhooley

Member
Jan 18, 2018
10
1
3
USA
cPanel Access Level
Root Administrator
I have used easyapache4 to install php 7.1, and php 7.2.
I am using litespeed webserver, and I made sure php 7.1, and 7.2 are both configured there as well.

I can use php 7.0 no problem. If I try to switch php to 7.1 or 7.2 in any way shape or form my website refuses to load, I only get a 403 error. I checked the error logs and did not find anything helpful.

Looking for a little guidance on how to troubleshoot/proceed. Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
I can use php 7.0 no problem. If I try to switch php to 7.1 or 7.2 in any way shape or form my website refuses to load, I only get a 403 error. I checked the error logs and did not find anything helpful.
Hello,

Did you check the Apache error log (/usr/local/apache/logs/error_log) to see if anything appeared when you encountered that error code in your browser? If so, feel free to open a support ticket using the link in my signature so we can take a closer look.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Same problem here. Any solution?
Hello,

Do you have root access to this system? If so, did you check the Apache error log (/usr/local/apache/logs/error_log) to see if anything appeared when you encountered that error code in your browser?

Thank you.
 

cool_recep

Member
Apr 10, 2013
24
1
3
cPanel Access Level
Website Owner
Code:
2018-03-19 23:23:26.260342 [NOTICE] [/home/technopa/public_html/sosyal/.htaccess:14] Unsupported ErrorDocument URL: default, must start                                                                                                      with '/' or 'http'.
2018-03-19 23:23:26.260351 [NOTICE] [/home/technopa/public_html/sosyal/.htaccess:15] Unsupported ErrorDocument URL: default, must start                                                                                                      with '/' or 'http'.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

The error message suggests you are using an unsupported ErrorDocument entry in the .htaccess file referenced in the log output. You can remove those entries from the .htaccess file, as custom ErrorDocument entries are not required. Instead, you simply upload the custom error pages to the document roots of the websites and they take affect automatically.

Thank you.