[MacPorts] #22808: PHP 5.3.1 bug breaks MediaWiki and no clear way to install PHP 5.3.0
MacPorts
noreply at macports.org
Mon Dec 7 06:37:52 PST 2009
#22808: PHP 5.3.1 bug breaks MediaWiki and no clear way to install PHP 5.3.0
-----------------------------------+----------------------------------------
Reporter: niels.olson@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: php5 mediawiki
-----------------------------------+----------------------------------------
Comment(by niels.olson@…):
===========[[BR]]
First go[[BR]]
===========[[BR]]
[[BR]]
$ apache2ctl stop[[BR]]
$ sudo port install php52 +postgresql84[[BR]]
...[[BR]]
Activating php52 @5.2.11_1+apache2+darwin_10+macosx[[BR]]
$ sudo port install php5-postgresql[[BR]]
...[[BR]]
Activating php5-postgresql @5.3.1_0+postgresql84[[BR]]
$ apache2ctl start[[BR]][[BR]]
(Can't contact the database server: Postgres functions missing, have you
compiled PHP with the --with-pgsql option? (Note: if you recently
installed PHP, you may need to restart your webserver and database) )
[[BR]][[BR]]
===========[[BR]]
Second go [[BR]]
===========[[BR]]
hypothesis: maybe I can point php5-postgresql to build to the correct
5.2.11 version of php[[BR]][[BR]]
$ apache2ctl stop[[BR]]
$ sudo port uninstall php5-postgresql php52[[BR]]
$ sudo port clean php5-postgresql php52[[BR]]
$ sudo port install php52 +postgresql84 php5-postgresql
@5.2.11_1+apache2+darwin_10+macosx[[BR]]
...[[BR]]
Activating php52 @5.2.11_1+apache2+darwin_10+macosx[[BR]]
...[[BR]]
Activating php5-postgresql @5.3.1_0+postgresql84 <== so obviously my
hypothesis was wrong, but I'll press on[[BR]]
$ apache2ctl start[[BR]][[BR]]
(Can't contact the database server: Postgres functions missing, have you
compiled PHP with the --with-pgsql option? (Note: if you recently
installed PHP, you may need to restart your webserver and database)
)[[BR]][[BR]]
===========[[BR]]
Third go [[BR]]
===========[[BR]]
$ apache2ctl stop[[BR]]
$ sudo port uninstall php5-postgresql php52[[BR]]
$ sudo port clean php5-postgresql php52[[BR]]
$ sudo port install mediawiki +postgresql84[[BR]]
...[[BR]]
Activating php5 @5.3.1_0+apache2+darwin_10+macosx[[BR]]
...[[BR]]
Activating php5-postgresql @5.3.1_0+postgresql84[[BR]]
...[[BR]]
Activating php5-web @5.3.0_0[[BR]]
...[[BR]]
Activating mediawiki @1.15.1_1+postgresql+postgresql84[[BR]]
[[BR]][[BR]]
and now mediawiki from svn runs just fine except for the bug
(http://bugs.php.net/bug.php?id=50394). As above, I am not using the
macports mediawiki, I'm using mediawiki from svn. It just seems that
installing mediawiki +postgresql84 through macports is the only way to get
a version of php that runs mediawiki with postgres at all.
--
Ticket URL: <http://trac.macports.org/ticket/22808#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list