2014-11-19 2 views
0

저는 Wordpress를 Wordpress WikiApache and php-fm/mod_proxy_fcgi을 통해 아치 리눅스에 설치하려고합니다. 아파치 웹 서버를 시작하지 못했습니다

나는 "는/usr/share/웹 어플리케이션/워드 프레스 /"

내가 실행하려고

내가 오류가 "아파치를 시작 systemctl"로 팩맨을 통해 워드 프레스를 설치했습니다.

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> 

어떤 제안을 크게 감상 할 수있다 "systemctl 상태 httpd.service -l"출력 실행 .

+0

PHP를 설치 했습니까? 설명서에는 다음 내용이 나와 있습니다. _ 참고 : PHP로 실행되도록 Apache를 구성해야합니다. 지시 사항은 LAMP # PHP 페이지를 확인하십시오 ._ 다음 링크를 확인하십시오. https://wiki.archlinux.org/index.php/LAMP#PHP –

+0

예, 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] (https://wiki.archlinux.org/index.php/PhpMyAdmin)을 통해 지시 된대로 파일을 구성했지만 변경하지 않았습니다. – travisw

+0

댓글을 달았 으면 : /etc/httpd/conf/httpd.conf의 conf/extra/httpd-wordpress.conf 을 포함하면 httpd를 성공적으로 시작할 수 있습니다. – travisw

답변

1

PHP를 fastCGI 프록시 또는 PHP-FPM과 함께 사용하면 PHP 런타임이 더 이상 Apache 런타임 프로세스에 포함되지 않습니다. 프로세스가 서로 다른 메모리에 저장되기 때문에 요청이 서버 인 경우에도 아파치 웹 서버와 PHP의 성능이 향상됩니다.

그러나 이것은 아파치 설정에서 php admin 값을 더 이상 저장할 수 없다는 것을 의미합니다. 아파치 자체에서 php를 실행할 때 가능합니다. 런타임은 그 라인을 따라 FPM, fcgid, 또는 뭔가있을 것 중 어디에

당신은 일반적으로 /etc/php5/<runtime>/에 저장 글로벌의 php.ini 파일에

open_basedir = "<insert path here>" 

를 추가하여 서버 전체의 open_basedir 제한을 추가 할 수 있습니다.

또한 동일한 서버에 여러 웹 사이트가있는 경우 웹 사이트의 루트 디렉토리에있는 .user.ini 개의 파일을 사용하여 PHP 값을 설정할 수 있습니다. .user.ini 파일에 설정된 값은 허용되는 경우 의 모든 PHP 세트보다 우선합니다 (PHP Manual 참조)

관련 문제