Jump to content

isuru

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by isuru

  1. Hi, so I'm yet another noob, so please bare with me.

    I have read this....

    Thank you for the reply as the information you provided fixed my problem!

     

    In case anyone else has the same question, you can find out which version of PHP you are using in the MultiPHP Manager under the Software category on the cPanel home page.

     

    In my case, I was inheriting the system default PHP version which is ea-php56. So in the .htaccess file, I added the following directive:

     

    AddType application/x-httpd-ea-php56 .html

     

    Once I did this and saved the file, the server did processed the embedded PHP script.

     

    Thanks again - Paul

    and did the following

    added

    AddType application/x-httpd-ea-php70 .html
    

    to my .htaccess since I'm using ea-php70 which made my .htaccess file look like this...

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    AddType application/x-httpd-ea-php70 .html
    

    and yet I receive the following error

     

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@isuru.heliohost.org to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    what am I doing wrong? without the php line

    AddType application/x-httpd-ea-php70 .html
    

    with just the this

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    

    in my .htaccess file, my index.html file displays perfectly fine from what I can see... so what am I doing wrong trying to get php to render html?


    Hello again, this is rather embarrassing but then again I did say I'm a "noob" :) so I have seen this

    https://my.getstarted.com.au/knowledgebase/56/500-Error-File-is-writeable-by-group.html

    500 Error: File is writeable by group


    On occasion you may get a 500 page error (a green/blue error page) when trying to run a PHP script in your account. When checking the error og which you can do via the cPanel account log in you may see the following line:
    [Wed Jan 31 16:34:12 2011] [error] [client 11.111.111.111] SoftException in Application.cpp:256: File "/home/username/public_html/index.php" is writeable by group
    This is due to the server running SuPHP and the files having higher permissions than allowed, to fix this problem you need to make sure your files are chmod 644 for all PHP based files and 755 for directories in order for them to work with SuPHP.You can easily do this by connecting via FTP with Filezilla and right clicking on the problem folders and files and selecting file permissions.

     

    and it WORKS :) :) Thank you to anyone who had a look at this. Hope this helps anyone who gets in the same JAM :)

×
×
  • Create New...