Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@jemoreto jemoreto commented Feb 10, 2017

Thanks for this ;)

@pattyayers

This comment has been minimized.

Copy link

@pattyayers pattyayers commented Jan 25, 2018

Obrigado!

@cordobahosting

This comment has been minimized.

Copy link

@cordobahosting cordobahosting commented Feb 7, 2018

Gracias!

@Nodws

This comment has been minimized.

Copy link

@Nodws Nodws commented Jun 8, 2018

Finally!

@parthpabari

This comment has been minimized.

Copy link

@parthpabari parthpabari commented Aug 21, 2018

What if we want to use different version from CLI ?

@allysonsouza

This comment has been minimized.

Copy link
Owner Author

@allysonsouza allysonsouza commented Jan 2, 2019

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

@marionava

This comment has been minimized.

Copy link

@marionava marionava commented Feb 2, 2020

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