Exciting things

GoDaddy shared hosting with Laravel 5 and Git

go-daddylaravel

I’ve decided to develop a quick start up idea during the weekend using Laravel 5. Then, I deployed it to my GoDaddy shared hosting. During the deployment process, I’ve found some issues with GoDaddy shared hosting and finally, I’ve solved it :).  Below is these experience and I hope it’s useful to everyone.

GoDaddy shared hosting and Git

I want to deploy the final code via Git pull through the SSH to the GoDaddy shared hosting. However, seems the OpenSSL version on the GoDaddy shared hosting is a bit old, it always shows the error: ‘error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm’ whenever I do any git command.

Thanks for this article,  I’ve fixed this by running git init and add remote repos to the git local. Then, running:

git config http.sslVerify "false"

to pass by the SSL verification.

Install and run composer on GoDaddy shared hosting

Answer: if you’re running PHP version 5.5+, then it should not be a problem. However, GoDaddy at the time I write this article only supports PHP 5.4. They have an issue when upgrading PHP version of the host. The upgrading only changes setting for php.ini for PHP 5.4 of Apache, but doesn’t change for php-cli.The PHP version of php-cli in my case is only 5.3.1.

So, the best way for now to run composer is: running composer update at your local. Zip the vendor folder, upload to GoDaddy shared hosting and unzip it.

Laravel issue with Socialite

As I am using Socialite module of Laravel for doing some OAuth integration, in the callback url – it’s always throw the error:

‘Call to undefined function GuzzleHttp\Handler\curl_reset()’

Following the article, I modified the code at: vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php to replace curl_reset by:

curl_setopt($resource, CURLOPT_HTTPGET, 1);
curl_setopt($resource, CURLOPT_POST, false);
and it helps to clear out the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *