1. sudo apt-get install apcher2

2.sudo apt-get install php5

3.sudo apt-get install mysql-server

4.sudo apt-get install phpmyadmin

5.配置https://help.ubuntu.com/14.04/serverguide/phpmyadmin.html

配置

The configuration files for phpMyAdmin are located in /etc/phpmyadmin. The main configuration file is /etc/phpmyadmin/config.inc.php. This file contains configuration options that apply globally to phpMyAdmin.

To use phpMyAdmin to administer a MySQL database hosted on another server, adjust the following in /etc/phpmyadmin/config.inc.php:

$cfg['Servers'][$i]['host'] = 'db_server';

Replace db_server with the actual remote database server name or IP address. Also, be sure that the phpMyAdmin host has permissions to access the remote database.

Once configured, log out of phpMyAdmin and back in, and you should be accessing the new server.

The config.header.inc.php and config.footer.inc.php files are used to add a HTML header and footer to phpMyAdmin.

Another important configuration file is /etc/phpmyadmin/apache.conf, this file is symlinked to /etc/apache2/conf-available/phpmyadmin.conf, and, once enabled, is used to configure Apache2 to serve the phpMyAdmin site. The file contains directives for loading PHP, directory permissions, etc. From a terminal type:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload

如果配置成功,浏览器输入localhost/phpmyadmin以及localhost/都是可以访问的

转载于:https://www.cnblogs.com/freeopen/p/5482904.html

ubuntu 安装lamp相关推荐

  1. Ubuntu安装LAMP

    在安装vim时遇到了一个问题: E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用) E: 无法获取 dpkg 前端锁 (/var/lib ...

  2. ubuntu 安装 lamp 环境

    今天介绍一下Linux下LAMP(Apache+PHP+MySql)环境配置: 1.下载软件 MySql:wget http://down1.chinaunix.net/distfiles/mysql ...

  3. Ubuntu 安装LAMP ...

    Apache $sudo apt-get install apache2 在浏览器中测试 http://localhost PHP $sudo apt-get install php5 libapac ...

  4. ubuntu lamp php5.6,Ubuntu安装LAMP环境(PHP5.6) 以及下载安装phpmyadmin

    参考路径: http://blog.nciaer.com/?p=133 修改apache(2.4.18)的web路径时, 需要将 /etc/apache2/sites-available/000def ...

  5. ubuntu 安装 LAMP

    1.apt更新源 apt-get install apache2 php5 mysql-server mysql-client php5-mysql libapache2-mod-php5 转载于:h ...

  6. ubuntu下安装lamp环境

    一.安装 1. 首先安装SSH sudo apt-get install ssh 2.安装MySQL(虽然现在最新版为5.1,但是还只能装5.0版本) sudo apt-get install mys ...

  7. Ubuntu一键安装LAMP环境

    ubuntu是一款以桌面应用为主的开源linux操作系统,作为初学者学习linux操作系统,也更为简单和容易上手.在Ubuntu上搭建lamp系统的方式有很多,这里就介绍一种最简单高效的安装方法: a ...

  8. Linux (Ubuntu/deepin等)终端命令安装Lamp

    LAMP(Linux- Apache-MySQL-PHP)网站架构是目前国际流行的Web框架,该框架包括:Linux操作系统,Apache网络服务器,MySQL数据 库,Perl.PHP或者Pytho ...

  9. ubuntu一键安装LAMP 及一键卸载

    ubuntu一键安装LAMP 及一键卸载 一键安装LAMP服务: sudo tasksel install lamp-server 一键卸载LAMP: sudo tasksel remove lamp ...

最新文章

  1. OpenCV使用 GrabCut 算法进行交互式前景提取
  2. 工作笔记---巡检记录
  3. FTP服务(vsftpd)配置
  4. java封装继承多态语法,GO语言中封装,继承,和多态
  5. SAP alv 去掉标准按钮
  6. 【Android】ClassLoader Tree
  7. Sencha 自定义组件函数回调
  8. HTML---HTML简介
  9. python socketio async client_electron/socket.io client-python socketio/aiohttp server//连接失败
  10. Wince6.0应用开发:一、平台搭建
  11. linux脚本等待10s,bash – 按Enter键或等待10秒钟以继续
  12. 相机模型与标定(一)--相机标定概述
  13. ug470_7Series_Config 中文文档 | Xilinx
  14. c语言编译器 代码优化,C语言 之编译器优化
  15. 字节(B)、千字节(KB)、兆字节(MB)、积 (GB)字节之间的换算
  16. java8 lambda 处理分类和子分类的技巧
  17. 琵琶行 (白居易诗作)
  18. 从0到100全流程构建「数据指标体系」
  19. Python中int32转int64
  20. matlab 蒙特卡罗计算pi值

热门文章

  1. 响应式网页设计代码_消除响应式网站建设设计中的缺陷
  2. scrapy 中爬取时被重定向_一篇文章教会你理解Scrapy网络爬虫框架的工作原理和数据采集过程...
  3. spring cloud 集成consul
  4. html5 数据验证,【译】表单数据校验
  5. python众数问题给定含有n个元素的多重集合s_2-1 问题描述:给定含有n个元素的多重集合S - 下载 - 搜珍网...
  6. 用jsp_servlet实现在mysql中存储图片_从数据库中读取并生成图片的Servlet
  7. flag在java怎么用_JAVA flag怎么用
  8. cmd 调用webservice接口_c# 三种方法调用WebService接口
  9. python 只能将最后一行写入excel_Python 应用 办公自动化之 Excel(上)
  10. glide 显示图片慢_做个看图片的App玩玩_第一篇