HTTP ERROR 500 For Only PHP Files

tyler1cs

New Member
Messages
2
Reaction score
0
Points
1
Hi guys,

I am receiving HTTP ERROR 500 for only PHP files. I tested this by deleting all my current files and uploading a basic PHP file containing just text and I still receive this error. It works fine for .html files but not .php.

Any solutions?

I have deleted my .htaccess file
 

jodiah

New Member
Messages
4
Reaction score
0
Points
1
I am running into the same problem myself. I tried adjusting the file permissions but to no avail.
I last tried "5755".

Do I need to investigate the posts dealing with .htaccess file?

Did deleting the .htaccess file do the trick?
 

jodiah

New Member
Messages
4
Reaction score
0
Points
1
I searched my directories for an .htaccess file and found none ;
 

jodiah

New Member
Messages
4
Reaction score
0
Points
1
I think I found a temporary solution - I created a new .php file to my home directory and that worked.

Before, I had created a nested subdirectory using File Manager. e.g. I created /pract/a/index.php ;

My intent was just to go straight there just to house code practice pages. Nothing polished or public.

Is that paramount to creating a "subdomain"? I may have violated some permissions doing that.

I created a separate .php file in my root www directory and it worked. No, not index.php, or default.php; just a dummy.php name ;

 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
I last tried "5755".
-
PHP files should have permissions of [ 0644 ]

folders below folder [ public_html ] - that have PHP files in them- should have permissions of [ 0755 ]

folder [ public_html ] should have permissions of [ 0750 ]
###
 
Last edited:
Top