Installing PHP5 on Max OSX Server
| From: | Thomas O'Neill | Date: | Mon, 30 Aug 2004 15:57:20 +0000 |
| Subject: | Installing PHP5 on Max OSX Server | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-14255@lists.php.net to get a copy of this message | ||
Hey everyone,
I am installing PHP5 on OSX server following the instructions on
www.php.net but changing to use the php5 modules instead of the php4
module.
Will this work? i am getting a compile error.
here is what i have:
When Configuring PHP i use:
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-xml \
--with-apache=../apache_1.3.31 \
--enable-bcmath \
--with-bz2=/sw \
--enable-calendar \
--enable-ctype \
--with-curl=/sw \
--enable-dba=shared \
--with-dom=/sw \
--enable-exif \
--with-gd \
--enable-gd-native-ttf \
--with-jpeg-dir=/sw \
--with-png-dir=/sw \
--with-gettext=/sw \
--with-iconv=/sw \
--with-ldap \
--enable-mbstring \
--with-mcrypt=/sw \
--with-mhash=/sw \
--with-mysql=/sw \
--with-ncurses \
--with-openssl=/sw \
--enable-pcntl \
--with-aspell=/sw \
--with-readline=/sw \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--with-tidy=/sw \
--enable-wddx \
--with-xmlrpc \
--with-expat-dir=/sw \
--with-xsl=/sw \
--with-zlib \
--enable-dio \
--enable-ftp \
--with-mcve=/sw \
--with-libxml-dir=/sw \
--enable-yp
When Configuring Apache I use:
./configure --exec-prefix=/usr --localstatedir=/var
--mandir=/usr/share/man --libexecdir=/System/Library/Apache/Modules
--iconsdir=/System/Library/Apache/Icons
--includedir=/System/Library/Frameworks/Apache.framework/Versions/1.3/Headers
--enable-shared=max --enable-module=most --target=apache
--activate-module=src/modules/php5/libmodphp5.a
when i compile apache i get:
gcc -c -I../../os/unix -I../../include -O2 -DDARWIN
-DTARGET=\"apache\" -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite
../../apaci mod_php5.c
mod_php5.c:22:29: php_apache_http.h: No such file or directory
In file included from mod_php5.c:23:
../../include/http_conf_globals.h:27: error: syntax error before "int"
../../include/http_conf_globals.h:28: error: syntax error before "int"
../../include/http_conf_globals.h:30: error: parse error before "uid_t"
Any ideas?
Thanks
TOM