繁体   English   中英

在Apache 2(Ubuntu 16)上安装PHP5模块

[英]Installing PHP5 module on Apache 2 (Ubuntu 16)

我正在尝试在Ubuntu 16.04.1服务器上的Apache 2.4.18上安装php 5.3.21。
我根据压缩包中的自述文件完成了整个下载/卸载/ configure / make / make install过程,但是找不到模块的.so,这意味着如果我没有此文件,则无法将php的代码加载到Apache中。
据我所知,我正确地编译了php。 它甚至通过了make test提供的make test
我如何指示make构建此文件?

您是否使用了正确的configure命令?

我使用PHP 5.3为我的服务器做了一个:

./configure --prefix=/usr/share/php53 --datadir=/usr/share/php53 --mandir=/usr/share/man --bindir=/usr/bin/php53 --with-libdir=lib/x86_64-linux-gnu --includedir=/usr/include/php53 --sysconfdir=/etc/php53/apache2 --with-config-file-path=/etc/php53/apache2 --with-config-file-scan-dir=/etc/php53/conf.d --enable-libxml --enable-session --with-pcre-regex=/usr --enable-xml --enable-simplexml --enable-filter --disable-debug --enable-inline-optimization --disable-rpath --disable-static --enable-shared --with-pic --with-gnu-ld --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-xpm-dir --enable-exif --with-zlib --with-bz2 --with-curl --with-ldap --with-mysqli --with-freetype-dir --enable-soap --enable-sockets --enable-calendar --enable-ftp --enable-mbstring --enable-gd-native-ttf --enable-bcmath --enable-zip --with-pear --with-openssl=/usr --with-imap --with-imap-ssl --with-kerberos --enable-phar --enable-pdo --with-pdo-mysql --with-mysqli --with-mcrypt=shared,/usr

此configure命令从未有任何问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM