Enable clean urls for drupal

In your apache config file (httpd.conf) add the following :

LoadModule rewrite_module modules/mod_rewrite.so

<Directory "path_to_your_drupal_dir">
 AllowOverride All
 RewriteEngine on
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$  index.php?q=$1 [L,QSA]

Test your configuration by accessing your_host/user/login (instead of ?q=user/login).


Deprecated: Function ereg() is deprecated in file.inc

While installing drupal 6.16, you have a deprecated ereg() method. In fact, in PHP 5.3, this method has been renamed into mb_ereg(). To fix this find :

elseif ($depth >= $min_depth && ereg($mask, $file)) {

and replace it like this :

elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {

That’s it ! You can now access the install.php.