留个备份,有空研究一下。

    1  yum install php56w-devel.x86_64
yum install httpd-devel.x86_64
vim /etc/php.ini
vim /etc/httpd/conf/httpd.conf
vim /etc/httpd/conf.modules.d/-php.conf
vim /etc/httpd/conf.modules.d/-mpm.conf
vim /etc/httpd/conf.modules.d/-base.conf
quit
exit
yum update
yum upgrade
php -v
httpd -v
yum list|grep httpd
yum install httpd
cd /etc/yum.repos.d
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
ls
vi epel.repo
vi epel.repo.rpmnew
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
rpm -qa|grep webstatic
vi epel.repo.rpmnew rm epel.repo
rm epel.repo
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
ls
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
yum install php
yum install php56w.x86_64 php56w-opcache.x86_64 php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
ls
vi webtatic.repo
rm webtatic.repo
rm webtatic-archive.repo
vi webtatic-archive.repo
rm webtatic-archive.repo
rm webtatic-testing.repo
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
ls
vi CentOS-Base.repo
vi epel.repo.rpmnew
mv epel.repo.rpmnew epel.repo
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
ls
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
ls
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
ls
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
mv epel.repo epel.repo.rpmnew
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
yum remove php
yum install php56w php56w-opcache php56w-devel.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-pear.noarch php56w-xml.x86_64 php56w-xmlrpc.x86_64
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
yum install php56w php56w-opcache php56w-devel php56w-gd php56w-ldap php56w-mbstring php56w-mysql php56w-pdo php56w-pear.noarch php56w-xml php56w-xmlrpc
rpm -qa | grep webstatic
ls
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-pdo php-pear php-fpm php-cli php-xml php-process php-gd php-common
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mysql php-pdo php-pear php-fpm php-cli php-xml php-process php-gd php-common
php -v
df -h
fdisk -l
fdisk -S /dev/xvdb
fdisk -l
mkfs.ext3 /dev/xvdb1
vim /etc/fstab
mkdir /mnt/web/asae
mkdir /mnt/web
mkdir /mnt/web/asae
echo '/dev/xvdb1 /mnt ext3 defaults 0 0' >> /etc/fstab
mount -a
df -h
cd /mnt
ls
mkdir web
mkdir web/asae
ls
cd web
cd asae/
vim /etc/httpd/conf/httpd.conf
vim /etc/httpd/conf.d/welcome.conf
vim /etc/httpd/conf.d/vhost.conf
service httpd status
service httpd start
yum install epel-release
useradd asaweb;
ll
cd ../
ll
cd usr
ll
cd ../
ll
passwd asaweb
logout
ll
cd /mnt
ll
cd web
ll
cd ../
ll
chown -R asaweb ./web
ll
cd web
ll
cd ../
exit
l
ll
cd /mnt/web
ll
cd /etc/httpd
ll
cd conf.d
ll
vi vhost.conf
cd ../conf
ll
vi httpd.conf
cd ../conf.d
ll
vi vhost.conf
httpd restart
apachectl restart
ll
vi vhost.conf
apachectl restart
exit;
vim /etc/ssh/sshd_config
service sshd restart

