Laravel URL rewrite Error - php

Actually I am deploying my laravel 5 Application on Client Server.
My client create space for me in such type of path.
var/www/html/abcproject
Now I have uploaded my all laravel 5 file on abcproject directory.
My issue is that , my home page is working fine but my internal pages
are giving Not Found Error.
Suppose when I try to logged in, throwing this error.
Not Found
The requested URL /abcproject/login was not found on this server.
How to resolve that error?

You need to point the webroot to var/www/html/abcproject/public

Related

Laravel on subdomain inner pages don't route

I have a Laravel installation installed on https://dev.example.com for the purpose of staging and development before I move it to https://www.example.com.
The server is running NGINX and the Laravel installation worked just fine on my local machine. All links routed correctly and there were no problems.
Now on this subdomain, any inner webpage I try and access is coming back as a 404 error, even if Laravel was the one that generated the URL.
For example:
"https://dev.example.com" will load just fine but "https://dev.example.com/contact" or "https://dev.exmaple.com/testimonials" will return a 404 error even if Laravel was in charge of the URL generation.
Important to add that it seems the 404 error is coming from NGINX and not Laravel
When I look at the NGINx logs I see
" "/var/www/html/public/testimonials" failed (2: No such file or directory)"
Can anyone help?

problems with the routes in server with iis

Develop a project in laravel and upload it to a server with IIS and when I try to use the paths that I defined I get error 400, but not the error 400 of laravel if no other, searching the internet I discovered that it is because of a problem with the configuration , missing this line of code
AllowOverride All
Normally this line is included when creating a virtual server on my pc, but in ISS I do not know how to solve it
http://186.24.32.115/web-spi/public - if I enter this url I load the web page well, but if I use the menu, I will leave error 400.
But if I do it this way http://186.24.32.115/web-spi/public/index.php I have no problem.
How do I make my routes work without using the index.php?

Laravel 5.2 - Staging to Live Server : 500 Internal Server Error

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.

Symfony2 : error 403 and 404 on prod envrionment

I am facing an issue with Symfony2. I have created a website, it works fine locally.
I can access localhost/symfony/web to see my site on prod. (it doesn't work if I go to app.php, I get redirected to the wamp index page, but it seems to be normal on the Symfony version I use - 2.2.1 )
Online I have a 404 error when I try to access http://www.mywebsite.com/web
If I try to go to any other page (like www.mywebsite.com), I get a 403 error.
But I can go to http://www.mywebsite.com/web/app_dev.php or http://www.mywebsite.com/web/config.php without error.
I am using a shared server (1&1 starter).
I don't see anything in the logs. I have cleared the caches (both dev and prod), but it doesn't change anything.
I am lost... can anyone help me?
Thanks,

CodeIgniter giving 404 on a webserver

I loaded my codeigniter site onto my actual webserver (instead of just local). I am getting a 404 page not found even from the root domain. On my localhost it works fine.
Try going to searchnwork.com and it gives the Codeigniter 404. How can I start debugging this and seeing what page CodeIgniter thinks it's loading?
Go to config file and check the base_url setting
or add this
$config['base_url']='http://searchnwork.com';
Look into /application/logs/ folder (this catalog must be writable to logs could be written). Check if you have model and controllers names in lowercase - it's common problem especially if you've moved site from Windows server.
do you have access to the PHP log and Apache log - check if its firing errors on both ends.

Categories