Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 875 invoked by uid 500); 26 Sep 2002 12:10:23 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 852 invoked from network); 26 Sep 2002 12:10:23 -0000 Received: from unknown (HELO mail.profundis.se) (213.80.46.101) by daedalus.apache.org with SMTP; 26 Sep 2002 12:10:23 -0000 X-ITHouse-Forward-Path: Received: From PROFUNDIS01 by mail.profundis.se (IT House Mail Server [TRIAL - -179 days left]); Thu, 26 Sep 2002 14:09:40 +0200 Message-ID: <000d01c26555$9790f400$662e50d5@profundis.se> Reply-To: "Robert Andersson" From: "Robert Andersson" To: References: <009e01c2651c$2aac2690$662e50d5@profundis.se> <00a601c26522$fc2853f0$662e50d5@profundis.se> <3D92E1E6.1CB351D6@shawcable.com> Date: Thu, 26 Sep 2002 14:09:40 +0200 Organization: Profundis MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Compiling 3rd party modules (read: php) for Apache2.0.42 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" To: 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 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 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