From owner-freebsd-questions@FreeBSD.ORG Tue Jan 11 18:23:45 2011 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 12409106566B for ; Tue, 11 Jan 2011 18:23:45 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id D99D68FC0A for ; Tue, 11 Jan 2011 18:23:44 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 38AFDE807EA; Tue, 11 Jan 2011 10:23:44 -0800 (PST) Date: Tue, 11 Jan 2011 10:23:44 -0800 From: Gary Kline To: Paul Macdonald Message-ID: <20110111182344.GB27569@thought.org> References: <20110110212143.GA8276@thought.org> <4D2B8320.1090501@ifdnrg.com> <20110111164623.GB26859@thought.org> <4D2C9368.4090701@ifdnrg.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D2C9368.4090701@ifdnrg.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: Which php?? 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, 11 Jan 2011 18:23:45 -0000 On Tue, Jan 11, 2011 at 05:29:12PM +0000, Paul Macdonald wrote: > On 11/01/2011 16:46, Gary Kline wrote: > > > > > > So:: are there other ways of installing this stuff? Should I > > cp -rp this wordpress directory in [e.g.] > > /usr/local/www/journey? > > > > Thanks for any clues, > > > > gary > > > > > It looks like you have a workign apache2 already. > > *For PHP > *cd /usr/ports/lang/php5 > make config ( choose apache module) > make install clean Hm. I did this late night by going into the makefile and editing stuff from off to on. What's the mak e cmd? Is it "make config"? I first simply did a make install clrean; it did nothing. Then I did a deinstall/reinstall. I figured THAT should've done _something_. > > > *PHP5 Extensions > *(lots to choose from but make sure you have mysql at least selected > ( you'll need this installed obv for wordpress too ) > cd /usr/ports/lang/php5-extensions > make config > make install clean This one I have never seen before and may be just the ticket. Will try. ---WOW, there are a boatload of options. Is there any shortlist of ones i need to check? > > in your apache httpd.conf in the "AddType" section add > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > In the DirectoryIndex section (or on a new line after it) > Add this line > DirectoryIndex index.php index.html index.htm > > *Checks > *On shell do php-v > > on a webpage in your webroot (e.g test.php) > > add this php code > phpinfo(); > ?> > > http://localhost/test.php > If that shows you a nice php page then you should be good to go with > the wordpress installer > > Good luck! > Paul. > I think I have the test.php in /usr/local/www/data/www or whatever. Thanks for your tips. This time I may get it working :-) gary > > -- > ------------------------- > Paul Macdonald > IFDNRG Ltd > Web and video hosting > ------------------------- > t: 0131 5548070 > m: 07534206249 > e: paul@ifdnrg.com > w: http://www.ifdnrg.com > ------------------------- > IFDNRG > 40 Maritime Street > Edinburgh > EH6 6SA > ------------------------- > > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org