Forums / Install & configuration / install troubles on PostgreSQL

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

eZ debug

Timing: Jan 30 2025 00:17:41
Script start
Timing: Jan 30 2025 00:17:41
Module start 'content'
Timing: Jan 30 2025 00:17:41
Module end 'content'
Timing: Jan 30 2025 00:17:41
Script end

Main resources:

Total runtime0.1549 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.0469180.8281
Module start 'content' 0.00490.0060 768.875093.9141
Module end 'content' 0.01090.1440 862.7891529.3047
Script end 0.1549  1,392.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.9466200.0002
Check MTime0.00120.8015200.0001
Mysql Total
Database connection0.00060.392410.0006
Mysqli_queries0.117375.70501410.0008
Looping result0.00080.54201390.0000
Template Total0.143792.710.1437
Template load0.00070.464610.0007
Template processing0.143092.275610.1430
Override
Cache load0.00050.313110.0005
Sytem overhead
Fetch class attribute can translate value0.00050.314410.0005
XML
Image XML parsing0.00020.143910.0002
General
dbfile0.00603.8419200.0003
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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