Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2011 17:29:12 +0000
From:      Paul Macdonald <paul@ifdnrg.com>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Which php??
Message-ID:  <4D2C9368.4090701@ifdnrg.com>
In-Reply-To: <20110111164623.GB26859@thought.org>
References:  <20110110212143.GA8276@thought.org> <4D2B8320.1090501@ifdnrg.com> <20110111164623.GB26859@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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


*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

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
<?php
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.


-- 
-------------------------
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
-------------------------





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D2C9368.4090701>