Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 21283 invoked by uid 500); 3 Jan 2002 16:05:37 -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 21271 invoked from network); 3 Jan 2002 16:05:36 -0000 Received: from ns1.fkeinternet.com (HELO Waltham.fkeinternet.com) (208.58.172.24) by daedalus.apache.org with SMTP; 3 Jan 2002 16:05:36 -0000 Received: from flighty.L5Development.com (h005018064501.ne.mediaone.net [24.218.222.21]) by Waltham.fkeinternet.com (8.12.1/8.12.1) with ESMTP id g03G5mSR012358; Thu, 3 Jan 2002 11:05:49 -0500 (EST) Message-Id: <5.1.0.14.1.20020103105005.00a57ec0@L5Development.com> X-Sender: wfredk@L5Development.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 03 Jan 2002 11:05:34 -0500 To: users@httpd.apache.org From: Fred Koschara Subject: Re: Installing apache-modssl port Cc: Odhiambo Washington In-Reply-To: <20020103151513.A38388@ns2.wananchi.com> References: <20020102170259.B49613@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 03:15 PM 1/3/02 +0300, Odhiambo Washington wrote: >There was a problem though.... the mod_perl part did not go well and I had to >leave out one build option. The --activate-module=src/modules/php4/libphp4.a >seems to break things and I had to leave it out (not knowing the >consequence ;-)). > >Well now I have a running apache but still it can't parse the .php files. >Instead >it still displays the php code. You HAVE to have the --activate-module=libphp4.a line, or it's not going to be available to Apache. As explained in the PHP INSTALL file: QUICK INSTALL (Static) $ gunzip -c apache_1.3.x.tar.gz | tar xf - $ cd apache_1.3.x $ ./configure $ cd .. $ gunzip -c php-4.0.x.tar.gz | tar xf - $ cd php-4.0.x $ ./configure --with-apache=../apache_1.3.x --enable-track-vars $ make $ make install $ cd ../apache_1.3.x $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a (The above line is correct! Yes, we know libphp4.a does not exist at this stage. It isn't supposed to. It will be created.) $ make (you should now have an httpd binary which you can copy to your Apache bin dir if is is your first install then you need to "make install" as well) $ cd ../php-4.0.x $ cp php.ini-dist /usr/local/lib/php.ini You can edit /usr/local/lib/php.ini file to set PHP options. Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php .php It's a little more complicated than that with mod_perl, but not terribly so. I first built mod_perl, then used this shell script (run from the Apache directory) to build Apache: ./configure --prefix=/path/to/apache cd /software/PHP/php-4.1.0 ./configure --with-apache=/software/Apache/apache_1.3.22 \ --with-mysql=/usr/local/mysql \ --with-openssl \ --with-pgsql \ --enable-trans-sid \ --with-zlib make make install cd /software/Apache/apache_1.3.22 # configure MUST be re-run after upgrading PHP ./configure --enable-module=most \ --activate-module=src/modules/php4/libphp4.a \ --activate-module=src/modules/perl/libperl.a \ --enable-shared=max \ --enable-suexec --suexec-caller=httpd --suexec-docroot=/web \ --suexec-uidmin=1000 --suexec-gidmin=1000 \ --server-uid=httpd --server-gid=httpd make make install You also need to have these lines in your httpd.conf: # Dynamic Shared Object (DSO) Support # # Note: The order in which modules are loaded is important. Don't change # the order below without expert advice. # . . (other LoadModule statements) . LoadModule perl_module libexec/libperl.so LoadModule php4_module libexec/libphp4.so # Reconstruction of the complete module list from all available modules # (static and shared ones) to achieve correct module execution order. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO] ClearModuleList . . (other AddModule statements) . AddModule mod_perl.c AddModule mod_php4.c -- Fred Koschara, President L5 Development Group ________________________________________________________________________ For private sector (commercial) space development, visit http://www.L5Development.com L5 Software Development - "out of this world" sites and software http://www.L5Software.com StudioLines.com - Your place on the Internet for local music Music, feedback, connections. Tap the power of the Internet! http://www.StudioLines.com How much did your last traffic ticket cost you? http://www.StopHighwayRobbery.com ThmIndxr(tm), the *only* HTML thumbnail/indexer you need! http://www.L5Software.com/go?ThmIndxr wCapLock(tm), makes CapsLock work like it does on a typewriter http://www.L5Software.com/go?wCapLock KeywordGo(tm), provides keyword access to your popular pages http://www.L5Software.com/go?KeywordGo BannerAds(tm), join multiple affiliate programs with one banner http://www.L5Software.com/go?BannerAds My personal Web page is http://www.L5Development.com/wfredk Stop by some time! --------------------------------------------------------------------- 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 For additional commands, e-mail: users-help@httpd.apache.org