Linux下安装Apache和PHP

1.首先,在cygwin下安装了好几天也没有把php安装上,总是出现如下错误:

错误信息:
Installing PHP SAPI module: apache
[activating module `php5' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp5.so /usr/local/apache/libexec/libphp5.so
cp: cannot stat `libs/libphp5.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

安装cygwin的时候需要选择如下软件包:
安装软件包如下:
autoconf
automake
cygrunsrv
gcc-core
gcc-g++
make
perl
python

vim
libxml2
libxml2-devel
flex
libtool
gdbm
libgdbm
libgdbm-dev

bison
flex

2.后来只有采用linux虚拟机上安装了。

相关推荐