Hi,

I guess your problem may be caused by apache.

Since the apache on Mac OS X Server is "optimized", they are separated
into parts and put in several locations, so it is very hard to upgrade
apache(Actually I don't know how to). You can use the update from Mac OS X
Server, it will update your apache to 1.3.26. Is that enough for you?

To install php-4.3.1, you can igore the orginal php of Mac OS X Server.
What I did is download php-4.3.1 source from php.net, and put it in the
/usr/local/php, then compile,

./configure --prefix=/usr/local --with-apxs
--with-pdflib=/usr/local/pdflib/bind/c --with-zlib
--with-tiff-dir=/usr/local/PHP --with-jpeg-dir=/usr/local/PHP
--with-png-dir=/usr/local/PHP --with-mysql

If you don't need pdflib, just delete the pdf,jpeg,png.
Then make, make install.

Be sure to install gcc by using the Develop tool disc which should come
with your package.(If not, it should come with Mac OS X)

By using the Server Setting to restart your webserver, the php should run
normally.

Since php-4.3.1 turns off the register_globals, you can turn it on by
following the instructions in php.net.

Hope it would be helpful.


Jie Lu
-- 
Department of Physics
Reseach Laboratory for Electronics
MIT


> I've followed the directions on php.net to install apache with php
> support
>  on mac OS X server and have had success, but with a few warnings that i
> am concerned about.
>
> These are the warning messages i am receiving:
>
> gcc  -DDARWIN -DTARGET=\"apache\" -DUSE_EXPAT -I./lib/expat-lite
> `./apaci` \
>       -o apache buildmark.o modules.o modules/php4/libphp4.a
> modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
> ap/libap.a lib/expat-lite/libexpat.a  -Lmodules/php4 -L../modules/php4
> -L../../modules/php4 -lmodphp4      -lm
> ld: warning -L: directory name (../modules/php4) does not exist
> ld: warning -L: directory name (../../modules/php4) does not exist
>
> Normally i wouldn't be too concerned with these warnings since php and
> apache seemed to install fine after doing a make install, but when i try
> to load a php page, all i get is raw php code mixed in with the html
> that displays properly. Is there an additional step to the ones listed
> at http://www.php.net/manual/en/install.macosx.php that i am
> overlooking? Can anyone point me in the direction of where i should be
> looking to solve my problem? I've successfully installed apache and php
> on a mac OS X client machine with no problems, but we are migrating over
> to a server machine and i have little experience with OS X server
> (10.2.6)
> thanks
> -Greg
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to