Archlinux MySQL PHP phpmyadmin Apache PHP-Apache Install
2016-05-31 00:47
573 查看
By wangxian
Install the MySQL:
参考官方sudo pacman -S mysql
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mysqld.service
sudo systemctl enable mysqld.service
sudo mysql_secure_installation
mysql -u root -penter the empty pasword and set the new root password
enter fourth y and complete
Install Apache PHP PHP-Apache
参考官方sudo pacman -S apache
sudo systemctl start httpd
sudo systemctl enable httpd
curl 127.0.0.1can get some data, that mean it works.
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
Install phpmyadmin
参考官方sudo pacman -S phpmyadmin php-mcrypt
editing /etc/php/php.ini, and uncomment the following line:
extension=mysqli.so extension=mcrypt.so
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>
And include it in /etc/httpd/conf/httpd.conf:
phpMyAdmin configuration
Include conf/extra/phpmyadmin.conf
restart the http.service
sudo systemctl restart httpd
OK, It’s done to accss the http://localhost/phpmyadmin
相关文章推荐
- MySQL中的integer 数据类型
- MySQL存储过程
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- MySQL创建用户及权限控制
- MySQL管理数据表
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- MySQL 备份和恢复策略
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列
- Linux下修改MySQL编码的方法
- MySQL Server 日志
- MySQL 安全事宜
- MySQL 备份与恢复