zoukankan      html  css  js  c++  java
  • Ubuntu 16.04 安装 Apache, MySQL, PHP7

    Ubuntu 16.04 LTS国内快速更新源

    一、源文件位置

    备份并替换/etc/apt/sources.list的源内容:

    二、更改源文件内容

    sudo vi /etc/apt/sources.list
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    ##测试版源
    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

    1.安装之前先更新系统

    1 sudo apt update 

    2.安装Apache2

    1 sudo apt install apache2

    3.安装PHP

    1 sudo apt install php
    2 sudo apt-get install libapache2-mod-php

    4.安装MySQL

    1 sudo apt install mysql-server php7.0-mysql
    2 sudo apt-get install mysql-client
    3 mysql_secure_installation

    5.安装phpmyadmin

    1 sudo apt-get install phpmyadmin
    2 sudo apt-get install php-mbstring
    3 sudo apt-get install php-gettext
    4 sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

    配置phpmyadmin

    1 nano /etc/php/7.0/apache2/php.ini
    display_errors = On(显示错误日志,出现两次,都要改,不然无效)
    extension=php_mbstring.dll (开启mbstring)
  • 相关阅读:
    Dark 运算符
    Dark 数据类型
    分支管理
    Git 远程仓库
    DELPHI实现百度开放平台
    win2008使用FireDac连接ORACLE数据库问题
    20160115学习日志
    20160113第一个ANDRIOD开发日志
    struts2漏洞与修复
    DELPHI XE5 与SQLITE
  • 原文地址:https://www.cnblogs.com/huntaiji/p/6071946.html
Copyright © 2011-2022 走看看