Archlinux MySQL PHP phpmyadmin Apache PHP-Apache Install

原创 2016年05月31日 00:47:38

By wangxian

  1. Install the MySQL:

    参考官方

    1. sudo pacman -S mysql
    2. sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
    3. sudo systemctl start mysqld.service
    4. sudo systemctl enable mysqld.service
    5. sudo mysql_secure_installation
    6. mysql -u root -p enter the empty pasword and set the new root password
    7. enter fourth y and complete
  2. Install Apache PHP PHP-Apache

    参考官方

    1. sudo pacman -S apache
    2. sudo systemctl start httpd
    3. sudo systemctl enable httpd
    4. curl 127.0.0.1 can get some data, that mean it works.
    5. In /etc/httpd/conf/httpd.conf, comment the line:
      #LoadModule mpm_event_module modules/mod_mpm_event.so
      and uncomment the line:
      LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
      Place this in the LoadModule list anywhere after
      LoadModule dir_module modules/mod_dir.so
      LoadModule php7_module modules/libphp7.so
      Place this at the end of the Include list:

      Include conf/extra/php7_module.conf
      

    restart the http.service
    sudo systemctl restart httpd
    OK, It’s work to accss the http://localhost

  3. Install phpmyadmin

    参考官方

    1. sudo pacman -S phpmyadmin php-mcrypt
    2. editing /etc/php/php.ini, and uncomment the following line:

      extension=mysqli.so
      extension=mcrypt.so
    3. Create the Apache configuration file:
      /etc/httpd/conf/extra/phpmyadmin.conf

      Alias /phpmyadmin "/usr/share/webapps/phpMyAdmin"
      <Directory "/usr/share/webapps/phpMyAdmin">
      DirectoryIndex index.php
      AllowOverride All
      Options FollowSymlinks
      Require all granted
      </Directory>
    4. And include it in /etc/httpd/conf/httpd.conf:

      phpMyAdmin configuration

      Include conf/extra/phpmyadmin.conf

    5. restart the http.service
      sudo systemctl restart httpd

OK, It’s done to accss the http://localhost/phpmyadmin

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014098275/article/details/51542410

Linux下配置phpMyAdmin

本文出自:http://blog.csdn.net/svitter 引文出自:http://hi.baidu.com/owbtkcjhtmaeuyr/item/175d53ff2ad985b231c1...
  • svitter
  • svitter
  • 2014-06-09 12:32:37
  • 1379

Centos7 搭配 LEMP(Nginx + MariaDB + PHP 7.1 + phpMyAdmin)

Centos7 搭配 LEMP(Nginx + MariaDB + PHP 7.1 + phpMyAdmin)参考的文章http://blog.itist.tw/2016/01/installing-...
  • biyongyao
  • biyongyao
  • 2017-10-15 23:44:32
  • 282

Archlinux MySQL PHP phpmyadmin Apache PHP-Apache Install

By wangxian Install the MySQL:参考官方sudo pacman -S mysql sudo mysql_install_db --user=mysql --basedir=...
  • u014098275
  • u014098275
  • 2016-05-31 00:47:38
  • 448

Arch 安装及配置

一 、获取镜像系统文件arch 镜像文件获取方式很多,这里介绍3种 : 中国科学技术大学开源软件镜像网阿里巴巴开源软件镜像站去官网。二、制作启动盘    Windows: win32diskimage...
  • y1574406771
  • y1574406771
  • 2018-03-26 22:23:54
  • 18

Arch Linux安装

1. 进入root后。执行 /dev 输入
  • hetxi
  • hetxi
  • 2016-01-06 00:52:04
  • 227

[算是原创否?]Arch Linux 下的BRAS配置方法 (感谢hellwolf学长!)

 我们东南大学上校外网用的是所谓的BRAS服务,其实是一个L2TP协议的VPN连接,学校网站上明显鄙视LInux用户,配置方法半个字都没提到,昏。 以前在浦口用Ubuntu的时候参考了hellwolf...
  • DDWN
  • DDWN
  • 2006-10-21 19:22:00
  • 6833

Linux学习_arch系统安装与配置

参照arch官网wiki:https://wiki.archlinux.org/index.php/Beginners%27_guide 前面略过u盘镜像制作,系统采用archlinux-2014.0...
  • u013320038
  • u013320038
  • 2014-09-10 11:25:12
  • 11954

linux小记:Ubuntu和Arch下的Apache

Apache2在Ubuntu和Arch下,配置文件的组织方式差别还是挺大的。小记一下,因为我过不久肯定就会忘的=.=Ubuntu在Ubuntu下,配置目录在/etc/apache2。在此目录下,主要配...
  • puppylpg
  • puppylpg
  • 2016-08-28 17:07:52
  • 1190

Arch Linux 安装(痛苦版)

我已经用了两年的Linux/FreeBSD;平时都是硬盘安装,除了BSD有点阻碍,linux不在话下。但是Arch Linux让我感到无助,虽然最后是用光驱安装成功。 为什么要装archLinux:我...
  • cafecheng
  • cafecheng
  • 2009-06-16 21:50:00
  • 1350
收藏助手
不良信息举报
您举报文章:Archlinux MySQL PHP phpmyadmin Apache PHP-Apache Install
举报原因:
原因补充:

(最多只允许输入30个字)