Shannon
Shannon

Reputation: 837

500 error on any new created php files

I'm getting a 500 internal server error on any new php files that I create on my server.

So even if they are blank or have something simple such as

<?php
echo "foo";
?>

They will still error.

I have created and successfully received .html files and am still able to get all my old php files, I just can't get any more that I create.

Why would it do this, is there some sort of limit on how many php files I can have on my server?

Upvotes: 1

Views: 134

Answers (1)

Larry.Z
Larry.Z

Reputation: 3724

The PHP files should have execute permissions. If your OS is Linux

sudo chmod 777 foo.php

Upvotes: 1

Related Questions