How To Install XAMPP in Support with PostgreSQL And phpPgAdmin
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl, plus many additional modules. The whole package is well integrated and can save a lot of time and hassle for the inexperienced web developer. It's available on four platforms Windows, GNU/Linux, Mac OS X and Solaris which gives a lot practical benefit to those who use it.
PostgreSQL is a well known database that may be more suitable for some tasks or workloads than others. phpPgAdmin is a web-based administration tool for PostgreSQL, exactly as phpMyAdmin for MySQL.
1. Install PostgreSQL and phpPgAdmin in Windows :
1.1 Install PostgreSQL
Assuming you have already download and installed XAMPP into c:\XAMPP, go and get the latest version of PostgreSQL for Windows. Download the version with the installer, not the one with only binaries.
Usually, it's a .zip package, extract it and install Microsoft Visual C++ 2005 redistributable vcredist_x86.exe first!
Now, double-click postgresql-8.3.msi, choose your install language, then have a look at installation notes as you may find useful info there.
Change the default install folder to c:\xampp\pgsql
The default install options in the following step are OK, but select everything you are unsure.
Enter a password for the user account "postgres" and leave everything as is in Service Configuration, then proceed to the next step. (You will need that password for future upgrades)
In Initialize Database Cluster:
1.2 Install phpPgAdmin
Go and get the latest phpPgAdmin zip package and extract it into C:\xampp\phpPgAdmin\ . Make sure the files and folders extracted are in that folder, not within another sub-folder.
Then open "config.inc.php" found in C:\xampp\phpPgAdmin\conf\ and set "extra_login_security" to false
Now, open c:\xampp\php\php.ini and make sure "extension=php_pgsql.dll" is uncommented
Finally, open c:\xampp\apache\conf\extra\httpd-xampp.conf and in section add
That's all, you can now access phpPgAdmin from your web browser with http://localhost/phppgadmin/
Notes:
PostgreSQL is a well known database that may be more suitable for some tasks or workloads than others. phpPgAdmin is a web-based administration tool for PostgreSQL, exactly as phpMyAdmin for MySQL.
1. Install PostgreSQL and phpPgAdmin in Windows :
1.1 Install PostgreSQL
Assuming you have already download and installed XAMPP into c:\XAMPP, go and get the latest version of PostgreSQL for Windows. Download the version with the installer, not the one with only binaries.
Usually, it's a .zip package, extract it and install Microsoft Visual C++ 2005 redistributable vcredist_x86.exe first!
Now, double-click postgresql-8.3.msi, choose your install language, then have a look at installation notes as you may find useful info there.
Change the default install folder to c:\xampp\pgsql
The default install options in the following step are OK, but select everything you are unsure.
Enter a password for the user account "postgres" and leave everything as is in Service Configuration, then proceed to the next step. (You will need that password for future upgrades)
In Initialize Database Cluster:
- Enable "Accept connections on all addresses, not just localhost" if you want.
- Choose a different Encoding for both Server and Client (i.e: UTF8 for unicode support)
- Enter a password for the DB administrator account "postgres".
1.2 Install phpPgAdmin
Go and get the latest phpPgAdmin zip package and extract it into C:\xampp\phpPgAdmin\ . Make sure the files and folders extracted are in that folder, not within another sub-folder.
Then open "config.inc.php" found in C:\xampp\phpPgAdmin\conf\ and set "extra_login_security" to false
$conf['extra_login_security'] = false;
Now, open c:\xampp\php\php.ini and make sure "extension=php_pgsql.dll" is uncommented
Finally, open c:\xampp\apache\conf\extra\httpd-xampp.conf and in section
Alias /phppgadmin "c:/xampp/phpPgAdmin/"
AllowOverride AuthConfig
Order allow,deny
Allow from all
That's all, you can now access phpPgAdmin from your web browser with http://localhost/phppgadmin/
Notes:
- For more info about PostgreSQL Installer visit http://pginstaller.projects.postgresql.org/FAQ_windows.html
- You may use Stack Builder shipped with PostgreSQL to add new functionalities.
- Visit the phpPgAdmin FAQ for any further info http://phppgadmin.sourceforge.net/?page=faq
Very nice.
ReplyDeleteMany Thanks
I had an error loading the postgreSQL libraries I get the following PHP Startup: Unable to load dynamic library 'C: \ xampp \ php \ ext \ php_pgsql.dll' - you can not find the specified module, I wrote LoadFile "E:/xampp/php/libpq.dll" in the httpd.conf of the Apache, and it worked.
ReplyDeletegot mine working after i put the phpPgAdmin folder into the htdocs folder in xampp, thanks India Gate
ReplyDelete