HTTP ERROR 500 For Only PHP Files

Discussion in 'Off Topic' started by tyler1cs, Apr 29, 2017.

  1. tyler1cs

    tyler1cs New Member

    Messages:
    2
    Likes Received:
    0
    Trophy 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
     
  2. tyler1cs

    tyler1cs New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Nvm, problem has seemed to solve itself
     
  3. jodiah

    jodiah New Member

    Messages:
    4
    Likes Received:
    0
    Trophy 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?
     
  4. jodiah

    jodiah New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I searched my directories for an .htaccess file and found none ;
     
  5. jodiah

    jodiah New Member

    Messages:
    4
    Likes Received:
    0
    Trophy 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 ;

     
  6. bdistler

    bdistler Well-Known Member Prime Account

    Messages:
    3,534
    Likes Received:
    196
    Trophy Points:
    63
    -
    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: May 6, 2017

Share This Page