Skip to content

Instantly share code, notes, and snippets.

@allysonsouza
Created May 24, 2016 13:27
Show Gist options
  • Save allysonsouza/cc5847a21fbf7c36ca61c68c08d29e19 to your computer and use it in GitHub Desktop.
Save allysonsouza/cc5847a21fbf7c36ca61c68c08d29e19 to your computer and use it in GitHub Desktop.
Enabling PHP 7 on Hostgator trough htaccess
# Habilitar o PHP 7.0
AddHandler application/x-httpd-php70 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php70/lib
</IfModule>
@jemoreto
Copy link

Thanks for this ;)

@pattyayers
Copy link

Obrigado!

@cordobahosting
Copy link

Gracias!

@Nodws
Copy link

Nodws commented Jun 8, 2018

Finally!

@parthpabari
Copy link

What if we want to use different version from CLI ?

@allysonsouza
Copy link
Author

Hi @parthpabari, sorry, but I have no idea, it's a long time since I used Hostgator last time

@marionava
Copy link

Hi @allysonsouza do you know how to enable php 7.2 on Hostgator via .htaccess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment