4

ラックスペースのあるクラウドサーバーにワードプレスをインストールしようとしています。

しかし、サーバー構成 (LAMP など) に関する知識が不足しているため、多くの構成ミスが発生しています。

まず、.httaccess が許可されていないと思います。2 つ目は、Wordpress とプラグインの更新が許可されていないことです。

私の仮想ホストファイルを見せてください:

    <VirtualHost *:80>
  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin adrian@my.com
  ServerName  my.com
  ServerAlias www.my.com


  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html, index.php
  DocumentRoot /home/devdreams/domains/my.com/public


  # Custom log file locations
  LogLevel warn
  ErrorLog  /home/devdreams/domains/my.com/log/error.log
  CustomLog /home/devdreams/domains/my.com/log/access.log combined

    <Directory />
      Options FollowSymLinks
      AllowOverride All
      Order deny,allow
      Deny from all
      Satisfy all
    </Directory>

  AccessFileName .htaccess


    <Directory /home/devdreams/domains/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>


    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    Alias /doc/ "/usr/share/doc/"

    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    LoadModule rewrite_module modules/mod_rewrite.so


</VirtualHost>

ワードプレス環境用に VH を設定するのを誰か手伝ってくれませんか

タークス

4

1 に答える 1

7

あなたが持っているので、.htaccessは機能しません。それをAllowOverride Noneに変更してくださいAllowOverride All

Wordpress とプラグインを更新できるようにするには、ファイル/ディレクトリの所有権を Web サーバーを実行しているユーザーに変更する必要があります。例えば: chown -R apache:apache /home/devdreams/domains/

于 2013-04-12T20:51:24.517 に答える