You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Evje <se...@shawcable.com> on 2002/09/26 12:31:02 UTC

Re: [users@httpd] Compiling 3rd party modules (read: php) for Apache2.0.42

Hello Robert;
    Would you consider telling me know how you compiled php to work with
Apache 2.0.42. I have set up Apache 2.0.42 on Win NT 4.0. I can serve up
webpages etc., but cannot get php-4.2.3 to work for the life of me.

I am pretty new to Apache and php, so any help you can offer would be
most appreciated. I am frustrated no end!!!

Thanks. Selmer Ausland


Robert Andersson wrote:
> 
> Responding to my own post here ;)
> 
> I did make it work, although I doubt that what I did is in any way "clean".
> I did manage to compile php4apache2.dll in MSVC 6, but it needed a few hacks
> and workarounds.

> Regards,
> Robert Andersson

-- 
JKCC Consulting
http://jkcc.com/

Memories Of Deep River
http://www.jkcc.com/evje/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Compiling 3rd party modules (read: php) forApache2.0.42

Posted by Evje <se...@shawcable.com>.
Hello Robert;
    First of all, thanks for being so helpful. I managed to get Apache
2.0.42 working by using php4-win32-STABLE-latest.zip. I did not have to
use the information you so generously provided. 

Thanks again for your kind assistance.


Selmer Ausland


> I may have forgotten a 1000 things or so, but let me know where and how it
> fails.
> 
> If you don't understand anything what I've said, I don't blame you. Either
> get Apache 2.0.40 (which php 4.2.3 should work with) or try what craig
> franke suggested.
> 
> Regards,
> Robert Andersson
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Compiling 3rd party modules (read: php) for Apache2.0.42

Posted by Robert Andersson <ro...@profundis.nu>.
Lets see, first you need to have a compiler (Microsoft Visual C++
recommended), and the sources for Apache 2.0.42 and PHP 4.2.3, which you'll
find here:
http://www.apache.org/dist/httpd/httpd-2.0.42-win32-src.zip
http://www.php.net/get_download.php?df=php-4.2.3.tar.gz

Extract them in some directory, which I'll call "?:\src\".
It will be alot easier if you also install the binary zip package of PHP, so
you only need to compile php4apache2.dll.

First compile apache, that should be easy. Check the manuals at Apache web
site.

The workspace of interest is win32\php4ts.dsw. You should then set the
active project. Build->Set active configuration, and select "php4apache2 -
Win32 Release_TS_inline".
You must add Apache's header files to the include path, so it will find them
when compiling php. So, in Tools->Options->Directories, choose include files
from the drop down, and add these directories:
?:\src\httpd-2.0.42\include
?:\src\httpd-2.0.42\include\srclib\apr\include
?:\src\httpd-2.0.42\include\srclib\apr-util\include

Locate these files from the build of Apache: libapr.lib, libaprutil.lib and
libhttpd.lib and resolv.lib
(http://www.geocities.com/ro_marius/resolv.lib.gz) and put them in some path
where the linker will find them.

Try to compile it, and hopefully it will produce a php4apache2.dll located
in the ?:\src\php-4.2.3\Release_TS_inline folder. This is the one you should
direct apache to. Don't bother with any other file, you should have them all
from the binary package.

I may have forgotten a 1000 things or so, but let me know where and how it
fails.

If you don't understand anything what I've said, I don't blame you. Either
get Apache 2.0.40 (which php 4.2.3 should work with) or try what craig
franke suggested.

Regards,
Robert Andersson




----- Original Message -----
From: "Evje" <se...@shawcable.com>
To: <us...@httpd.apache.org>
Sent: Thursday, September 26, 2002 12:31 PM
Subject: Re: [users@httpd] Compiling 3rd party modules (read: php) for
Apache2.0.42


> Hello Robert;
>     Would you consider telling me know how you compiled php to work with
> Apache 2.0.42. I have set up Apache 2.0.42 on Win NT 4.0. I can serve up
> webpages etc., but cannot get php-4.2.3 to work for the life of me.
>
> I am pretty new to Apache and php, so any help you can offer would be
> most appreciated. I am frustrated no end!!!
>
> Thanks. Selmer Ausland
>
>
> Robert Andersson wrote:
> >
> > Responding to my own post here ;)
> >
> > I did make it work, although I doubt that what I did is in any way
"clean".
> > I did manage to compile php4apache2.dll in MSVC 6, but it needed a few
hacks
> > and workarounds.
>
> > Regards,
> > Robert Andersson
>
> --
> JKCC Consulting
> http://jkcc.com/
>
> Memories Of Deep River
> http://www.jkcc.com/evje/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org