Skip to content

Instantly share code, notes, and snippets.

@allysonsouza
Created May 24, 2016 13:27
Show Gist options
  • Select an option

  • Save allysonsouza/cc5847a21fbf7c36ca61c68c08d29e19 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Thanks for this ;)

@pattyayers
Copy link
Copy Markdown

Obrigado!

@cordobahosting
Copy link
Copy Markdown

Gracias!

@Nodws
Copy link
Copy Markdown

Nodws commented Jun 8, 2018

Finally!

@parthpabari
Copy link
Copy Markdown

What if we want to use different version from CLI ?

@allysonsouza
Copy link
Copy Markdown
Author

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

@marionava
Copy link
Copy Markdown

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