Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Bloomanity's avatar

Shared Hosting with Options

I'd like help with find a shared hosting that has:

  • cpanel
  • email
  • ssh access
  • laravel friendly (I'd like to change the document root for the main domain)
  • to be able to clone a repo
  • php 7.0+
0 likes
5 replies
Connor-S-Parks's avatar

Any particular reason you're choosing shared hosting over an unmanaged vps?

joaomantovani's avatar

I use the hostgator

  • Cpanel - Yes, you'll have all the access to the cpanel like the others shared host.
  • Email - Yes, you'll have unlimited emails like [email protected].
  • SSH access - Yes, you can turn on/turn off the SSH access in the cpanel.
  • Clone repo - Yes, the git are integrated by default.
  • PHP 7.0+ - Yes, you can change the php version.
  • Laravel friendly - It's not totally friendly, buy you can create a symlink from the hostgator public_html to your laravel public folder.

If you choose the hostgator, you'll need to install the composer, but it's very easy, I've a tutorial here, but is in portuguese (pt-br), I think you can find one in the english forum, and if not, I can help you!

Good luck.

1 like
Bloomanity's avatar

@Connor-S-Parks I have some clients which have problems when using outlook with zoho.com/mail for example (which I use as a free alternative to google apps)

1 like
Bloomanity's avatar

@joaomantovani how do you change the PHP version? When I access the server via SSH I have 5.4, and in CPanel I can only set what version should handle .php files

joaomantovani's avatar
Level 2

@Bloomanity I've the option to install/change in the cpanel in

Advanced > PHP configuration

Image of hostgator cpanel

Log in your server by SSH and check your php version

php -v  

You should see something like that:

PHP 5.6.14 (cli) (built: Dec  5 2015 12:18:14) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.12, Copyright (c) 2002-2015, by ionCube Ltd.
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies[

Edit your .bashrc file in /home/your-user-cpanel/.bashrc and insert the below lines:

alias php='/opt/php70/bin/php'
export PATH="/opt/php70/bin:$PATH"

If the file doest not exist, create the file /home/your-user-cpanel/.bashrc and put the code below:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# User specific aliases and function
alias php='/opt/php70/bin/php'
export PATH="/opt/php70/bin:$PATH"

Load the new changes with the command source:

source /home/seudominio/.bashrc

And it's done!

Source in pt-br

Another option NOT tested by me, but it's in the brazilian hostgator forum is to create a htaccess to do that:

Edit your .htaccess to enable 7.0

# Enable PHP 7.0
AddHandler application/x-httpd-php70 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php70/lib
</IfModule>
1 like

Please or to participate in this conversation.