惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

博客园 - victl

spatialie运行出错的解决办法 gnupg的使用 KDE5 Plasma日常软件使用心得[常更常新] 终于忍不了xfce的界面,换成kde吧,超极酷!相信每个人都会爱上它的! 小米随身wifi到手,准备开搞当个ap给linux共享wifi上网! zsh会读取的配置文件 类苹果DOCK,cairo-dock++gvfs文件管理 图形实用工具grsync gparted programming 词典:goldendict 安装网络相关工具 若干大件:libreoffice, jdk, calibre 一些字体(来源:archlinuxcn) 解决archlinuxcn的keyring问题 安装fcitx输入中文 video inkscape digikam wqy-zenhei, firefox-i18n-zh-cn, flashplugin, wqy-microhei ttf-arphic-ukai ttf-arphic-uming file-roller unrar zip unzip p7zip arj etc Configuring Zsh makethe 'locate' available to the system.
Configuring LAMP
victl · 2015-05-12 · via 博客园 - victl

First, install necessory packages:

yaourt -S apache php mariadb phpmyadmin php-apache 

 Note: libphp5.so included with php-apache does not work with mod_mpm_event (FS#39218). You will have to use mod_mpm_prefork instead. Otherwise you will get the following error:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed
httpd.service: control process exited, code=exited status=1


As the configuration of /etc/httpd/conf/httpd.conf has for standard the mod_mpm_event you'll have to use mod_mpm_prefork in order to libphp5.so work properly, so open /etc/httpd/conf/httpd.conf and replace:

LoadModule mpm_event_module modules/mod_mpm_event.so

with

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

After mariadb package installation, you must run the command:

# mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql

Start/enable mysqld.service using systemd, and then run the setup script:

# mysql_secure_installation

MariaDB should now be up and running and secured!

$ mysql -u root -p

MariaDB> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
MariaDB> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
   ->     WITH GRANT OPTION;
MariaDB> GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%' IDENTIFIED BY 'my_optional_remote_password' WITH GRANT OPTION;

Ref: PHP, Apache HTTP Server