【第22期】观点:IT 行业加班,到底有没有价值?

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

版权声明:本文为博主原创文章,未经博主允许不得转载。 举报

相关文章推荐

appserv安装错误(含apache2.2+php5+mysql+phpmyadmin)

appserv安装完,浏览器localhost出现找不到网页的情况,

apache phpmyadmin php mysql 域名转发

  apache配置 :              httpd.conf  增加  1.LoadModule php5_module "F:/php-5.2.14-Win32/...

程序员升职加薪指南!还缺一个“证”!

CSDN出品,立即查看!

Win7下安装配置PHP+Apache+Mysql+PHPMyAdmin环境教程(非集成)

=====================================Apache 服务安装 ========================================== Apache...

PHP5.4+Apache2.2+Mysql5.0+PHPMyAdmin3.2.5安装配置

PHP网站源码下载 1、 安装配置Apache2.2 (1、安装时默认安装,Network Domain, Server Name 我填写的localhost,Administrator's Email Address区域填你的邮件地址 (2、安装完后在安装目录下

ubuntu apache+php+mysql+phpmyadmin 服务器安装

[url]http://blog.sina.com.cn/s/blog_7cbe44af01019jk4.html[/url]
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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