note 82349 added to install.macosx.client

From: Date: Mon, 07 Apr 2008 14:54:02 +0000
Subject: note 82349 added to install.macosx.client
Groups: php.notes 
Request: Send a blank email to php-notes+get-138000@lists.php.net to get a copy of this message
With OSX 10.5, the bundled version is up to date but didn't come with the modules I needed (notably I wanted the pgsql database extension). Getting this to work was quite simple in the end, what made it difficult is the build-options for Apache. After searching on google, I found instructions to re-build apache with the following options: ./configure --enable-layout=Darwin --enable-mods-shared=all (Step 1: download the latest Apache2.2 source files, Step 2: extract the tarball Step 3: ./configure --enable-layout=Darwin --enable-mods-shared=all Step 4: make all Step 5: sudo make install) Without this step, when I rebuilt PHP either directly with the source from the PHP.net site or using MacPorts I was getting an error about the wrong architecture like this one: httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so into server: dlopen(/usr/libexec/apache2/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/libphp5.so: mach-o, but wrong architecture After re-building and Apache with the configuration above and restarting it, everything worked again and I can now use PostgreSQL from within PHP on my MacBook Pro. ---- Server IP: 69.147.83.197 Probable Submitter: 62.231.53.178 ---- Manual Page -- http://www.php.net/manual/en/install.macosx.client.php Edit -- https://master.php.net/note/edit/82349 Del: integrated -- https://master.php.net/note/delete/82349/integrated Del: useless -- https://master.php.net/note/delete/82349/useless Del: bad code -- https://master.php.net/note/delete/82349/bad+code Del: spam -- https://master.php.net/note/delete/82349/spam Del: non-english -- https://master.php.net/note/delete/82349/non-english Del: in docs -- https://master.php.net/note/delete/82349/in+docs Del: other reasons-- https://master.php.net/note/delete/82349 Reject -- https://master.php.net/note/reject/82349 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138000) next »