From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 07:31:20 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36BA3106564A for ; Tue, 6 Jan 2009 07:31:20 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 033D08FC17 for ; Tue, 6 Jan 2009 07:31:19 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id C8AD0AFC204; Mon, 5 Jan 2009 22:31:18 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 5 Jan 2009 22:31:18 -0900 User-Agent: KMail/1.9.10 References: <383097e0c65660e72768c7c9e3c0be8f.squirrel@webmail.pcextreme.nl> In-Reply-To: <383097e0c65660e72768c7c9e3c0be8f.squirrel@webmail.pcextreme.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901052231.18491.fbsd.questions@rachie.is-a-geek.net> Cc: marinus@northbridgepc.nl Subject: Re: pathsetting for OpenSSL-0.9.8i X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 07:31:20 -0000 On Monday 05 January 2009 02:00:57 marinus@northbridgepc.nl wrote: > Hello all, > > I'm new in FreeBSD. I just installed FreeBSD 7.0 RELEASE and installed > also Apache22, PHP5, MySQLserver and OpenSSL-0.9.8i, the latest version of > Openssl. I know that the base opensslversion is 0.9.8e during the install > of a freshinstall of FreeBSD. > > For so far everything went fine during the installation of Apache22, PHP5, > MySQLserver 5.x.x and OpenSSL 0.9.8i. > > in the file rc.conf i wrote the line > > --------- > named_enable="YES" > linux_enable="YES" > sshd_enable="YES" > mysql_enable="YES" > apache22_enable="YES" > apache22_http_accept_enable="YES" > > make.conf > -------- > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > MAKE_IDEA=YES > WITH_OPENSSL_PORT=YES > NO_BIND=YES > > All the installed applicaties are working fine , just OpenSSL is not > working like the newest version 0.9.8i. I still see that that the base > openssl is the default after the giffen command This isn't a port issue. It's a path issue. If php reports 0.9.8i, then openssl is correctly linked and as far as php is concerned, it will use 0.9.8i. In your PATH variable however, /usr/bin comes before /usr/local/bin. There's a few ways to fix this, rated from bad to best: 1) swap /usr/local/bin and /usr/bin in $PATH environment variable 2) Rebuild world without openssl (echo WITHOUT_OPENSSL=yes >>/etc/src.conf) and be sure to run make delete-old 3) make an alias: alias openssl=/usr/local/bin/openssl Even though 2) seems the best choice at first glance, all apps and libraries that use OPENSSL in the base system will have to be built from ports as well, most notably sshd. I don't see an easy way to build the base system with the port's libssl, but I could be missing something. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.