XAMPPにConcrete5をインストールするときのトラブル回避方法
Modified by tomoac on 2012/2/3
Created by tomoac on 2012/1/28
※XAMPP1.7.7で動作確認して書いています。
インストーラの起動時にエラーとなる
最初のインストーラ起動時に以下のエラーとなる。
慌てずにスクロールしてみると、後ろの方にインストール画面が開いている。
(途中略)
エラーが出ないようにするには、"\xampp\php\php.ini"の以下を変更します。
要は、デフォルトではエラーを厳しくするように設定しているからです。
なお、この変更で、上記にある「C5 Request URLsサポート利用可?」のエラーもなくなります。
-----------------------------------------------
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://php.net/error-reporting
error_reporting = E_ALL | E_STRICT
-----------------------------------------------
-----------------------------------------------
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://php.net/error-reporting
error_reporting = E_ALL
-----------------------------------------------
そもそもXAMPPの初期の管理画面が開かない
XAMPPをインストールしていないPCから接続すると、以下のエラーになります。
管理画面は、外部からの接続を拒否していますので、上記エラーが出ますので、外部からの接続を許可します。
"C:\xampp\apache\conf\extra\httpd-xampp.conf"を開き、以下のように変更します。
--------------------------------------
# Close XAMPP security section here
<LocationMatch "^/(?i:(?:security))">
Order deny,allow
Deny from all
Allow from all
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from all
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
--------------------------------------
※ただし、この設定にすると誰からでもアクセスできますので、セキュリティ上は問題があります。アクセス元のIPアドレスを指定してアクセス制限したほうがいいです。