On Fedora Core 8, a test install on MySQL 5.0.45-6 fails after addition of all tables to DB with following error:

An HTTP error 501 occurred.
http://localhost/install.php?locale=en&profile=default&id=1&op=do

Apache is version 2.2.6-3 and PHP is 5.2.4-3. phpinfo() show mysqli support available. Since this is just a test, I chmod'd everything 777 under the Drupal/Web root, but no change.

Any thoughts, anyone?

Thanks!

Jim

Comments

Slaven’s picture

I have

Apache version 1.3.37 (Unix)
PHP version 5.0.5
MySQL version 4.1.22-standard-log

on Siteground shared hosting

and received errors during database setup. Could install, but now have this warnings behind footer:

Warning: Couldn't fetch mysqli in /home/.../public_html/drupal/includes/database.mysqli.inc on line 323

Warning: Couldn't fetch mysqli in /home/.../public_html/drupal/includes/database.mysqli.inc on line 108

Warning: Couldn't fetch mysqli in /home/.../public_html/drupal/includes/database.mysqli.inc on line 122

multiplied several times on each Drupal node...

andyscotuk’s picture

same problem here.

Another guy said he had a solution here http://drupal.org/node/221949 but it didn't work for me.

I use Siteground as well so maybe its something to do with them or permissions.

andyscotuk’s picture

I fixed this - its an issue with PHP 5.0.5 incompatibility with mysql see

http://drupal.org/node/203614

for background, and

http://drupal.org/node/221949

for solution.

geste’s picture

In error log, I found:

modsec_debug.log:[14/Feb/2008:03:28:19 --0800] [myhost/sid#b930e3f0][rid#b97ddde0][/install.php][1] Access denied with code 501 (phase 2). Match of "rx (?:^(?:application\\/x-www-form-urlencoded(?:;(?:\\s?charset\\s?=\\s?[\\w\\d\\-]{1,18})?)??$|multipart/form-data;)|text/xml)" against "REQUEST_HEADERS:Content-Type" required. [id "960010"] [msg "Request content type is not allowed by policy"] [severity "WARNING"]

So for the moment, since this is a test system with no real exposure, I modified /etc/httpd/conf.d/mod_security.conf by commenting out:

Include modsecurity.d/modsecurity_crs_30_http_policy.conf

So I have Drupal 6 installed, but I should probably try to decode this a bit further.