Laravel linode deployment 500:server error - php

Okay I know I need to be checking logs but I don't know which ones so that will be start.
I made a blog via laravel and I'm trying to host it on linode. Its using Linux Ngnix mysql laravel. Already gave /storage and /bootstrap/cache permissions so I don't think its that. Where should I start?

Related

Trying run working Laravel project on my PC via XAMPP

I have a whole project with database, everything is working here.
Project with database
I would like to run website so I can see changes I have made.
Im using XAMPP. My configs for VirtualHost hosts and http-vghosts.conf
I have tried this https://youtu.be/iXYCnYRalaw?t=2m13s ->> from [2:13] to [4:22]
using XAMPP, but still cant run it.
Can you give me any advice or steps how to make website run on my PC? [ofcourse just for me (VirtualHost)].
Editor using: Atom
My PC spec
If running laravel appliation inside XAMPP htdocs folder is really necessary, then could you provide some kind of error, simply telling "it doesn't work" doesn't help at all.
One thing you can try is to open command prompt inside laravel folder and run
php artisan serve
This will open local server that runs current project in:
http://127.0.0.1:8000
Also, checking laravel minimum requirements is something you should check out. 5.5 requires PHP 7 and you didnt tell what XAMPP version you are running.

(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 wsod (white screen of death) on godaddy hosting

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.

Run Laravel on existing Apache server

I have a DigitalOcean server running Ubuntu 14.04. I'm using this as a host for my web-development projects.
Now I want to start using Laravel for a project of mine, but I have a question about this.
In the /var/www/html folder of Ubuntu I created a folder, let's say, "project". In this folder I installed Laravel using this tutorial. Now everything is setup I want to run Laravel so I can test it and start developing on it.
When I run the command php artisan serve from within the "project"-folder it says "running on http://localhost:8000". So it's working.
But how do I access it? When I go to http://example.com/project it just shows me the files in that folder.
So it's running on the localhost on my server. Does that mean that it is external-accesible (the url above) or how does this work? (I guess the port is also different, 8000 instead of the default 80 for Apache)
I hope the question is clear and someone can help me out.
I have a Laravel project up and running on Digital Ocean with the Ubuntu 14.04 x64 vmlinuz-3.13.0-24-generic (1221) kernal.
I don't think you should be using php artisan serve for this purpose, as that is more for your local computer if you would like to preview your webpage if you don't want to use Apache.
To get set up, I used the excellent below instructions that were incredibly helpful. As you can see, there are many steps that you should carefully follow to get things up and running.
https://github.com/susanBuck/dwa15-fall2016-notes/blob/master/01_Servers_and_Git/07_Deploy_to_Digital_Ocean.md
Let me know if that helps you, and feel free to follow up with more questions if you get stuck on a step.

Setup existing Yii project on xampp linux

I need to edit an existing yii app but got no idea how to setup in xampp.
I downloaded everything from the server and moved the folders to /opt/lampp/htdocs
But then i got no idea how to get the application running.
When i try
/localhost/yiidirectory
It shows me the file structure so the app isn't executing.
Can you give me some advise to accelerate the problem solving ?
Since windows 7 I believe you need to use:
http://127.0.0.1/yiidirectory
If that doesn't work then check your xampp setup:
http://www.yiiframework.com/wiki/100/yii-and-xampp-server-on-windows/
The DNS resolver just hands back localhost so it never resolves it for the app/browser.

Categories