First, I explain why you separately install Apache, Php, Mysql and Postgres.
programs all in one like EasyPHP or Wamp offer a good service, why install everything in one executable. Become
a problem when you need to install on your computer such as Postgres and MySQL, and pointing to these two databases communicate with each other.
EasyPHP is a valuable tool for working with PHP and Mysql and there is another to work with PHP and Postgres. The problem is that installing two such services we would face a two apache servers on the same computer, one thing that is really inconvenient as it will be much more difficult to communicate with each other the two databases.
To work around this problem you need to install Apache, Php, Mysql and Postgres separately. Contrary to what I thought was a very simple operation that takes a few minutes. A further advantage which derives from this is that we will be separately installed PHP with all the extensions already present in it without even having to go look at a later time (eg the curl extension).
To do this, I refer you to an article I found online that explains step by step how to do:
http://www.phpnews.it/articoli/php/installare-apache-2-php-5- mysql-windows-41-on / 6 /
article does not explain how to install and run the Postgres server with Apache and PHP, so I will explain in brief:
First install Postgres (not I'm here to tell you how to do it because it is quite easy, just download the executable from site and follow the wizard)
Now simply go to the folder where you installed PHP and search for the php.ini file, look inside the following line below and decommentiamola (removing the semicolons), and save the that's it.
; extension = php_pgsql.dll ; extension = php_pdo_pgsql.dll
0 comments:
Post a Comment