【发布时间】:2014-11-19 09:04:13
【问题描述】:
我正在尝试通过 Wordpress Wiki 和 Apache and php-fm/mod_proxy_fcgi 在 Arch Linux 上安装 Wordpress。
我通过 pacman 将 Wordpress 安装到“/usr/share/webapps/wordpress/”
当我尝试运行“systemctl start httpd”时出现错误。运行“systemctl status httpd.service -l”输出:
httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Wed 2014-11-19 03:48:11 EST; 26s ago
Process: 12633 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
Process: 13162 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 12463 (code=exited, status=0/SUCCESS)
systemd[1]: Starting Apache Web Server...
apachectl[13162]: AH00526: Syntax error on line 6 of /etc/httpd/conf/extra/httpd-wordpress.conf:
apachectl[13162]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
systemd[1]: httpd.service: control process exited, code=exited status=1
systemd[1]: Failed to start Apache Web Server.
systemd[1]: Unit httpd.service entered failed state.
systemd[1]: httpd.service failed.`
“/etc/httpd/conf/extra/httpd-wordpress.conf”包含:
Alias /testing "/usr/share/webapps/wordpress"
<Directory "/usr/share/webapps/wordpress">
AllowOverride All
Options FollowSymlinks
Require all granted
php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:$"
</Directory>
任何建议将不胜感激。
【问题讨论】:
-
你安装 PHP 了吗?文档说明: 注意:您需要将 Apache 配置为与 PHP 一起运行。检查 LAMP#PHP 页面以获取说明。 检查以下链接:wiki.archlinux.org/index.php/LAMP#PHP
-
是的,我有 php 5.6.3-1、php-apache 5.6.3-1、php-fpm 5.6.3-1、php-mcrypt 5.6.3-1 和 phpmyadmin 4.2。 11-1 安装。这似乎只是 Apache 不了解如何运行 httpd-wordpress.conf 中定义的 php_admin_value 命令的问题。我也按照phpmyadmin 的指示配置了文件,但没有变化。
-
如果我注释掉:Include conf/extra/httpd-wordpress.conf from /etc/httpd/conf/httpd.conf 那么我可以成功启动httpd。
标签: linux wordpress apache archlinux