Laravel wsod (white screen of death) on godaddy hosting - php

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

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.

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.

Related

Unable to install TastyIgniter

I have downloaded TastyIgniter from GitHub and running it in localhost (Windows with WAMP and PHP version 7.1.9). In the last step of installation, I am getting errors that "Downloaded files from server are corrupted" and "Missing vendor files". May I know what is causing these errors and how I can run it without bugs in my localhost.
Run composer update command in the root of your project.
If composer is not installed. Download it from this link official website.
it seems like they hardcoded something.
when you unzip the setup-master folder, keep it as it is and don't rename or move its content.
start your installation by calling:
yoursite/setup-master/setup.php
this worked for me.
I tried to run the installation previously by unzipping the files directly in my html folder and tried several fixes but no success.
after a successful installation you need to forward in your apache config / .htaccess file to the subfolder
In order to do so, don't forget to perform the Post-Installation steps mentioned here:
https://tastyigniter.com/docs/master/installation
I finished by aborting tastyigniter. After a successful installation and theme activation, the application worked fine then "suddenly" it throws an exception that the newsletter component can't be found. All suggested helps on the dev forum didn't help. Even after reinstalling the application it comes to the same error.
Apparently you won't come over a "professional" installation support by the developer ($$$)
Thats pretty much my experience, I tried to install in different servers and environments running into several issues, especially it seems not to be made for anything other but specific development environment. Trying to secure installation with SSL already is an issue, that is very standard but poorly documented with this project. Having an example of how configuration files nginx go! Pay or have an experienced server admin do the trial and error. Integrated update mechanism, get your staging server and help to code. It is ok, just would be more honest to mention upfront, that running that app in production environment requieres some serious server administration skills and is nothing like installing and maintaining a wordpress or any other mainstream script.

How to install Laravel on a web server using using softaculous in CPanel

I want to install Laravel on my web server using softaculous available in my Cpanel but I get the following errors:
The following errors were found :
Could not write the Configuration File app.php
Could not write the Configuration File composer.json.
What might I have done wrong?
You are trying to update some files within your laravel application. The problem is that you don't have the right to do so.
What you could do is:
1. Check the file permissions and correct them.
2. Connect to your web server over ssh and try to install it.

(Laravel) SSH install VS upload folder in server

Are there any differences between using ssh to install laravel
and
just upload my laravel project folder which works on localhost
Since I just upload my laravel project to server but appear Error500
So I want to follow the below tutorial to install a new laravel project with ssh and upload my project to replace it.
https://www.youtube.com/watch?v=DsgWKuGk3yM
You must give write permissions to the storage and bootstrap/cache folder. If the problem still occurs, check error logs and post the error here.
Regarding your initial question which isn't very clear at all, wether there is a difference between uploading your project files and ssh-ing into your VPS or your VM: what is your working environment, and I assume you are uploading these files somewhere else?
There are 2 situations: you are just getting started, and in this case I recommend you follow the official docs, not a YouTube video, and have a local instance where you can work and synchronise files easily between the guest and the host. I would recommend having a look over Homestead or Valet if you are on OS X or macOS. The documentation is very clear and concise.
The second one: you want to deploy your app, in this case a hosting management tool would help you out with this process (of course there is a much more to do with the configuration), as it's pretty much a chore to setup every requirement and dependency for your server, but that's an alternative too if you wish.

Laravel application displays only white page on live server

I have made an application using Laravel 4.2 . It works well on Wamp, But when I uploaded it onto a shared host, it only displayed a blank page. I followed all the advice given in the following links but it still isn't working.
Uploading Laravel Project onto Web Server
Avoid public folder of laravel and open directly the root in web server
I just realized that laravel 4.2 requires php 5.4 or greater, but my host uses php 5.3.28. Can this be the cause of the problem? if not, then what is the reason I get only blank page?
Yes - using Laravel without the required version of PHP will absolutely give you problems. You'll have to either upgrade your webserver or ask your host if it is possible for them to upgrade or enable a newer version of PHP for you.
Regrettably, when theres an error in PHP code there's only a blank page.
Try putting this in there
error_reporting(E_ALL);
Give permissions to storage folder. chmod -R 0777 app/storage
run command
php artisan key:generate
problem solved in my case

Running yii application on centos

We recentlly shifted our complete yii web application to vps server with php 5.3 and apache 2.2.16 and os - centos.
The problem is complete webapp is not working now, before it was working fine on sharedhosting.
http://212.1.213.180/yii/requirements/ You can check the yii requirements of my app
when I tried running I got some protected/runtime invalid error then I changed permission of runtime and assets to 777 then now am getting
Fatal error: Cannot redeclare class CAttributeCollection in /home/wwwmobit/public_html/yii/framework/collections/CAttributeCollection.php on line 32
what could be the problem??
I checked mod_rewrite is enable.
you can check complete phpinfo of my site here
http://212.1.213.180/info.php
Please resolve my problem as soon as possible.
Do I need to edit framework file and make it to include_once?
thanks for the reply I found solution my self with couple of yii guys in live chat.
The solution is to uninstall apc by pecl uninstall apc
then change permission of yii folder and assets and runtime folder in project.
Thats it.

Categories