Cannot Alter PHP Config

Username (e.g. epiz_XXX) or Website URL

Website URL: https://autolend.cf/
Username: epiz_25519234

Error Message

When I wanted to use cpanel to change PHP config and debug my website (make my site show PHP error message), the function showed error message.

Hmm, That’s weird, I don’t know much about how the control panel works, but it may be timeing out, However I’ll leave it to someone else, as i don’t know what could cause that error

i think this happens to most because it happens for me too

Apparently there was a softaculous issue as well (A bit back), Maybe the IFastNet Guys/gals are working on something.

Looks like temporary maintenance?
@PennyWong Use this code at end of your htaccess file (which is inside htdocs):

php_flag display_errors On

The Alter PHP Config feature was updated recently. This appears to have caused this issue.

I have reported the issue to iFastNet, they should have this fixed soon.

2 Likes

When will it be fixed?

My website https://autoLend.cf
also has problems due to some inactive PHP codes which are active at another server.

In this site, the php function

file_get_contents(‘https://api.bitfinex.com/v1/lendbook/usd/?limit_asks=500&limit_bids=0’);

does not function well

you can see it at this page:
https://autolend.cf/marketstats.php

All the data should come from file_get_contents function.

However, I cannot debug my site because I temporarily switched off php error display function before and I cannot turn it on again.

You try to get external contents with HTTPS URL via that function.
Maybe CA bundle in the hosting wasn’t setup correctly.

You can get around this problem by writing a custom function that uses curl, as in:

function file_get_contents_curl( $url ) {

  $ch = curl_init();

  curl_setopt( $ch, CURLOPT_AUTOREFERER, TRUE );
  curl_setopt( $ch, CURLOPT_HEADER, 0 );
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
  curl_setopt( $ch, CURLOPT_URL, $url );
  curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, TRUE );

  $data = curl_exec( $ch );
  curl_close( $ch );

  return $data;

}

Then just use file_get_contents_curl instead of default file_get_contents whenever you’re calling a URL that begins with HTTPS (and/or normal HTTP, too. Mostly people use curl to access external contents).

As soon as iFastNet has identified the issue and published a fix. I don’t know when that will be.

Yes, you can. All the “Alter PHP Config” function does is add lines to your .htaccess file. By using the line shared by @anon19508339, you’re doing exactly that by hand.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.