linux(centos6.5)+appache+mysql+php 共享链接地址:https://pan.baidu.com/s/4slwVduP
第一步是软件环境准备,vmare+xshell,具体如何下载,可以百度
第二步是安装centos6.5,地址:https://jingyan.baidu.com/article/25648fc1a235c99191fd0008.html。这个可以百度一下,很多。
第三步给xshell安装上传插件,因为是在vmare上安装的,一个个在虚拟机上去下载比较麻烦,所以,直接按章xshell插件,步骤如下:
yum provides */rz
yum install -y lrzsz
第四步将所有的文件包都上传到linux服务器上去;主要文件夹是 /usr/local/src 并且全部解压;解压的命令:tar -zxvf ********
然后具体的步骤可以按照阿铭老师的步骤去做,地址路径:http://www.apelearn.com/study_v2/chapter17.html
在这里有些文件已经不存在了,这里我顺便补充一下:
1在安装apache之前,需要提前安装apr+apr-util以及pcre三个文件,这里我都放在共享链接的地址里面了
2里面有很多东西要安装,这里我就不细说,
yum -y install gcc 安装gcc yum install -y gcc gcc-c++ yum provides */rz //xshell 安装上传插件 yum install -y lrzsz 在配置SELINUXTYPE=disabled时,要将selinux=0提前配置,否则,linux将会死机 安装apr cd apr-1.6.3 ./configure --prefix=/opt/apr make && make install · 安装apr-util cd apr-util-1.6.1 yum install expat-devel -y ./configure --prefix=/opt/apr-util --with-apr=/opt/apr make && make install 安装prce cd pcre-8.00 ./configure --prefix=/opt/pcre make && make install 安装apache cd httpd-2.2.34 yum install -y zlib-devel ./configure --prefix=/opt/apache --enable-modules=all --enable-mods-shared=all --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-rewrite --enable-status --with-apr=/opt/apr --with-apr-util=/opt/apr-util/ --with-pcre=/opt/pcre make && make install 安装php cd php-5.6.32 yum install -y libxml2-devel yum install -y openssl openssl-devel yum install -y freetype freetype-devel yum install -y bzip2 bzip2-devel yum install -y libjpeg libjpeg-devel yum install -y libpng libpng-devel 下载地址:https://centos.pkgs.org/6/epel-i386/epel-release-6-8.noarch.rpm.html · rpm -ivh "http://mirror.centos.org/centos/6/extras/i386/Packages/epel-release-6-8.noarch.rpm" yum install -y libmcrypt-devel ./configure \ --prefix=/usr/local/php \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-config-file-path=/usr/local/php/etc \ --with-mysql=/usr/local/mysql \ --with-libxml-dir \ --with-gd \ --with-jpeg-dir \ --with-png-dir \ --with-freetype-dir \ --with-iconv-dir \ --with-zlib-dir \ --with-bz2 \ --with-openssl \ --with-mcrypt \ --enable-soap \ --enable-gd-native-ttf \ --enable-mbstring \ --enable-sockets \ --enable-exif \ --disable-ipv6
如果在这途中,所在的linux还缺少一些库的话,可以百度一下,自己下载;这就不一一做演示了。