方案1:集成解决方案 
1.lnmp
https://lnmp.org/

2.xampp
https://www.apachefriends.org/zh_cn/index.html

3.oneinstack
https://oneinstack.com/

方案2:分别安装各个组件

步骤一:安装apache
ronyao@ubuntu:~$ sudo apt install apache2

http://localhost/

You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

说明:

c) apache2根目录,配置文件,以及修改访问权限
默认根目录:/var/www/html
配置文件: / etc/apache2/apache2.conf

# 在如下文件中把/var/www/ 改成 /home/cmm/ , 实现web目录的重定向!
sudo gedit /etc/apache2/apache2.conf

# 重启apache2服务器
service apache2 restart

步骤二:安装PHP 7.0
sudo apt-get install software-properties-common

sudo add-apt-repositoryppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.2

php -v

如果出现以上信息,则证明安装php7.0成功 整合一下php和apache

sudo apt install libapache2-mod-php7.2

步骤三:安装MySQL
因为Ubuntu14.04下没有Mysql5.7的源,需要连接外部资源库进行下载

wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb

sudo dpkg -i mysql-apt-config_0.6.0-1_all.deb

sudo apt-getupdate

sudo apt-getinstall mysql-server

# 在安装过程中要输入密码

然后整合一下php和mysql

sudo apt-get install php7.2-mysql

步骤四:重启MySQL和Apache
sudo service mysql restart

sudo service apache2 restart

OK,这样就安装好了

详细参考:
https://www.cnblogs.com/duanyingkui/p/7327960.html
https://blog.csdn.net/lin308127947/article/details/79847732
http://blog.csdn.net/qq_33430445/article/details/71180272


php框架补充材料:

Lumen --Laravel的精简版
Lumen就是Laravel的精简版!拎包入住的就是Laravel,需要买锅碗瓢盆,在拎包入住的就是Lumen。

一般来说开发API的服务端推荐使用Lumen,而开发web页面使用Laravel。

不知如何选择的时候,就用Laravel。
https://lumen.laravel-china.org/
https://lumen.laravel.com/

laravel - php框架
https://laravel.com/

Ubuntu18.10下配置PHP7.2 + Apache2 + Mysql5.7的更多相关文章

  1. suse linux 10 下配置vpn服务器(pptp)

     一.安装所需的软件包:      pptpd-*.rpm      ppp-*.rpm      pptp-*.rpm     一般情况下系统已经将pptp和ppp包安装好了,所以只需安装pptpd ...

  2. Ubuntu18.10下运行blender2.80bate闪退(问题?)

    Ubuntu18.10下直接运行blender2.80bate闪退, 运行blender2.79正常. ================= root@tom-laptop:/# uname -aLin ...

  3. Ubuntu18.04下配置深度学习开发环境

    在Ubuntu18.04下配置深度学习/机器学习开发环境 1.下载并安装Anaconda 下载地址:https://www.anaconda.com/distribution/#linux 安装步骤: ...

  4. Ubuntu18.10下安装Qt5.12过程记录

    首先你得先安装Ubuntu操作系统(我是在VMWare14中安装的Ubuntu18.10版本). 阿里镜像:https://opsx.alibaba.com/mirror 我这里下载的文件为:ubun ...

  5. Ubuntu18.10下出现Could not get lock /var/lib/dpkg/lock的错误

    最近在Windows10系统下使用Oracle VM VirtualBox6.0.2下安装的Ubuntu18.10时,运用sudo  apt-get install 安装pkg-config工具,在终 ...

  6. Ubuntu17.10 下配置caffe 仅CPU i386可以直接apt install caffe-cpu,但是怎么运行mnist代码我懵逼了

    Ubuntu16.04下配置caffe(仅CPU)  参考:http://blog.csdn.net/zt_1995/article/details/56283249   第二次配置caffe环境,依 ...

  7. ubuntu18.04系统安装及php7.2,apache2,mysql8,git,svn,composer,vs code 到安装 php 扩展配置php.ini 实现 laravel5.8 运行

    简介:记录自己从系统安装到环境配置完毕运行laravel的记录    • 下载ubuntu18.04桌面版        ○ ubuntu18.04中国官网 https://cn.ubuntu.com ...

  8. 在Ubuntu18.04下配置hadoop集群

    服务器准备 启动hadoop最小集群的典型配置是3台服务器, 一台作为Master, NameNode, 两台作为Slave, DataNode. 操作系统使用的Ubuntu18.04 Server, ...

  9. Ubuntu系统下使用php7+mysql+apache2搭建自己的博客

    很多人都有写博客的习惯,奈何国内的博客网站正在一家家地关闭与重整,部分博客网站也充斥着太多的广告,使用体验非常不好.对于爱写博客的朋友来说,其实还有一个更好的选择,那就是自己搭建一个博客. 搭建一个自 ...

随机推荐

  1. POJ2960 S-Nim 【博弈论】

    Description Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim ...

  2. SNOI 2019 字符串

    SNOI 2019 字符串 题目 题解: 解法一: 记一个数组\(f\),\(f[i]=\min_j\ s[j]\neq s[j+1] (j\geq i)\),直接sort即可,复杂度\(O(nlog ...

  3. Outlook 2013 日历/任务本地备份与还原

    1.日历: 备份日历:切换到日历项,按如下步骤备份.文件 --> 保存日历 --> 其它选项: 日期范围:指定日期(开始日期:2018/1/1,结束日期:2018/12/31) 详细信息: ...

  4. Redis主从配置和哨兵监控配置——服务器端环境搭建

    一:介绍 公司用到的redis框架,主要分为cluster的缓存集群和sentinel中的哨兵主从.这种的选用方式一般需要更具业务场景来做区分,两种框架的配置图为:右图为哨兵主从框架和cliuster ...

  5. Android Bundle详解

    http://blog.csdn.net/cswhale/article/details/39053411 1 Bundle介绍 Bundle主要用于传递数据:它保存的数据,是以key-value(键 ...

  6. 解决input框自动填充为黄色的问题

    题原因:input 框会自动填充一个颜色  如图所示  解决方法 :通过动画去延迟背景颜色的显示  代码如下 input:-webkit-autofill, textarea:-webkit-auto ...

  7. python13 1.函数的嵌套定义 2.global、nonlocal关键字 3.闭包及闭包的运用场景 4.装饰器

    ## 复习   '''1.函数对象:函数名 => 存放的是函数的内存地址1)函数名 - 找到的是函数的内存地址2)函数名() - 调用函数 => 函数的返回值  eg:fn()() =&g ...

  8. ORM系列之Entity FrameWork详解

    一. 谈情怀 从第一次接触开发到现在(2018年),大约有六年时间了,最初阶段连接数据库,使用的是[SQL语句+ADO.NET],那时候,什么存储过程.什么事务 统统不理解,生硬的将SQL语句传入SQ ...

  9. Oracle DB Day01(SQL)

    --时间为什么不是现在呢? --设置时区和显示时间 ALTER DATABASE SET TIME_ZONE='+08:00' select to_char(current_timestamp at ...

  10. Aras SP9里打开自己写的网页。

    首先把自己写的网页挂在IIS里或者网站挂到IIS里面. 然后再Aras里新增method //网页参数 var dialogArguments = new Array(); //窗体参数 var op ...