When i load my application on the root route / it works normally on both local and on testing server. but when i deployed to production. the root route / does not work. But other route seems to work normally. for example, if i open google.com it just displays a blank page but when i open google.com/another it works fine. The application is hosted on digital ocean. What can be the possible cause?
I tried redeploying to see it the was an issue with the deployment, still nothing. I checked the htaccess file, everything looks fine.
Related
I have deployed my Symfony 5 app on live server (production). I left my .env file with DEV variables.
Firstly my my homepage index.php was showing 404 URL not found on the server, so I had to execute ln -s public_src public and since that my homepage was showing fine.
However I required and implemented a NelmioApiDocBundle via composer and now my API doc route /api/doc is working only on localhost, on live server (production) the browser says 404 URL not found on the server.
How to fix it? Does it need another symlink?
You need to set the .htaccess file under public folder.
I have a Laravel 5.2 project working fine locally, after uploading to a live server I have a 'laravel' folder in my root directory and public folder under 'public_html/testsite'
My 'index.php' points to the correct '/bootstrap/autoload.php' and '/bootstrap/app.php'
Upon going to my 'url/testsite/' I get a blank page only (was working fine L5.0) firebug shows : 500 Internal Server Error with HTML : Reload the page to get source for...
index.php is loading by testing with die() before any 'require' methods, but after 'require... autoload.php' the die() is not working, however it is successfully calling autoload.php as a die() works within this file.
I'm not sure if this is a .htaccess issue, or maybe I had to set something up in cPanel last time for this folder (I can't remember). I'd appreciate any help!
Please note this Laravel project sits as a test site in a /testsite/ folder along with my current live site files.
Amongst changing many things at once, I appeared to have solved this by setting up a subdomain within cPanel and setting this to my testsite/ folder.
This was on a server with my current website live under public_html/ and setting up a test laravel app(website) with under public_html/testsite/ to work as an independent site for testing.
The typical "change permissions on storage folder" suggested elsewhere on stackoverflow did not solve my issue so hopefully this helps someone in the same boat.
I am using Laravel 5.1 on WAMP Server 2.5.
And I have this error while working on pagination.
404 Not Found
While I run my site locally using this php artisan serve
php artisan serve --port=212
I run to my site index url http://localhost:212/displays.
The pagination works fine, its pagination link work fine on every page http://localhost:212/displays?page=2.
But when I run it manualy without php artisan serve (http://localhost/bookstore/public/displays), the pagination link goes wrong. The pagination link originally printout http://localhost/bookstore/public/displays/?page=2, but it automatically change into http://localhost/displays?page=2 when the page fully rendered.
Is anyone have same problem like me? Glad if any of you could help.
This is likely because you're meant to set the web root on your server to the public folder (and Laravel assumes that that's the case).
As it is, your web root is set to somewhere two levels above the public folder, so when Laravel tries to redirect to /displays?page=2 it tries to send you to the wrong folder.
It worked perfectly on local. But in server only the home page was worked well.Other Url's shows Not found error. I set the apache document root to the Laravel public folder. What is the solution?
If i add index.php in after the domain name,then the corresponding page will shown. But then then the css and js are broken.
I got the solution. It's the permission problem on server. I changed the permission of the folder. Now it's work fine.
I have a web application hosted on AWS on Ubuntu server. I have Apache and mysql running on it. It was working perfectly fine till yesterday, All of sudden when I try to access phpmyadmin using my domain name (like http://example.com/phpmyadmin) it gives 404 error.
If I simply type http://example.com on the browser it opens the home page, but if I click on any of the link of my site which refer to different directory, gives the same error.
I have checked the 000-default file under /etc/apache2/sites-enable. My Document Root is set perfectly fine, and directory has Override option to All.
Can any one have any idea then please help me.
Thanks