红联Linux门户
Linux帮助

在 FreeBSD 6.1 安? Apache+MySQL+PHP

发布时间:2006-11-13 00:54:35来源:红联作者:heartweb
底下以 Port ?安?
#安? MySQL Server
cd /usr/ports/database/mysql50-server
make install clean

make WITH_CHARSET=big5 WITH_XCHARSET=all install clean
更改 /var/db/mysql 目?的?限
chown -R mysql:mysql /var/db/mysql/
?? MySQL Server
Starting MySQL.. SUCCESS!
?定 MySQL Server 的 root 密?(密??自?,後面一行的主?名??自行更改)
/usr/local/bin/mysqladmin -u root password '123456'
#安? Apache Web Server
cd /usr/ports/www/apache22
make install clean
#安? PHP5
cd /usr/ports/lang/php5
make install clean
?出?一???
[X] CLI Build CLI version
[X] CGI Build CGI version
[X] APACHE Build Apache module
[X] FASTCGI Enable fastcgi support (CGI only)
[X] PATHINFO Enable path-info-check support (CGI only)
#安? PHP5-Extensions
cd /usr/ports/lang/php5-extensions
#??所需要的延伸套件
make config
[X] BZ2 bzip2 library support
[X] CTYPE ctype functions
[X] DOM DOM support
[X] GD GD library support
[X] GETTEXT gettext library support
[X] HASH HASH Message Digest Framework
[X] ICONV iconv support
[X] MBSTRING multibyte string support
[X] MCRYPT Encryption support
[X] MYSQL MySQL database support
[X] ODBC unixODBC support
[X] PCRE Perl Compatible Regular Expression support
[X] PDO PHP Data Objects Interface (PDO)
[X] POSIX POSIX-like functions
[X] SESSION session support
[X] SIMPLEXML simplexml support
[X] SQLITE sqlite support
[X] TOKENIZER tokenizer support
[X] XML XML support
[X] XMLREADER XMLReader support
[X] XMLWRITER XMLWriter support
[X] ZLIB ZLIB support
#因? Extensions 有? GD library 所以必?要??加? T1LIB 及 TRUETYPE 同? SQLITE 也必???是否?? UTF-8 ??
Options for php5-gd 5.1.6
[X] T1LIB Include T1lib support
[X] TRUETYPE Enable TrueType string function
# PHP 下的精?型文字?料? Text Database
Options for php5-sqlite 5.1.6
[X] UTF8 Enable UTF-8 support
加入下面?行,才能支援 PHP
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.htm index.html index.pl index.cgi
#?? php.ini-dist 成? php.ini
cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini
?定?????
mysql_enable="YES"
apache22_enable="YES"
文章评论

共有 1 条评论

  1. 90.144.33.* 于 2007-07-06 00:41:23发表:

    拜读了