Jump to content

[Answered] newbie: how to enable php


stephank

Recommended Posts

Hello all,

Just started with ricky.heliohost.org .

What must I do to enable php 7.1 so that php code in my html files and in php files is handled?

Already tried to set an Apache handler application/x-httpd-php71 .php using cpanel but the result is:

- html file gets handled but except php code in it

- php file: browser asks me to download it

 

I am sorry for such basic questions...

Best regards, Stephan

 

Link to comment
Share on other sites

Thank you both very much for your quick answer!

 

Assigning php 7.1 using cpanel's MultiPHP results in 'Redirect Status Code: 500' on my site when running a php file. e.g. https://stephank.heliohost.org/test.php

 

Interestingly, assigning php 7.0 works like a charm.

Tested multiple times, results can be reproduced.

 

Not too bad for me, still testing basic things and thus not restricted to 7.1 but could it be a configuration/setup issue?

 

Best regards, Stephan

Link to comment
Share on other sites

hello, I am sorry, I was away over the weekend.

 

Here is the content of the script file 'test.php':

 

<?php
phpinfo(INFO_GENERAL);
?>

 

This seems to generate the 500 error when using php 7.1.

The remaining text of the error message ('Redirect Status Code:') results from the error page I created.

 

Best regards, Stephan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...