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]
</Directory>

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

Advertisements

EasyPHP not reachable from the outside world

First of all, let’s just say EasyPHP is not designed to be used as a production server (it’s rather used as a developement server to test your pages). But sometimes, it can be useful to reach it anyway.

In apache config file, change

Listen 127.0.0.1

or maybe

Listen 127.0.0.1:8080

into

Listen yourIPaddrress:yourPort

This allow me to test Drupal on my netbook in the sun using http://yourIPaddrress:yourPort 😀

If you want to access your web pages through the internet, open a port (yourPort) in your firewall and/or router. This can be useful for a quick demonstration.