2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ECCube3をApache2.4系で動かすときにハマった.htaccess

Posted at

ECCube3のソースをダウンロードしてドキュメントルートに置く

表題の通り、ECCube3をApache2.4系(実際はdockerのphp:7.1-apache)で動かそうとしたら
何かしらんが動かない。

Forbidden
You don't have permission to access / on this server.

ログを見てみると

AH01797: client denied by server configuration: /var/www/html/

なんじゃらほい。

なんじゃらほいと思ったらECCube3のパッケージにもともと入っている.htaccessが

order allow,deny
deny from all

となっており、これApache2.4じゃアカーン書き方です。

Require all granted
#order allow,deny
#deny from all

と書き直してそっ閉じしましょう。
おしまい。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?