Difference between revisions of "Installation PHP"

From Wikili
Jump to: navigation, search
(New page: # Installation PDO pour PHP sur Ubuntu ## installation php5-dev ## installation postgresql-server-dev-8.1 ## find PHP_ADD_EXTENSION_DEP inside /usr/lib/php5/build/acinclude.m4 (or whereve...)
 
Line 1: Line 1:
# Installation PDO pour PHP sur Ubuntu  
+
# Installation PDO for PHP5 on Ubuntu  
 
## installation php5-dev
 
## installation php5-dev
 
## installation postgresql-server-dev-8.1
 
## installation postgresql-server-dev-8.1
 
## find PHP_ADD_EXTENSION_DEP inside /usr/lib/php5/build/acinclude.m4 (or wherever yours is located) and REMOVE this snippet from that function:
 
## find PHP_ADD_EXTENSION_DEP inside /usr/lib/php5/build/acinclude.m4 (or wherever yours is located) and REMOVE this snippet from that function:
  if test "x$is_it_shared" = "x" && test "x$3" != "xtrue"; then
+
<pre>
    AC_MSG_ERROR([
+
if test "x$is_it_shared" = "x" && test "x$3" != "xtrue"; then
  You've configured extension $1, which depends on extension $2,
+
AC_MSG_ERROR([
  but you've either not enabled $2, or have disabled it.
+
  You've configured extension $1, which depends on extension $2,
  ])
+
  but you've either not enabled $2, or have disabled it.
  fi
+
])
## commande: pecl install pdo_pgsql
+
fi
## dans php.ini de cli et apache2: extension=pdo.so et extension=pdo_pgsql.so
+
</pre>
 +
## command: pecl install pdo_pgsql
 +
## In php.ini for cli and apache2: extension=pdo.so and extension=pdo_pgsql.so

Revision as of 08:11, 21 August 2007

  1. Installation PDO for PHP5 on Ubuntu
    1. installation php5-dev
    2. installation postgresql-server-dev-8.1
    3. find PHP_ADD_EXTENSION_DEP inside /usr/lib/php5/build/acinclude.m4 (or wherever yours is located) and REMOVE this snippet from that function:
if test "x$is_it_shared" = "x" && test "x$3" != "xtrue"; then
 AC_MSG_ERROR([
  You've configured extension $1, which depends on extension $2,
  but you've either not enabled $2, or have disabled it.
 ])
fi
    1. command: pecl install pdo_pgsql
    2. In php.ini for cli and apache2: extension=pdo.so and extension=pdo_pgsql.so