Drupal 7 on hosted IIS 7 - php

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

Related

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?

Wordpress site won't load - 404 - File or directory not found

I copied a working Wordpress site from one server (Windows 2008 Server, IIS v7.0) to another (Windows 2008 r2 Server, IIS v7.5), configured exactly the same in respect to file permissions on all the directories on both sites and IIS configuration on both servers and I get a 404 when I attempt to load the site from the new server. I've tried several suggestions posted on the web without success. Nothing loads, I get the 404 error from everything, so it's not a permalink thing, it never gets that far. So what is the issue?
Answered my own question - turns out I fat-fingered the php directory in the path environment variable when I installed php v7.1.11, added an extra character. The site could not find the php installation hence the 404 error. Fixed the path, all works as expected.

PHP: Object not found error on hosted server

I have hosted my application within an internal server, and it gives the error
Object Not Found. Error 404
The problem exists only for the hosted application. Not when runs in the local machine.
Anyone know what's the issue here?
are you sure ?You have done the correct configuration settings .htaccess

phpBB 500 Internal Server Error and no log outputs

Good morning. I'm having a major issue with my phpBB installation.
I've transfered it to my computer to develop some plugins, so i'm running it on localhost, but, i've created a vHost with the exact same domain he is running online, so, i don't need to change the cookies configuration, and the database connection information is correct already.
Regard all of that, i'm getting a 500 internal server error, which displays no error on the screen nor the logs from apache and php.
I have error reporting on php as E_ALL also. What could be possible causing this, and what the solution might be?
Thanks in advance, Jorge Ferrari.
If you're getting nothing in the Apache / PHP error logs, then it's more likely to be a server configuration issue. I would suspect the problem is in a file called .htaccess in the phpBB folder. It can be used to customize the configuration in various ways, including things like setting up redirects and URL rewriting.
If the htaccess file tries to use an Apache feature which isn't available on the server, then it can generate a 500 error. You can test this by temporarily removing the file, and seeing if the website works at all (albeit possibly with some glitches).
If you've confirmed that it's the source of the problem, then ideally you'll need to enable the missing feature in the server's configuration (or possibly update the Apache installation). Alternatively, you can delete or comment-out the problematic bits of the htaccess file.
Either way, it sounds more like a webserver admin issue than programming. You might have more luck asking on the phpBB forums, or on a different Stack Exchange Q&A site (possibly Server Fault?).
Check whether you have Rewrite module enabled?(most of the this will be the reason)
In httpd.conf and uncomment
LoadModule rewrite_module modules/mod_rewrite.so
If you try to use module which is not loaded you will get 500 internal server error.
Check your modules used in .htaccess file and check httpd.conf whether used modules are loaded

CodeIgniter HTTP Error 500

When I try to access the website I get this error:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request
even after removing the htaccess file completely the website is still not working. NOTE: on localhost it's working fine.
Edit after comments:
I think I wasn't clear enough here's my problem in details:
I have a website written with PHP5 no framework or cms or anything and it work fine.
Then I start the admin section so I used CodeIgniter and rewrite the site.
Now I almost done with the programming so I uploaded a test version to the server in a subfolder to test it but the 500 error mentioned above appeared, my first thoughts were that it's a htaccess file problem so I try other htaccess files and finally removed it from the server, but the problem still there.
Now the only difference between my local server and the remote server is that locally i'm running PHP 5.3.5 and remotely it's PHP 5.2.14.
That's all the information that I can think of now.
Thanx in advance.
You likey have a missing PHP/Apache module hence the 500 error.
1: Check your logs within the root and the dir your running script in, else the directory above root/logs.
2: Create a file called phpinfo.php, in it put:
<?php phpinfo(); ?>
and run it.
3: Then compare the list of installed extensions shown in the output with the list of installed modules you have locally.
If your using WAMP, you click the tray icon, goto PHP->extentions and you can see all that are installed. Same for Apache.
boff
additionally:
A good start would to to make sure CURL and MBSTRING is on, however I don't use CAKE PHP....
I got same problem and added this line on top
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Categories