linux php环境搭建
Apache安装 下载要安装的Apache版本对应的源码 安装apr和apr-util yum install - y apr . x86_64 yum install - y apr - util . x86_64 解压源码文件,进入源码目录 . /configure --prefix=/ usr / local / apache / make && make install prefix为Apache的安装地址 Apache安装完成 PHP安装 下载要安装的PHP版本对应的源码 解压,进入源码目录 . /configure --prefix=/ usr / local / php7 . 0.5 -- with - curl -- with - freetype - dir -- with - gd -- with - gettext -- with - iconv - dir -- with - kerberos -- with - libdir = lib64 -- with - libxml - dir -- with - mysqli -- with - openssl -- with - pcre - regex -- with - pdo - mysql -- with - pdo - sqlite -- with - pear -- with - png - dir