mime type [application/x-httpd-ea-php81] for suffix '.php' does not allow serving as static file, access denied! cpanel server

geobs

New Member
#1
I have the following error for all websites that are using PHP 8.1 and the websites show 403 error.

MIME type [application/x-httpd-ea-php81] for suffix '.php' does not allow serving as static file, access denied!
Content len: 0, Request line: 'GET / HTTP/1.1'

all other php versions work fine on the server, suffix is added in web console config as suggested in forum. any help is appreciated, thanks
 

Pong

Administrator
Staff member
#2
Make sure you are using the latest LiteSpeed 6.1. no need to "suffix is added in web console config ". LSWS doesn't need external app or script handler at all. Just use PHP tab to automatically define handler.
 

av_admin

Well-Known Member
#4
Hi
I have the similar issue :
[1087742] [T0] [109.125.187.50:29514:HTTP2-1#APVH_mysite.com:443] MIME type [application/x-httpd-ea-php82] for suffix '.php' does not allow serving as static file, access denied!

this is happen in my ssh for litespeed update command:

Bash:
[root@cpsrv ~]# /usr/local/lsws/admin/misc/lsup.sh
Installed '6.0.12 build 7'
2023-11-03 12:08:49 URL:https://update.litespeedtech.com/ws/latest.php [54] -> "/usr/local/lsws/autoupdate/latest" [1]
Latest STABLE release has been installed. No update.
[root@cpsrv ~]#
but this url https://update.litespeedtech.com/ws/latest.php show me :> LSWS=6.1.2 LSWS_STABLE=6.1.2 BUILD 7 PHP-LSAPI=8.1

I'm using Cpanel + litespeed and our admin are not available at moment right now and we need use php 82 on our wordpress site but we got 403 forbidden error

@Pong
Would you please help me in this case?
 

av_admin

Well-Known Member
#6
@av_admin
Change PHP version for the domain in question in cPanel, not in LS.
I did, I got error 403, and I found this error in litespeed panel
[1087742] [T0] [109.125.187.50:29514:HTTP2-1#APVH_mysite.com:443] MIME type [application/x-httpd-ea-php82] for suffix '.php' does not allow serving as static file, access denied!
 

av_admin

Well-Known Member
#9
@av_admin
Please try using the version after v6.0.12 build 11, which has suEXEC for PHP 8.2 support.
When I used command to update , I got this:
Code:
[root@cpsrv ~]# /usr/local/lsws/admin/misc/lsup.sh
Installed '6.0.12 build 7'
2023-11-03 12:08:49 URL:https://update.litespeedtech.com/ws/latest.php [54] -> "/usr/local/lsws/autoupdate/latest" [1]
Latest STABLE release has been installed. No update.
[root@cpsrv ~]#
So I can't use new version and I have no idea how to fix this
 

av_admin

Well-Known Member
#11
Hi @serpent_driver

I uesed that command and this is the result:

Code:
[root@cpsrv ~]# /usr/local/lsws/admin/misc/lsup.sh -f -v 6.0.12 -b 11
Installed '6.0.12 build 7'
2023-11-13 17:58:47 URL:https://update.litespeedtech.com/ws/latest.php [54] -> "/usr/local/lsws/autoupdate/latest" [1]
2023-11-13 17:58:47.877405 [NOTICE] [T0] [24432] [AutoUpdate] Checking for new releases...
Download Build [11].
/usr/bin/wget -nv -O /usr/local/lsws/autoupdate/lsws-6.0.12-ent-x86_64-linux.tar.gz https://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz.                                                                                                                                                     11
https://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz.11:
2023-11-13 17:58:48 ERROR 404: Not Found.
[ERROR] Failed to download https://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz.11
[root@cpsrv ~]# wget http://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz.11
--2023-11-13 17:58:57--  http://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz.11
Resolving www.litespeedtech.com (www.litespeedtech.com)... 52.55.120.73
Connecting to www.litespeedtech.com (www.litespeedtech.com)|52.55.120.73|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-11-13 17:58:58 ERROR 404: Not Found.

[root@cpsrv ~]# traceroute litespeedtech.com
traceroute to litespeedtech.com (52.55.120.73), 30 hops max, 60 byte packets
 1  172.28.6.193 (172.28.6.193)  0.687 ms  0.721 ms  0.807 ms
 2  172.19.34.177 (172.19.34.177)  0.715 ms 172.19.34.181 (172.19.34.181)  0.720 ms 172.19.34.177 (172.19.34.177)  0.453 ms
 3  172.19.34.43 (172.19.34.43)  0.819 ms 172.19.34.35 (172.19.34.35)  0.897 ms  1.019 ms
 4  172.19.32.30 (172.19.32.30)  0.715 ms  0.916 ms 172.19.32.38 (172.19.32.38)  0.680 ms
 5  172.19.17.245 (172.19.17.245)  5.365 ms  5.036 ms  5.003 ms
 6  10.202.7.46 (10.202.7.46)  7.222 ms 172.19.17.245 (172.19.17.245)  3.525 ms 10.202.7.48 (10.202.7.48)  7.132 ms
 7  10.202.7.46 (10.202.7.46)  6.439 ms *  6.034 ms
 8  85.132.90.153 (85.132.90.153)  77.363 ms 213.144.184.56 (213.144.184.56)  80.994 ms 85.132.90.153 (85.132.90.153)  76.973 ms
 9  google-5.gw.opentransit.net (193.251.249.38)  159.643 ms 193.251.128.13 (193.251.128.13)  166.762 ms 80.239.128.74 (80.239.128.74)  83.759 ms
10  * 80.239.128.74 (80.239.128.74)  83.917 ms s-bb2-link.ip.twelve99.net (62.115.140.216)  83.603 ms
11  * s-bb2-link.ip.twelve99.net (62.115.140.216)  83.493 ms  83.153 ms
12  * 52.93.28.206 (52.93.28.206)  159.868 ms *
13  * 52.93.28.218 (52.93.28.218)  159.882 ms 52.93.28.212 (52.93.28.212)  179.569 ms
14  if-be-2-2.ecore1.n75-newyork.as6453.net (66.110.96.62)  161.058 ms be2183.ccr22.lpl01.atlas.cogentco.com (154.54.58.69)  105.815 ms *
15  be2090.rcr21.ymq02.atlas.cogentco.com (154.54.45.118)  169.258 ms 52.93.247.143 (52.93.247.143)  150.511 ms if-be-2-2.ecore1.n75-newyork.as6453.net (66.110.96.                                                                                                                                                     62)  155.682 ms
16  38.104.155.194 (38.104.155.194)  170.895 ms * 15.230.204.12 (15.230.204.12)  156.948 ms
17  * * 52.93.59.63 (52.93.59.63)  150.103 ms
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * 52.93.28.200 (52.93.28.200)  179.177 ms 52.93.28.214 (52.93.28.214)  159.414 ms
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
[root@cpsrv ~]#
 

av_admin

Well-Known Member
#13
Sorry, there was a typo in my last command, so please use:

Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 6.1.12 -b 11
Thanks for reply serpent_driver

The result are the same

in previous message I send you the TRACEROUTE report

Code:
[root@cpsrv ~]# /usr/local/lsws/admin/misc/lsup.sh -f -v 6.1.12 -b 11
Installed '6.0.12 build 7'
2023-11-13 18:23:31 URL:https://update.litespeedtech.com/ws/latest.php [54] -> "/usr/local/lsws/autoupdate/latest" [1]
2023-11-13 18:23:31.481092 [NOTICE] [T0] [33085] [AutoUpdate] Checking for new releases...
Download Build [11].
/usr/bin/wget -nv -O /usr/local/lsws/autoupdate/lsws-6.1.12-ent-x86_64-linux.tar.gz https://www.litespeedtech.com/packages/6.0/lsws-6.1.12-ent-x86_64-linux.tar.gz.11
https://www.litespeedtech.com/packages/6.0/lsws-6.1.12-ent-x86_64-linux.tar.gz.11:
2023-11-13 18:23:32 ERROR 404: Not Found.
[ERROR] Failed to download https://www.litespeedtech.com/packages/6.0/lsws-6.1.12-ent-x86_64-linux.tar.gz.11
[root@cpsrv ~]# wget https://www.litespeedtech.com/packages/6.0/lsws-6.1.12-ent-x86_64-linux.tar.gz.11
--2023-11-13 18:23:50--  https://www.litespeedtech.com/packages/6.0/lsws-6.1.12-ent-x86_64-linux.tar.gz.11
Resolving www.litespeedtech.com (www.litespeedtech.com)... 52.55.120.73
Connecting to www.litespeedtech.com (www.litespeedtech.com)|52.55.120.73|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-11-13 18:23:51 ERROR 404: Not Found.

[root@cpsrv ~]#
 

serpent_driver

Well-Known Member
#14
The traceroute doesn't matter, so don't try to ceck availibility of a build. I've just check the latest build of version 6.1.2, so this command should finally work. If this build doesn't solve the issue you have to wait until build 11 is released.

Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 6.1.2 -b 8
 

av_admin

Well-Known Member
#15
The traceroute doesn't matter, so don't try to ceck availibility of a build. I've just check the latest build of version 6.1.2, so this command should finally work. If this build doesn't solve the issue you have to wait until build 11 is released.

Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 6.1.2 -b 8
Thanks for this
Code:
[root@cpsrv ~]# /usr/local/lsws/admin/misc/lsup.sh -f -v 6.1.2 -b 8
Installed '6.0.12 build 7'
2023-11-13 18:58:35 URL:https://update.litespeedtech.com/ws/latest.php [54] -> "/usr/local/lsws/autoupdate/latest" [1]
2023-11-13 18:58:35.780213 [NOTICE] [T0] [46788] [AutoUpdate] Checking for new releases...
Download Build [8].
/usr/bin/wget -nv -O /usr/local/lsws/autoupdate/lsws-6.1.2-ent-x86_64-linux.tar.gz https://www.litespeedtech.com/packages/6.0/lsws-6.1.2-ent-x86_64-linux.tar.gz.8
2023-11-13 18:58:38 URL:https://www.litespeedtech.com/packages/6.0/lsws-6.1.2-ent-x86_64-linux.tar.gz.8 [21617762] -> "/usr/local/lsws/autoupdate/lsws-6.1.2-ent-x86_64-linux.tar.gz" [1]
Diverted from STABLE releases.
/usr/local/lsws/admin/misc/update.sh 6.1.2 ent x86_64-linux
2023-11-13 18:58:39.870939 [NOTICE] [T0] Memory size is: 65400860KB.
2023-11-13 18:58:40.100493 [NOTICE] [T0] [OK] Updated license key has been created at /usr/local/lsws/autoupdate/lsws-6.1.2/license.key.
useradd: user 'lsadm' already exists
2023-11-13 18:58:42 URL:https://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh [12975/12975] -> "/usr/local/lsws/autoupdate/lsws-6.1.2/add-ons/cpanel/lsws_whm_plugin/lsws_whm_plugin_install.sh" [1]

 Install LiteSpeed Web Server Plugin for WHM
==============================================

Installed WHM Plugin version already up-to-date. Abort!
---
metadata:
  command: configureservice
  reason: No changes made.
  result: 1
  version: 1
[OK] lshttpd.service has been successfully installed!
Downloading latest shared code tar file...
Checking tar file md5...
Removing existing shared code directory...
Extracting downloaded shared code...
Removing local shared code tar file...
Updating lscmctl script...
Done!
2023-11-13 18:58:48 URL:https://l.csp.name/ips?ln [1912/1912] -> "/usr/local/lsws/admin/tmp/download-quic-cloud-ips" [1]
Restarting LSWS
Redirecting to /bin/systemctl stop lsws.service
Redirecting to /bin/systemctl start lsws.service
Done
Now should it work with php 8.2?
Was that succeed?
 

serpent_driver

Well-Known Member
#20
No, but refueling your car is much more expensive. ;)
even wordpress plugin?
Kitt is not a WordPress plugin. It's a standalone application that runs parallel to WordPress. Just read the description and visit the demo.

But don't fall in love with Kitt because you come from the wrong country to use Kitt or the AWR or UMW Plugin for WordPress.

AWR = Avif & Webp Replacement for LiteSpeed LScache
UMW = URLs Most Wanted for LiteSpeed LScache
 
Last edited:
Top