install troubles on PostgreSQL

Author Message

Andre Felipe Machado

Friday 27 December 2002 5:22:15 am

Hello,
I am trying to install EZPublish 3RC1 on a PostgreSQL 7.2.2, Apache 1.3.26, php 4.1.1.
Following install instructions, I saw some error messages when executing the ..../kernel/sql/postgresql/kernel_clean.sql
But it finished.
Using phppgadmin 2.3, I can see the db ezpublish and its tables.
site.ini configured properly.
But when running the ezpublish setup, it argues that my system only has support for Mysql.
Restarting and choosing finetuning, I can read that:
In order to enable PostgreSQL support, --with-pgsql[=DIR] is required when you compile PHP.
More information on the PostgreSQL extension can be found at php.net.

How it can be? I am running phppgadmin.
Reading documentation at php.net, I see that my stock php4 installation has shared modules enabled. So it can load postgresql as modules at runtime.
My php.ini has

extension_dir = /usr/lib/php4
extension=mysql.so
extension=pgsql.so
;extension=ldap.so
;extension=imap.so
;extension=odbc.so

As you can see, postgresql support is loaded as a module, as mysql support!
running phpinfo, I got:
'./configure' '--prefix=/usr' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--enable-shared' '--disable-static' '--with-config-file-path=/etc/php4/apache' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-freetype-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-openssl' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--enable-snmp' '--enable-dbf' '--enable-ftp' '--enable-bcmath' '--without-mysql' '--without-unixODBC' '--with-xml' '--with-mcrypt'

You can see that it was compiled WITHOUT mysql support. Instead, mysql support (and postgresql) are loaded as modules at runtime, by proper php.ini configuration.

Why ezpublish does not recognize postgresql support?

My concern is because I am testing using the same Linux distribution and rpm packages as my ISP (a good idea to iron out problems before uploading to my site). I have very little chance to get them to change configurations and even less to recompile php.

I must be able to get ezpublish running with stock configurations and compilations. Sure, they altered some configs for sake of security, but are not likely to change for another purposes...

I successfully got ezpublish running over mysql at another local directory.

How can I make ezpublish run over postgresql?

Best regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:22:21
Script start
Timing: Jan 30 2025 22:22:21
Module start 'layout'
Timing: Jan 30 2025 22:22:21
Module start 'content'
Timing: Jan 30 2025 22:22:21
Module end 'content'
Timing: Jan 30 2025 22:22:21
Script end

Main resources:

Total runtime0.0289 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2500151.2266
Module start 'layout' 0.00610.0052 739.4766220.7188
Module start 'content' 0.01130.0159 960.1953997.8203
Module end 'content' 0.02730.0016 1,958.015633.9922
Script end 0.0289  1,992.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00299.9840140.0002
Check MTime0.00113.9654140.0001
Mysql Total
Database connection0.00103.570010.0010
Mysqli_queries0.003211.047730.0011
Looping result0.00000.086510.0000
Template Total0.00124.210.0012
Template load0.00093.134910.0009
Template processing0.00031.050510.0003
Override
Cache load0.00072.250110.0007
General
dbfile0.00248.318180.0003
String conversion0.00000.032140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs