惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
Lohrmann on Cybersecurity
S
Secure Thoughts
I
Intezer
Forbes - Security
Forbes - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
H
Help Net Security
IT之家
IT之家
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
宝玉的分享
宝玉的分享
S
Securelist
T
The Exploit Database - CXSecurity.com
博客园 - 叶小钗
Security Latest
Security Latest
The Cloudflare Blog
Jina AI
Jina AI
T
Tenable Blog
J
Java Code Geeks
G
GRAHAM CLULEY
C
CERT Recently Published Vulnerability Notes
SecWiki News
SecWiki News
AI
AI
博客园 - 聂微东
S
Schneier on Security
博客园_首页
爱范儿
爱范儿
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 【当耐特】
T
Threatpost
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
W
WeLiveSecurity
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
S
Security Affairs
T
Tor Project blog
T
Tailwind CSS Blog
N
News | PayPal Newsroom
C
CXSECURITY Database RSS Feed - CXSecurity.com
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
The Register - Security
The Register - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security

博客园 - darkblue

mysql官方资源 MYSQL时间查询相关 mysql-用户管理 mysql备份还原 水液代谢与五脏调节 津液 献给成长中的孩子们 oracle--v$lock type字段详解 iis日志字段解析 Asp.net Core学习文章 如何让vs2017 EF实体生成支持Mysql 和 Oracle? 连接sqlexpress mysql-root本地无法登录处理 mysql主从复制跳过错误 64位系统下powerdesigner15连接oracle odbc 解决“指定的服务已经标记为删除”问题 mysql系列-安装及服务启动 数据缓存管理 redis-在乌班图下设置自动启动
阿里云乌班图16配置-PHP环境(包括mysql及apache安装)
darkblue · 2017-07-29 · via 博客园 - darkblue

1. 安装apache

 apt-get update  

  apt-get install apache2  

  service apache2 restart  

  通过浏览器访问服务器的IP,如果出现Apache欢迎界面,表示安装成功

2.安装php5.6 

  如果已经有装过,则先删除相关包

sudo apt-get purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

添加以下 PPA

sudo add-apt-repository ppa:ondrej/php

  按提示,如果需要则安装software-properties-common

sudo apt-get install software-properties-common

安装php版本

sudo apt-get update
sudo apt-get install php5.6

安装扩展模块 

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml

安装完毕,确认版本 

sudo php -v

然后在/var/www/html下面用vi创建一个php测试页面

<?php 
      //outputs php configuration info
      phpinfo(); 
?>

3. 安装MySQL 

    apt-get install mysql-server mysql-client

    mysql -u root -p 登录mysql测试一下

启停mysql服务使用 service mysql stop/start

    授权root用户远程登录:

     GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

      FLUSH PRIVILEGES;

    开启远程访问

     vi  /etc/mysql/mysql.conf.d/mysqld.cnf

     注释掉行 bind-address = 127.0.0.1

     重启mysql /etc/init.d/mysql restart