4

我正在尝试在带有机架空间的云服务器中安装 wordpress。

但是我在服务器配置(LAMP 等)方面缺乏知识,这让我做了很多错过的配置。

首先,我认为 .httaccess 是不允许的。其次,不允许更新 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>

有人可以帮我为 wordpress 环境配置我的 VH

塔克斯

4

1 回答 1

7

您的 .htaccess 将不起作用,因为您有AllowOverride None,将其更改为AllowOverride All

就能够更新 Wordpress 和插件而言,您需要将文件/目录的所有权更改为运行网络服务器的用户。例如: chown -R apache:apache /home/devdreams/domains/

于 2013-04-12T20:51:24.517 回答