Guys, I am just practicing in web development. I need to deploy a laravel project on infinity hosting.
So, here are some facts: My website URL is: http://qr-rescue.epizy.com/ What I’m seeing is: 500 HTTP Error
*What I did: copied the whole folder (all together with node_moduls and vendor folders) of a project to hosting
Now it looks like this:
as you can see there are 2 folders in root (empty htdocs and main folder of my site with everything in it)
Can’t figure out, why I keep getting 500. When I use index.php with “Hello” message - is everything ok, I see this message.
Have you any ideas what to examine first? env file?
problem was: didn’t perform composer update
Now I can see the website, but with some new problems such as no pic at start site, no login/register pages.
thanks. But as for not working login and register + no welcome picture, what should I check?
I do not believe that this hosting can’t handle laravel project, especially, when there are only 3 small files of code.
Three small files of code and MASSIVE framework which was definitely not intended for use with regular web hosting.
I see you’re not using my recommended .htaccess snippet, and appear to have butchered Laravel’s directory structure to make your website work. Next to the fact that this is a huge security problem (seriously, you should update any passwords currently configured in your application), this is a rabbit hole to fix.
I had this discussion a few weeks ago with someone else who had trouble running Laravel. Maybe some of the information there can help you too?
Thank you one more time. Editing .htaccess helped to fix all the bugs )) Login/Register is functional and the picture is available, but when a user tries to login or register or forgot password I get 500 server error… Is that .env config? .htaccess? Cause I can see all data in DB
(PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'epiz_25827935'@'192.148.1.34' (using password: NO) at /home/vol7_7/epizy.com/epiz_24817925/qr-rescue.epizy.com/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)
[stacktrace]
Oh God that can’t be true, now I have a blank screen instead of homepage… I didn’t do anything…
I just checked a vanilla Laravel installation. It’s less than 5000 inodes, including vendor folder. So you’re not uploading “just the framework”.
However, I do not upload the node_modules folder to the account. I compile the CSS and Javascript off-site, and only upload the generated files. A node_modules folder quickly grows to tens of thousands of files and hundred of MBs of disk space, which is a lot for a folder which Laravel doesn’t use at all.
All right, I think this is the last try, cause it’s getting embarrassing for me.
I’ve managed to get rid of proc_open error, solved problem with space (deleted node_modules folder), corrected env file.
The last thing I get such an error:
Facade\Ignition\Exceptions\ViewException
include(/home/vol7_7/epizy.com/epiz_24817925/qr-rescue.epizy.com/htdocs/app/http/phpqrcode/qrlib.php): failed to open stream: No such file or directory (View: /home/vol7_7/epizy.com/epiz_24817925/qr-rescue.epizy.com/htdocs/resources/views/home.blade.php)
Found in Internet solution (do LOCAL composer install/update/dump-autoload and then upload changed files/folder in project to host) didn’t help at all.
If this worked on your own computer before, am I correct to assume you’re building the site on a Windows or MacOS computer?
On Windows and MacOS, file names are not case sensitive. But our servers, like almost all hosting servers, run Linux, which does have case sensitive file names. So the folders http and Http are actually different.