Problem installing 6 htaccess

imethods - July 20, 2008 - 23:51

Hi Forum

My ISP is running windows servers with IIS and uses Helm to manage my domains running PHP5, MySQL5 and with options for aspx and coldfusion.

Everything works fine throughout the install until I try to view the index.php in the root.

With the .htaccess file present I get the following error message post install.

IISPassword
The page cannot be displayed
There is a problem with the page youare trying to reach and it cannot be displayed. It is most likely that configuration files for this url are corrupted.

Please try the following:

* Click the Refresh button, or try again later.
* Open the home page, and then look for links to the information you want.
* If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the home page.

HTTP Error 500
IISPassword for Internet Information Services » IISPassword Info

With .htaccess removed the following error occurs

Access denied

* warning: array_fill() [function.array-fill]: Number of elements must be positive in C:\Domains\mydomain.co.za\wwwroot\includes\database.inc on line 240.
* warning: implode() [function.implode]: Bad arguments. in C:\Domains\mydomain.co.za\wwwroot\includes\database.inc on line 240.
* warning: array_keys() [function.array-keys]: The first argument should be an array in C:\Domains\mydomain.co.za\wwwroot\modules\user\user.module on line 500.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM drupalrole r INNER JOIN drupalpermission p ON p.rid = r.rid WHERE r.rid IN () in C:\Domains\mydomain.co.za\wwwroot\modules\user\user.module on line 500.
* warning: array_keys() [function.array-keys]: The first argument should be an array in C:\Domains\mydomain.co.za\wwwroot\modules\block\block.module on line 406.
* warning: array_fill() [function.array-fill]: Number of elements must be positive in C:\Domains\mydomain.co.za\wwwroot\includes\database.inc on line 240.
* warning: implode() [function.implode]: Bad arguments. in C:\Domains\mydomain.co.za\wwwroot\includes\database.inc on line 240.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Domains\mydomain.co.za\wwwroot\modules\block\block.module on line 407.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module' at line 1 query: SELECT DISTINCT b.* FROM drupalblocks b LEFT JOIN drupalblocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = '' AND b.status = 1 AND (r.rid IN () OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in C:\Domains\mydomain.co.za\wwwroot\modules\block\block.module on line 407.

You are not authorized to access this page.

Please advise what need to done to get this working.

Hi, I never try to install

wolfflow - July 21, 2008 - 12:42

Hi, I never try to install with IIS but maybe you will find in following links helpfull informations:

Setup Drupal on Windows XP Pro using IIS"
Using Clean URLs with IIS

Please feedback
Cheers

Share your experience with the Open Source Community it's not only a choice but a Life Philosophy !!!
Some interesting A New Tutorial Site

Very similar

AndyF - July 24, 2008 - 04:03

I get exactly the same error page if .htaccess is present. However it works for me once I delete .htaccess. Maybe that means there are two separate issues here?

Btw, there's also a .htaccess file in <root>/files and (I'm no expert but) it seems that it's created automatically (ie you can't permanently delete it), which is screwing things up for me. Something to look out for.

Btw2, it's IIS 6.0, but I don't know what extras might also be installed.

A.

Hi AndyF, I will advise

wolfflow - July 25, 2008 - 00:00

Hi AndyF,

I will advise you not to delete the .htaccess file from your drupal installation, as it is in root or in your /Drupal installation folder. It's very important that you have that as you risk security issue on your Drupal site and you will not have protected drupal system folders and themes and site installations. So take a look at my suggested link and ask your ISP provider for support and or when you install on local network you can check yourself security informations.

Cheers

Share your experience with the Open Source Community it's not only a choice but a Life Philosophy !!!
Some interesting A New Tutorial Site

Thanks, but unfortunately

AndyF - August 12, 2008 - 08:30

Thanks, but unfortunately with the host I have (not my choice!) they have an add-on running called IIS Password, which reads the .htaccess file in an attempt to be Apache compatible. Problem is, it seems it only knows how to parse the password bits of an Apache .htaccess file, and basically with the Drupal one it locks you out cause it doesn't understand it (if anyone knows otherwise, do elaborate). Either way, the host's running IIS, so I don't think the .htaccess file is actually affecting security anyway?

I'm going to move to an Apache server in a week or so anyway.

Thanks again,

Andy

 
 

Drupal is a registered trademark of Dries Buytaert.