FreeBSD 7.0-RELEASE-i386

# cd /usr/ports/lang/php5 && make install clean

Options: CLI, APACHE, IPV6

# cd /usr/ports/devel/pear && make install clean
# cd /usr/ports/lang/php5-extensions && make install clean

Options:
  • bz2
  • calendar
  • curl
  • DBA
  • dom
  • FILTER
  • ftp
  • gd
  • gettext
  • HASH
  • iconv
  • imap
  • JSON
  • ldap
  • mbstring
  • mcrypt
  • mhash
  • mysql
  • mysqli
  • openssl
  • pcre
  • pdf
  • pdo
  • PDO_SQLITE
  • pgsql
  • posix
  • pspell
  • READLINE
  • session
  • simplexml
  • SNMP
  • soap
  • sockets
  • SPL
  • sqlite
  • tidy
  • tokenizer
  • wddx
  • XML
  • xmlreader
  • xmlrpc
  • xmlwriter
  • yaz
  • zip
  • zlib

(安装期间,如果Tidy出错,直接删除Tidy即可
# cd /usr/ports/www/tidy && make deinstall)

# cd /usr/ports/databases/php5-pdo_pgsql && make install clean
# cd /usr/ports/databases/php5-pdo_mysql && make install clean

# cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
# chmod 644 /usr/local/etc/php.ini
# ee /usr/local/etc/php.ini

修改528行 include_path = “.:/usr/local/share/pear”

# ee /usr/local/etc/apache22/httpd.conf

第363行加入:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
修改219行:
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm
</IfModule>

# mkdir -m 755 /usr/local/www/apache22/data/test
# ee /usr/local/www/apache22/data/test/info.php

<?php
phpinfo();
?>

# cd /usr/ports/databases/memcached && make install clean
# cd /usr/ports/databases/pecl-memcache && make install clean
# echo ‘memcached_enable=”YES”‘ >> /etc/rc.conf

# apachectl restart


免费在线记账服务,个人理财好帮手,小型企业财务管理工具。
http://www.keepaccounts.com/

One Comment

  • david

    安装高精度计算BCMATH
    cd /usr/ports/math/php5-bcmath && make install clean

Leave a Reply