Dezinerfolio

unable to install as it says Apache mod_rewrite is disabled when it's not.

I am dying to use this gallery (version 2.004), but just can't get past this part...

I've got the .htaccess file uploaded into the www directory and set the config file to look at the .htaccess file.  mod_rewrite is also enabled on the server.

Please, please help!

Here's the conf file data:

----

<VirtualHost *>
    ServerAdmin info@ubisan.com
    ServerName gallery.ubisanmanagement.com
    DocumentRoot /customer/ubisanmanagement/gallery.ubisanmanagement.com/www/
    ErrorLog /var/log/customer/ubisanmanagement/gallery.ubisanmanagement.com/error
    CustomLog /var/log/customer/ubisanmanagement/gallery.ubisanmanagement.com/access c$
</VirtualHost>

<Directory /customer/ubisanmanagement/gallery.ubisanmanagement.com/www/>
    Options +FollowSymLinks
    AddType application/x-httpd-php .html
    AllowOverride All
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>
---

Status: 
New

Comments

Anonymous's picture

Thankss for the help - the above solution got me one step closer to the install.
Even though I subsequently got this error:
Apache mod_rewrite is disabled!.
Please enable the rewrite module in your apache server.

Anonymous
Tue, 02/17/2009 - 06:40
Anonymous's picture

I think function apache_get_modules is disabled on your server, so this code can't check mod_rewrite is enabled or not. So I try to fix it as follows:
Open file install.php and find:
code:
if(array_search('mod_rewrite',apache_get_modules())){
$checks[] = array('Apache rewrite module is enabled.',true,'');
}else{
$checks[] = array('Apache mod_rewrite is disabled!.',false,'Please enable the rewrite module in your apache server.
References Drupal Clean URLs guide, Apache mod_rewrite guide');
}

Replace with:
if ( function_exists('apache_get_modules') ){
if(array_search('mod_rewrite',get_modules())){
$checks[] = array('Apache rewrite module is enabled.',true,'');
}else{
$checks[] = array('Apache mod_rewrite is disabled!.',false,'Please enable the rewrite module in your apache server.
References Drupal Clean URLs guide, Apache mod_rewrite guide');
}
}else{
ob_start();
phpinfo(8);
$phpinfo = ob_get_clean();
if ( false !== strpos($phpinfo, mod_rewrite) ){
$checks[] = array('Apache rewrite module is enabled.',true,'');
}else{
$checks[] = array('Apache mod_rewrite is disabled!.',false,'Please enable the rewrite module in your apache server.
References Drupal Clean URLs guide, Apache mod_rewrite guide');
}
}
To admin: I think you should use this :).
Sorry for my poor english :P.

Anonymous
Wed, 02/04/2009 - 20:48

Post new comment