在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。
我根据tarball中的README完成了整个下载/untar/configure/make/make install过程,但找不到模块的。so,这意味着如果我没有这个文件,我就无法将php的代码加载到Apache中。
据我所知,我编译php正确。甚至通过了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

这个配置命令没有任何问题