How to install Drupal with PostgreSQL on Windows 7

So you want to see this?

Drupal database type





No problem, just follow my instructions:

  1. Download the latest version of Drupal and extract into c:\dev\drupal
  2. Download and install Postgres
  3. Download EasyPHP and install in c:\dev
  4. Once installed, double click on EasyPHP task menu icon and stop Apache and MySQL
  5. Add the following to your PATH environment variable: C:\Program Files\PostgreSQL\9.4\lib; (or change the path if thats not where you installed Postgres)
  6. Edit your php.ini file (found here: C:\dev\EasyPHP-DevServer-14.1VC9\binaries\php\php_runningversion) and remove the semicolon prededing “extension=php_pdo_pgsql.dll” and “extension=php_pgsql.dll”
  7. Double click on EasyPHP task menu icon and start Apache
  8. Right-click on EasyPHP task menu icon and choose Administer
  9. On the Admin screen, in the Local Files section, add a new alias (name: your-site, path: C:\dev\drupal\drupal-7.38 <- from step 1)
  10. Visit and follow the Drupal setup wizard
  11. Install standard version of Drupal, on database setup screen you will now have the option to choose “PostgreSQL”
  12. From your Start Menu, find PostgreSQL and open “pgAdmin” tool
  13. Right click and choose Connect
  14. Get the database name (postgres), hostname (localhost), port number (5432) and username (postgres) and password (set this yourself)
  15. Enter the details and you’re all set.


Did you find this post useful?

Tip me some bitcoin:

  • Ata

    Hi Sam,

    Thanks for writing this helpful post. I am following this tutorial to install drupal 7 with postgresql on windows 10. I assume that there is no difference between installation on windows 7 or 10. I am facing issue in point 9. I want to know where is the “Local File Section” exists in easy php? I am using latest version of Easy PHP 16.1.1.

    I also tried and added a directory of my project (C:devprojectfoldername) in Working directories and then in browser I visited It says not found. The requested URL was not found on this server.

    I am sharing you image of my easyphpserver

    Waiting for your response. Any help would be greatly appreciated.