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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MyScale Blog
MyScale Blog
U
Unit 42
M
MIT News - Artificial intelligence
小众软件
小众软件
P
Proofpoint News Feed
雷峰网
雷峰网
L
LangChain Blog
S
SegmentFault 最新的问题
腾讯CDC
F
Fortinet All Blogs
A
About on SuperTechFans
WordPress大学
WordPress大学
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
Recent Announcements
Recent Announcements
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog

博客园 - 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