为什么PHP运行不了?

为什么PHP运行不了?

系统为FreeBSD6.2
PHP5
apache22

都是通过ports安装的

运行

index.php
<?php
echo phpinfo();
?>

提示:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/local/www/apache22/data/phpinfo.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0


是不是php5-extensions没安装的原因啊?
还有是不是我的PHP.ini文件是不是copy的地址错了?
我是把/usr/local/etc下的php.ini-dist改名copy到了/usr/local/etc/apache22下


pkg_info命令 已经安装的套件

apache-2.2.4_2      Version 2.2 of Apache web server with prefork MPM.
autoconf-2.59_2     Automatically configure source code on many Un*x platforms
cvsup-16.1h_2       General network file distribution system optimized for CVS
expat-2.0.0_1       XML 1.0 parser written in C
ezm3-1.2_1          Easier, more portable Modula-3 distribution for building CV
fontconfig-2.3.2_6,1 An XML-based font configuration API for X Windows
freetype2-2.2.1_1   A free and portable TrueType font rendering engine
gettext-0.14.5_2    GNU gettext package
gmake-3.81_1        GNU version of 'make' utility
help2man-1.36.4_1   Automatically generating simple manual pages from program o
imake-6.9.0         Imake and other utilities from X.Org
libdrm-2.0.2        Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_2    A character set conversion library
libtool-1.5.22_2    Generic shared library support script
libxml2-2.6.27      XML parser library for GNOME
linux_base-fc-4_9   Base set of packages needed in Linux mode (for i386/amd64)
m4-1.4.9            GNU m4
mysql-client-5.1.19 Multithreaded SQL database (client)
mysql-server-5.1.19 Multithreaded SQL database (server)
p5-gettext-1.05_1   Message handling functions
pcre-7.1            Perl Compatible Regular Expressions library
pecl-fileinfo-1.0.4 A PECL extension to retrieve info about files
pecl-filter-0.11.0  PHP extension for safely dealing with input parameters
perl-5.8.8          Practical Extraction and Report Language
php5-5.2.3          PHP Scripting Language (Apache Module and CLI)
php5-ctype-5.2.3    The ctype shared extension for php
php5-dom-5.2.3      The dom shared extension for php
php5-exif-5.2.3     The exif shared extension for php
php5-ftp-5.2.3      The ftp shared extension for php
php5-pcre-5.2.3     The pcre shared extension for php
php5-simplexml-5.2.3 The simplexml shared extension for php
php5-spl-5.2.3      The spl shared extension for php
pkg-config-0.21     A utility to retrieve information about installed libraries
xorg-libraries-6.9.0 X11 libraries and headers from X.Org

我也是啊!
我的提示:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/apache2/htdocs/phpinfo.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0
Help me !
没人理我们?
再顶一下