From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 7 16:02:03 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 291B2C08 for ; Mon, 7 Apr 2014 16:02:03 +0000 (UTC) Received: from mail-oa0-x232.google.com (mail-oa0-x232.google.com [IPv6:2607:f8b0:4003:c02::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3A78150 for ; Mon, 7 Apr 2014 16:02:02 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id i7so6791044oag.37 for ; Mon, 07 Apr 2014 09:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=9rQIYQ0wwQHfwr0IWuq9FnL29tyGCUSxKu7x5dRARKM=; b=NGIZbPMAEMZjqQI0d+ilAdggFJACeQYiUa3calMCTL1tqnz/2xJL5uVAgOo57qh7jo v5jAVMNJeHuoMttdsyokIGgvWmP3uO3JLH0fCF2KSejwka1P0i7AQctqgokOJNyk6dwj IwYszJHRPpC8Akt9eHHMKOgtR8KnPtmpRdkPZ+8RUpXx1OI7FgzbbgF1qV1EebJIECjm hh5yjYVgtRtXqGnUrsXN1HfHGjPsLB1tzG/FkruRi6xO7KU0b80mCWbSTRqG6GqfA/DX Iu0xReoyFKVQp9+V+2AQI1Y1qa+BxavGh5Y3OMM8/VaziO2jwPWiuIRT/3QZdy1ICGl+ O79w== MIME-Version: 1.0 X-Received: by 10.182.107.232 with SMTP id hf8mr1311307obb.75.1396886522127; Mon, 07 Apr 2014 09:02:02 -0700 (PDT) Sender: aled.w.morris@googlemail.com Received: by 10.182.14.35 with HTTP; Mon, 7 Apr 2014 09:02:02 -0700 (PDT) In-Reply-To: References: <20140401001447.1c6013d4@X220.alogt.com> Date: Mon, 7 Apr 2014 17:02:02 +0100 X-Google-Sender-Auth: bDI3DxN9X0n_2UBIQiHSRl0vro0 Message-ID: Subject: Re: despairing with apache httpd + php From: Aled Morris To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 16:02:03 -0000 I got it working! Big thanks to everyone who chipped in - your moral support was most welcome. In the end I stripped out everything I'd tried, so it was basically an out-of-the-box 10.0-RELEASE box with mysql server running, then did: 1. portsnap fetch/update to get /usr/ports up-to-date 2. in ports/www, make install apache22 3. in ports/lang, make install php55 4. in ports/textproc, make install php55-ctype, php55-dom, php55-xml 5. in ports/devel, make install php55-json 6. in ports/databases, make install php55-mysql 7. in ports/www, make install mod_php55, php55-session I think that's about it! Aled On 31 March 2014 17:45, wrote: > > On 31 March 2014 17:14, Erich Dollansky > wrote: > > > >> This is how I have done it. Just get the source, compile and install. > >> But I do not think that it is important to do it like this. You also > >> can do a make install and get it all done in a single step. > > > > > > Compiling php-5.5.10 from source with: > > > > $ sh configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs > > $ make > > > > results in a build that can't be installed: > > > > $ sudo make install > > ...blah...blah... > > Warning! dlname not found in /usr/local/apache2/modules/libphp5.la. > > Assuming installing a .so rather than a libtool archive. > > chmod 755 /usr/local/apache2/modules/libphp5.so > > chmod: /usr/local/apache2/modules/libphp5.so: No such file or directory > > apxs:Error: Command failed with rc=65536 > > > > very frustrating! > Indeed. :) > I'm not sure why you're choosing the direction for build install, that you > are. > But if it were me; I'd > > # cd /usr/ports/lang/php55 > # make config > choose the options you wish -- as Apache module for sure > # make > # make install clean > Assuming success... > # cd /usr/ports/www/apache > # make config > You know the drill; choose your favorite options > # make > # make install clean > > Now, I might also mention, there's also > /usr/ports/lang/php55-extensions. This is a bit of a > meta-package that will allow you to pick all your favorite > must-have php extensions up front. But it's usually better to > simply go to each extension' folder/directory, and make(1), and > configure them individually. I only mention this, as you indicated > you were looking to install mediawiki, which, I believe needs (at least) > XML. > > Best wishes, and hope this helps. :) > > --Chris > > > > > Aled > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > > >