我有一台嵌入式主机,硬盘是CF卡,大概2G,装完一些应用之后,/usr下空间就很小了,不能安装PORTS,所以用PORTS下安装就很费劲了。只好用最古老的方式,了
1 下载 php5.2.6.tar.gz
http://www.php.net/downloads.php
2 tar xzvf php5*.gz
cd php5*
./configure --with-mysql --with-apxs2 --with-gd
make
make install
3 在 http.conf中添加如下内容
DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
4 reboot OK