Skip to main content

Disable php functions weird encoding

Comments

9 comments

  • Infopro
    i was trying to disable some php functions

    Here's a screenshot of where you'd edit this.
    0
  • chanklish
    Here's a screenshot of where you'd edit this.

    this work perfectly .thank you i still have these warnings in the firewall, what do you think about them : Check php version [/opt/cpanel/ea-php55/root/usr/bin/php] Any version of PHP (Current: 5.5.38) older than v5.6.* is now obsolete and should be considered a security threat. You should upgrade exclusively to PHP v5.6+ Check php for ini_set disabled [/opt/cpanel/ea-php55/root/usr/bin/php] You should consider adding ini_set to the disable_functions in the PHP configuration as this setting allows PHP scripts to override global security and performance settings for PHP scripts. Adding ini_set can break PHP scripts and commenting out any use of ini_set in such scripts is advised
    0
  • Infopro
    You should upgrade your PHP and add ini_set as suggested. You'll know what happened if something does break as the alert mentions and can go right back in and remove it if needed. :)
    0
  • chanklish
    You should upgrade your PHP and add ini_set as suggested. You'll know what happened if something does break as the alert mentions and can go right back in and remove it if needed. :)

    i change the php version in the phpmanager in software and now my website give me the following error - i set it back as it was but im still screwed .. what can i do ?
    The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@example.com[/EMAIL] 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.
    0
  • chanklish
    i think i fixed it .. now the https version takes me to Forbidden You don't have permission to access /cgi-bin/ on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. but ive never had a https for the site .. i think i will redirect it to http
    0
  • Infopro
    Have you restarted Apache? WebHost Manager "Restart Services "HTTP Server (Apache)
    0
  • chanklish
    Have you restarted Apache? WebHost Manager "Restart Services "HTTP Server (Apache)

    website is now working on http side normally im trying to redirect the https to the working http .. try the redirects in the cpanel functions and added the following to the htaccess but it doesnt work ..any advise ? [PHP]# Redirect HTTPS to HTTP RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301][/PHP]
    0
  • chanklish
    should i start a new thread ?!
    0
  • Infopro
    New issue, new thread is best. On the topic of redirecting HTTPS to HTTP, there are plenty of existing threads you might find useful already posted.
    0

Please sign in to leave a comment.