0

I'm developing a laravel 5.1 application which is working absolutely fine on my localhost. But when I deploy it to GoDaddy's shared hosting, it gives a blank white page on opening the domain.

I have followed this tutorial to upload to the server. http://www.nickmarriotti.com/blog/deploying-laravel-5-project-to-godaddy

How can I resolve this error problem? Any help will be appreciated.

Thanks

Ahmed Raza
  • 294
  • 4
  • 18
  • Look at my answer on this. Possible duplicate : http://stackoverflow.com/questions/34174779/deploy-laravel-5-1-on-a-cloud-hosting/34175815#34175815 – Vishal Sharma Jan 19 '16 at 04:54
  • What are your logs showing? Both the Laravel log and your server logs. – James Jan 19 '16 at 08:31
  • Also, try these steps: `php artisan cache:clear`, then `chmod -R 777 storage bootstrap`, and then `composer dump-autoload`. I can see you have already done the storage folder, however you also need to do the bootstrap folder in most cases also. – James Jan 19 '16 at 08:32

2 Answers2

1

This is one of the most common installation errors caused by invalid permissions. Please login via ssh to your server and run this command to fix it.

chmod -R 777 LARAVEL/storage

Here LARAVEL is the path to your laravel installation in Laravel 5.*, while as for Laravel 4.*, LARAVEL will be path/to/laravel/app, as storage resides inside app directory in Laravel 4.* installations.

Ehs4n
  • 762
  • 1
  • 8
  • 24
1

Kindly check the file permissions. Generally this issue comes when file permissions are not as it should be. Better call the GoDaddy customer care and they will run a quick check and will tell you if there is any problem with file permissions.

Also, GoDaddy Server, I mean CPanel by default supports a lower PHP Version. Where as New versions of laravel requires PHP >= 5.5.9. Kindly tell GoDaddy guys to upgrade your Server PHP version.

Follow these two steps and you should be fine.

Unbreakable
  • 7,776
  • 24
  • 90
  • 171