Author Topic: PHP files in User Directory not working  (Read 284 times)

0 Members and 1 Guest are viewing this topic.

PHP files in User Directory not working
« on: April 08, 2021, 10:15:35 AM »
I have just had CWP Pro installed however when I create any php files in the user directory these are not working, I get the following error in the error log:
[Thu Apr 08 03:03:51.164275 2021] [mime_magic:error] [pid 6924] [client] AH01512: mod_mime_magic: can't read `/home/xx/public_html/php.php'
[Thu Apr 08 03:03:51.164359 2021] [core:error] [pid 6924] (13)Permission denied: [client] AH00132: file permissions deny server access: /home/xx/public_html/php.php

The current web server is on Apache only.

When I run the fix file permissions it set's it to 640 and I get the 403 error as above
If I change the permission 644 it just prints out the php code
« Last Edit: April 08, 2021, 10:21:41 AM by yoda2021 »

Re: PHP files in User Directory not working
« Reply #1 on: April 14, 2021, 01:32:14 PM »
First of all the permissions must 644 for files and 755 for folders.
Also, I would recommend to check .htaccess
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
Join our Development Team and get paid !

Installation Instructions
Get Fast Support Here