From owner-freebsd-questions Sun Jan 6 13:31:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from su.ualberta.ca (mail.su.ualberta.ca [129.128.133.14]) by hub.freebsd.org (Postfix) with ESMTP id 210C937B402 for ; Sun, 6 Jan 2002 13:31:12 -0800 (PST) Received: from [142.59.23.204] (HELO [192.168.1.22]) by su.ualberta.ca (CommuniGate Pro SMTP 3.5.1) with ESMTP id 610342; Sun, 06 Jan 2002 14:28:15 -0700 User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Sun, 06 Jan 2002 14:31:09 -0700 Subject: Re: questions-digest V5 #969 From: Colin Harford To: , Message-ID: In-Reply-To: Mime-version: 1.0 X-address: Suite 2-900, SUB, University of Alberta, 8900-114 St, Edmonton: Alberta, T6G 2J7 X-disclaimer: Opinions expressed herein are solely the responsibility Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 6/1/02 2:05 PM, "questions-digest" wrote: >=20 > Date: Sun, 6 Jan 2002 17:22:30 -0000 > From: "Danny Horne" > Subject: Running Apache-modssl+mod_php4+mod_perl >=20 > Hi all, >=20 > Many thanks to Kevin & others for helping me get Apache13-modssl installe= d, > but I now find I can't include mod_php4 in the config, if I do starting > Apache fails with the following error. What have I missed? (it all runs = ok > otherwise Server Version: Apache/1.3.22 (Unix) mod_perl/1.26 mod_ssl/2.8.= 5 > OpenSSL/0.9.6a) >=20 > odo# /usr/local/etc/rc.d/apache.sh start > Syntax error on line 240 of /usr/local/etc/apache/httpd.conf: > Cannot load /usr/local/libexec/apache/libphp4.so into server: > /usr/local/libexec/apache/libphp4.so: Undefined symbol "ssl_onceonlyinit" >=20 > Thanks >=20 > - --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.313 / Virus Database: 174 - Release Date: 02/01/02 When I installed php and mod_ssl I did it like so (I developed the setup o= n OpenBSD, where I needed to compile it all from sources....and the commands also work for FreeBSD, but note, some options require other software installed (ie: --with-mysql --with pthread --with-gd): 1) in apache dir ./configure 2) in php dir ./configure --with-apache=3D../apache_1.3.22 --enable-track-vars --with-mysql=3D/opt/mysql --with-pthread --with-gd --enable-sockets Then a make && make install 3) in mod_ssl dir ./configure --with-apache=3D../apache_1.3.22 --prefix=3D/opt Follow on screen instructions 4) Then back in apache dir: SSL_base=3D/usr/sbin/openssl ./configure --enable-module=3Dssl --prefix=3D/opt/apache --activate-module=3Dsrc/modules/php4/libphp4.a Then make && make certificate && make install 5) Back into php install dir: Cp php.ini.dist /usr/local/lib/php.ini 6) Then check the apache httpd to make sure that AddType application/ x-httpd-php .php is uncommented Did you do steps 5 and 6? When you do /usr/local/sbin/apachectl configtest do you get any errors? If I remember correctly, for it to work right for me, I had to do install php before I installed mod_ssl... Hope this helps.... Colin Harford =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Systems and Network Administrator =A0=A0=A0=A0 Apple Product Professional =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =A0=A0=A0=A0 Computer and Network Support =A0=A0=A0=A0=A0=A0=A0=A0 University of Alberta Students' Union =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Phone: (780) 492-4241 =A0=A0Fax: =A0(780) 492-4643 http://www.su.ualberta.ca "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message