centos服务器全新安装php,apache环境的更多相关文章

  1. Linux(CentOS)系统下安装好apache(httpd)服务后,其他电脑无法访问的原因

    原文:Linux(CentOS)系统下安装好apache(httpd)服务后,其他电脑无法访问的原因 今天试了下在虚拟机上利用CentOS系统的yum命令安装好了httpd(apache2.4.6), ...

  2. 阿里云服务器ubuntu安装java运行环境

    服务器 阿里云服务器ubuntu安装java运行环境 转:http://www.codingyun.com/article/45.html 今天来给大家介绍一下在阿里云ubuntu服务器下安装java ...

  3. centos系统编译安装nginx+php环境另加独立mysql教程

    以前看过的安装nginx+php环境都带了mysql数据库了,这个是因为很多站长都是nginx+php+mysql都在同一台服务器了,那么今天我们是单独处理了,一个是nginx+php环境,然后mys ...

  4. Centos服务器上NFS灾备环境及KVM的搭建及使用

    1.概述 由于在单台服务器上搭建灾备环境需要KVM和NFS的支持,下面先列出KVM的搭建流程,再列出使用NFS实现单台服务器灾备的流程. A.搭建KVM环境 1>.主机环境准备 Linux Sy ...

  5. 《Centos服务器版安装教程》

    安装前准备: (1)  首先大家需要在电脑上安装一个VMware (2)  Centos7系列的一个服务器版镜像 有了这两样东西,下面我们就开始安装了 一.     打开VMware,新建一个虚拟机 ...

  6. 记 CentOS 服务器上安装 neo4j 图数据库及本地访问

    下载 去官网下载压缩包放到服务器上.地址为neo4j 下载中心,我这里选择的是 Neo4j 3.5.25 (tar).具体如何做呢?我这里使用的是土方法,即先压缩包下载到本地电脑(win 10系统), ...

  7. centos 服务器编译安装apache+php

    1.检查服务器中是否自带httpd,如果/etc/httpd/httpd.conf,说明系统自带httpd服务,需要卸载或关闭服务,不要让他影响到本次安装的服务启动 可以用 service httpd ...

  8. Linux服务器部署.Net Core笔记:三、CentOS 7上安装.NetCore运行环境

    1.要开始安装 .NET,您需要注册 Microsoft 签名密钥并添加 Microsoft 产品提要.每台机器只需要做一次. 打开命令提示符并运行以下命令:sudo rpm -Uvh https:/ ...

  9. CentOS 6上安装xfce桌面环境

    [日期:2012-01-30]   在新的CentOS 6上默认没有包含xfce的桌面环境,使用yum也找不到这些包,但是自己又喜欢这种简单的桌面环境,此时可以使用下面的方法来安装 [plain] $ ...

随机推荐

  1. 跨平台开发之阿里Weex框架环境搭建(一)

    转载自:http://www.cnblogs.com/fozero/p/5995122.html 一.介绍 Weex是阿里今年6月份推出的跨平台解决方案,6月底正式开源.官网 https://alib ...

  2. python的with...as用法

    with...as叫做上下文管理器,作用是进入一个对象的作用域和离开时,可以执行执行一定的操作.这个操作是可以自己 设定的. 写个例子学习一下: class test(): def __init__( ...

  3. Unity UI on the HoloLens

    Following the steps under "Required configuration" will allow Unity UI to continue to work ...

  4. Python 之 装饰器的写法

    普通装饰器 1. 不带参数的普通装饰器 from functools import wraps def use_logging(func): @wraps(func) # 使得装饰器函数和原函数有一样 ...

  5. 数据结构与算法(1)支线任务4——Lowest Common Ancestor of a Binary Tree

    题目如下:https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/ Given a binary tree, fin ...

  6. [REP]AWS Regions and Availability Zones: the simplest explanation you will ever find around

    When it comes to Amazon Web Services, there are two concepts that are extremely important and spanni ...

  7. Solr导入MySql中的数据

    1.参照 http://www.cnblogs.com/luxh/p/5016894.html 部署好solr的环境 2.在solr_home下建立一个core_item目录 [root@iZ23ex ...

  8. (转)C#调用默认浏览器打开网页的几种方法

    转载,原文地址:http://blog.csdn.net/testcs_dn/article/details/42246969 CSharp调用默认浏览器打开网页的几种方法 示例界面: 方法一:从注册 ...

  9. css狂记

    接着上一篇 html狂记,同样是DIV+CSS传统站点开发,同样只是收集.整理... CSS 背景属性(Background) 属性 描述 CSS background 在一个声明中设置所有的背景属性 ...

  10. Android自动化学习笔记之MonkeyRunner:MonkeyRunner的录制和回放

    ---------------------------------------------------------------------------------------------------- ...