原帖由 Kagilo 于 2007-8-9 00:17 发表
哪位能帮我!
最小安装的freebsd 6.2
pkg_add -r apache22,pkg_add -r php5,pkg_add -r php5-extensions
在httpd.conf 中加入
AddType application/x-httpd .php
AddType application/x-httpd-so ...
which is a: application/x-httpd-php
from: http//127.0.0.1
#cd /usr/ports/lang/php5
#make WITH_APACHE22=yes install clean
#cd ..
#cd php5-extensions/
#make config
┌────────────────────────────────────────────────────────────────────┐
│ Options for php5-extensions 1.1 │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ [ ] BCMATH bc style precision math functions │ │
│ │ [ ] BZ2 bzip2 library support │ │
│ │ [ ] CALENDAR calendar conversion support │ │
│ │ [X] CTYPE ctype functions │ │
│ │ [ ] CURL CURL support │ │
│ │ [ ] DBA dba support │ │
│ │ [ ] DBASE dBase library support │ │
│ │ [X] DOM DOM support │ │
│ │ [ ] EXIF EXIF support │ │
│ │ [ ] FILEINFO fileinfo support │ │
│ │ [X] FILTER input filter support │ │
│ │ [ ] FRIBIDI FriBidi support │ │
│ │ [X] FTP FTP support │ │
│ │ [X] GD GD library support │ │
│ │ [ ] GETTEXT gettext library support │ │
│ │ [ ] GMP GNU MP support │ │
│ │ [X] HASH HASH Message Digest Framework │ │
│ │ [X] ICONV iconv support │ │
│ │ [ ] IMAP IMAP support │ │
│ │ [ ] INTERBASE Interbase 6 database support (Firebird) │ │
│ │ [X] JSON JavaScript Object Serialization support │ │
│ │ [ ] LDAP OpenLDAP support │ │
│ │ [ ] MBSTRING multibyte string support │ │
│ │ [ ] MCRYPT Encryption support │ │
│ │ [ ] MHASH Crypto-hashing support │ │
│ │ [ ] MING ming shockwave flash support │ │
│ │ [ ] MSSQL MS-SQL database support │ │
│ │ [X] MYSQL MySQL database support │ │
│ │ [ ] MYSQLI MySQLi database support │ │
│ │ [ ] NCURSES ncurses support (CLI only) │ │
│ │ [ ] ODBC unixODBC support │ │
│ │ [ ] OPENSSL OpenSSL support │ │
│ │ [ ] PCNTL pcntl support (CLI only) │ │
│ │ [X] PCRE Perl Compatible Regular Expression support │ │
│ │ [X] PDF PDFlib support (implies GD) │ │
│ │ [X] PDO PHP Data Objects Interface (PDO) │ │
│ │ [X] PDO_SQLITE PDO sqlite driver │ │
│ │ [ ] PGSQL PostgreSQL database support │ │
│ │ [X] POSIX POSIX-like functions │ │
│ │ [ ] PSPELL pspell support │ │
│ │ [ ] READLINE readline support (CLI only) │ │
│ │ [ ] RECODE recode support │ │
│ │ [X] SESSION session support │ │
│ │ [ ] SHMOP shmop support │ │
│ │ [X] SIMPLEXML simplexml support │ │
│ │ [ ] SNMP SNMP support │ │
│ │ [ ] SOAP SOAP support │ │
│ │ [X] SOCKETS sockets support │ │
│ │ [X] SPL Standard PHP Library │ │
│ │ [X] SQLITE sqlite support │ │
│ │ [ ] SYBASE_CT Sybase database support │ │
│ │ [ ] SYSVMSG System V message support │ │
│ │ [ ] SYSVSEM System V semaphore support │ │
│ │ [ ] SYSVSHM System V shared memory support │ │
│ │ [ ] TIDY TIDY support │ │
│ │ [X] TOKENIZER tokenizer support │ │
│ │ [ ] WDDX WDDX support (implies XML) │ │
│ │ [X] XML XML support │ │
│ │ [X] XMLREADER XMLReader support │ │
│ │ [ ] XMLRPC XMLRPC-EPI support │ │
│ │ [X] XMLWRITER XMLWriter support │ │
│ │ [ ] XSL XSL support (Implies DOM) │ │
│ │ [ ] YAZ YAZ support (ANSI/NISO Z39.50) │ │
│ │ [X] ZIP ZIP support │ │
│ │ [X] ZLIB ZLIB support │ │
├─└────────────────────────────────────────────────────────────────┘─┤
│ [ OK ] Cancel │
└────────────────────────────────────────────────────────────────────┘
#make install clean
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |