zoukankan      html  css  js  c++  java
  • ubuntu 安装lamp

    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/都是可以访问的


  • 相关阅读:
    mybatis 乐观锁和逻辑删除
    JAVA实现DES加密实现详解
    axios 全攻略之基本介绍与使用(GET 与 POST)
    Ajax json 数据格式
    CentOS 7安装Hadoop 3.0.0
    <p>1、查询端口号占用,根据端口查看进程信息</p>
    CentOS查询端口占用和清除端口占用的程序
    Spring Boot Maven 打包可执行Jar文件!
    linux下运行jar
    maven 工程mybatis自动生成实体类
  • 原文地址:https://www.cnblogs.com/freeopen/p/5482904.html
Copyright © 2011-2022 走看看