problems with the routes in server with iis - php

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?

Related

Laravel URL rewrite Error

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

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.

Not able to configure virtual directory in iis

I have instlled wordpress in server and i've created virtual directories.In server it is working fine.
Here is my problem,i want to create virtual directories in wordpress in windows system with IIS.But i'm not able to do that.When i'm trying to access that virtual directory i'm getting error message like below:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
I did same thing in IIS what i have done in server.
Pls help me out.

Drupal 7 on hosted IIS 7

I have a annoying problem with my hosted domain on iis. I installed a drupal 7 instance in a subdirectory of my webspace.
When i access mydomain.com/drupal I get an 500 Internal Server Error: "The page cannot be displayed because an internal server error has occurred." nothing more, nothing less.
When i access mydomain.com/drupal/index.php the site works fine except the /drupal?q= syntax which is not rewritten properly (index.php?q= works fine).
I hoped if i transfer my installation to my wwwroot the problem would vanish but instead less works. Now I can't even access mydomain.com/drupal/index.php (resulting in 500 aswell).
Since the iis is hosted by my internet provider i can't configure the Settings nor can I access server logs.
I tried playing with web.config including httpErros errorMode=Detailed" passthrough and other stuff but all I get is that damn 500 Internal Server Error with NO Information.
If the web.config is invalid xml syntax I get a proper Error page reporting that the syntax is incorrect, so it seems the web.config is parsed but somehow ignored.
Do you have any ideas that could help my case?
Thanks
Edit: I forgot to mention i tried setting access rights to execute as well as read and write for web.config and index.php but didn't change a bit.
Seems the web.config shipping with Drupal 7 caused the problems.
I found this article and used the proposed web.config as stated there and now the homepage works fine.
http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/install-drupal-on-iis

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