Page 1 of 2
Hostgator commands-Solved
Posted: 02 Feb 2017, 02:44
by twilonc9
This command # php composer.phar install didn't work for me. I'm on Hostgator.
Everything else was smooth sailing. Do you know where I can get the command for Hostgator? Great tutorial!
Re: Hostgator commands
Posted: 02 Feb 2017, 10:38
by cptr13
Ok thanks for posting here.
First thing, I'd like to check what php version you're running.
Please log back in through putty by SSH (The CPanel-SSH) Section of the documention)
When you're logged in to putty (Black screen)
Type the following: php -v
That should tell you what php version you're using.
We need to make sure it's php 5.6
Re: Hostgator commands
Posted: 03 Feb 2017, 04:51
by twilonc9
Ha, that is the problem my php is 5.4 and it needs to be at 5.6. How do I update that?
Re: Hostgator commands
Posted: 03 Feb 2017, 10:51
by cptr13
Re: Hostgator commands
Posted: 03 Feb 2017, 10:52
by cptr13
If you have any websites or anything else running on your hostgator account, switching php versions MAY break them....back it up first !!!!
Re: Hostgator commands
Posted: 06 Feb 2017, 01:49
by twilonc9
Thank you so much. I already changed it on Hostgator side previously, what appears to be happening is the Putty is pulling the defaulted php in hostgator. My hostgator is running on 5.6 but Putty is not recognizing that. I need a way to bypass this...
Thank you.
Re: Hostgator commands
Posted: 06 Feb 2017, 10:42
by cptr13
Actually, I just ran into something similar a couple days ago. I think you need to try this.
Putty back into your opencats directory
Instead of the normal composer command, try this instead of the command listed in the documentation:
php56 composer.phar install
Let me know if that works. If not, I'll dig around.
Re: Hostgator commands
Posted: 07 Feb 2017, 00:22
by twilonc9
Regrettably, that didn't work either.

. It tells me command not found.
Thank you so much for helping me through this.
Re: Hostgator commands
Posted: 07 Feb 2017, 00:54
by cptr13
ok, try this.
You need to find the location of the php5.6
Should be in the opt dir
So do the following.
cd /opt
ls
This should give you a directory listing. HOPEFULLY, you should see more than one php directory. HOPEFULLY you will see a php directory and a php56 directory. If you see a php56 or php5.6, then you're good.
Now do the following.
cd back into your opencats directory
and try the following command
If the directory was php56:
/opt/php56/bin/php composer.phar install
If the directory was php5.6:
/opt/php5.6/bin/php composer.phar install
Try that and let us know if it works.
Re: Hostgator commands
Posted: 07 Feb 2017, 03:06
by twilonc9

Thank you so much. I was able to bypass with that command!!! Thank you again.
I am now getting an error For Step 2 of Database Connectivity
Cannot connect to database.
Access denied for user '�twilsonc_OTJS'@'localhost' (using password: YES)
One or more tests failed. Please correct the errors and try again.
What am I doing wrong?