Re: Installing PHP5 on Max OSX Server
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Thu, 16 Sep 2004 09:08:46 +0000 |
| Subject: | Re: Installing PHP5 on Max OSX Server | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14367@lists.php.net to get a copy of this message | ||
Thomas O'Neill wrote:
> 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.
> [...]
> 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
Yes, this is exactly the same which I got under NetBSD1.6.2/sparc.
I don't know if this is the solution, but I copied the
php_apache_http.h from the php5 directory (somewhere in
sapi/apache - just execute a 'find' for it) into the modules/php5
directory from apache.
Then I get errors during linking httpd, because mod_php5_module
cannot be found. I modified the source of apache's modules.c
and renamed mod_php5_module into php5_module to make it link.
Apache builds, but it still doesn't process PHP scripts,
alhtough the error_log tells me that the module is
initialized. Maybe a configuration problem...?
Hope this helps.