方案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. MT 【331】两元非齐次不等式

    若正实数$x,y$满足$x^3+y^3=(4x-5y)y$ 则 $y$ 的最大值为____ 解答:$x^3+y^3+y^2=4(x-y)y\le x^2$,故$y^3+y^2=x^2-x^3=\dfr ...

  2. opencontrail—VXLAN模式下数据包的传输过程

    在这篇文章中,我们将看到VM生成的数据包如何能够到达另一个VM或外部资源,Neutron使用OpenContrail插件的上下文中的关键概念/组件是什么. 我们将重点介绍OpenContrail,它如 ...

  3. LOJ子序列

    题目描述 https://loj.ac/problem/6074 题解 对于子序列的dp,我们可以设置一个dp. 我们设dp[i]表示以i这个字符结尾的子序列个数,转移为dp[i]+=∑dp[k]-d ...

  4. CF271D 【Good Substrings】

    定义哈希函数 \(H(c)=\sum_{i = 1} ^ m c_i*b^{m-i}\) \(H(C,K+1)=H(C,K)*b+C_{K+1}\)(K个坏字母) 用long long #includ ...

  5. C#面向对象基本概念总结

    快过年了,发一篇自己的复习总结.以下内容均是个人理解,如文章有幸被浏览,如有错误的地方欢迎大家提出,相互学习相互进步! 面向对象三大基本特征:封装,继承,多态 一.类 (对象声明的三种方式:以普通基类 ...

  6. PTA编译总结求最大值及其下标

    代码: #include<stdio.h>    int main(void)    {    int i,index=0,n;    int a[10];    scanf(" ...

  7. 年月日时分秒毫秒+随机数getSerialNum

    package com.creditharmony.apporveadapter.core.utils; import java.io.ByteArrayInputStream; import jav ...

  8. VMware 安装Linux系统 CentOS

    VMware 安装Linux系统 CentOS 1.  下载镜像系统 centos镜像下载地址:https://www.centos.org/download/ 选择DVD下载即可 linux各版本下 ...

  9. 手机端开发,基础设置1-body-fontsize

    一.设计稿设计大小按照750设计. 二.单位使用rem,相对于body  fontsize 相对大小计算. 三.假设750下,body fontsize 为100,为了方便计算. 四.通过设置当前设备 ...

  10. arrow function and bind

    Can you bind arrow functions? https://stackoverflow.com/questions/33308121/can-you-bind-arrow-functi ...