Directory Permission

darb

Verified User
Joined
Apr 26, 2020
Messages
9
I am trying to access a directory down from: domains domain.com public_html and keep getting a 403 error; permissions and G/UID seem fine.

Any pointers?
 
Thanks, it looks like a PHP error:

020-04-28 04:57:16.865749 [ERROR] [75.157.110.XXX:62556:HTTP2-3] MIME type [application/x-httpd-php] for suffix '.php' does not allow serving as static file, access denied!

Under system info php is listed as installed, but not running. Does php need to be changed to running?
 
Under system info php is listed as installed, but not running.
That's normal.
You can test if it's used by giving this command in ssh:
php -v
so you will see the active php version.
Seems to me you're having an openlitespeed error. I'm not familiar with this as I'm not using OLS. But I've read the php handler should be added. However normally the DA scripts does everything for you so maybe something might have gone wrong there.

If you're using custombuild 2.0, you can try this from an SSH connection to your server as root to rebuild it:
Code:
cd /usr/local/direcatdmin/custombuild
./build update
./build set webserver openlitespeed
./build set mod_ruid2 no
./build set php1_mode lsphp
./build openlitespeed
./build php n
./build rewrite_confs
that might fix it.
 
Thanks, that worked.

The first few were already set, so one of the latter three.

Cheers.
 
Back
Top