./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --prefix=/usr/local/apache/php \ --with-config-file-path=/usr/local/apache/php make && make install
在configuration过程中我看不到严重错误,在安装过程中没有发现严重错
Apache安装在/usr/local/apache
,并且apxs已经被validation是正确的。
/usr/local/apache/php
没有被创build,也没有在任何地方生成libphp5.so。
我在Centos上安装5.2.17。
编辑 :这是完整的configuration命令:
./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-mysql \ --prefix=/usr/local/apache/php \ --with-config-file-path=/usr/local/apache/php \ --enable-force-cgi-redirect \ --disable-cgi \ --with-openssl \ --with-mcrypt \ --with-gd \ --with-pdo-mysql \ --without-sqlite \ --without-sqlite3 \ --enable-pdo \ --without-pdo-sqlite \ --with-zlib \ --with-gettext \ --with-gdbm \ --enable-pcnlt \ --with-curl
根据php INSTALL文件(我不能因为没有完整地阅读而犯错误……我在坐下来阅读整个事情之前花了一个小时的时间),你需要确保apache安装在
./configure --enable-so
在配置和使用PHP之前
./configure --with-apxs2=/usr/local/apache2/bin/apxs