String on a Finger


Things I want to remember and share with the world



PHP CLI 5.3 on Godaddy Shared Hosting when SSHed in

Posted by Jason Hardin on June 9, 2014

I was trying to setup Silex on my GoDaddy shared hosting account today. I ran into a problem that the default configuration for an SSH user in GoDaddy’s shared hosting points to PHP 4 for CLI. After a little digging I found PHP5, but that was 5.2. Turns would there is a php 5.3 version on the server. The location is /usr/local/php5_3/bin/php. I ended up creating a .bashrc file and alias php=”/usr/local/php5_3/bin/php” to resolve the issues for me. Now I can install PHP composer without any issues.

Read More: PHP CLI 5.3 on Godaddy Shared Hosting when SSHed in