【问题标题】:Error installing Social Engine安装社交引擎时出错
【发布时间】:2012-04-29 16:39:43
【问题描述】:

我在尝试安装 Social Engine 时遇到问题。上传所有文件,设置目录权限,但是当我进入我的域时,我得到一个:

Not Found

The requested URL /install/install was not found on this server.

这与根目录和安装目录中的 .htaccess 文件有关,因为删除它们我确实开始安装过程,但使用长 URL,这样:

/install/index.php/install

例如,这将导致所有长 URL,而不是谷歌用来索引的短 URL。我的 ISP 关闭了安全模式,打开了 mod_rewrite,所以我有点迷路了......

【问题讨论】:

    标签: .htaccess failed-installation socialengine


    【解决方案1】:

    .htaccess:

    # $Id: .htaccess 7539 2010-10-04 04:41:38Z john $
    
    <IfModule mod_rewrite.c>
      Options +FollowSymLinks
      RewriteEngine On
    
      # Get rid of index.php
      RewriteCond %{REQUEST_URI} /index\.php
      RewriteRule (.*) index.php?rewrite=2 [L,QSA]
    
      # Rewrite all directory-looking urls
      RewriteCond %{REQUEST_URI} /$
      RewriteRule (.*) index.php?rewrite=1 [L,QSA]
    
      # Try to route missing files
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} public\/ [OR]
      RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$
      RewriteRule . - [L]
    
      # If the file doesn't exist, rewrite to index
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]
    
    </IfModule>
    
    # sends requests /index.php/path/to/module/ to "index.php"
    # AcceptPathInfo On
    
    # @todo This may not be effective in some cases
    FileETag Size
    

    【讨论】:

      【解决方案2】:

      在 Vagrant 上运行 SocialEngine 时遇到同样的问题(使用 https://box.scotch.io/)并通过清除 /install/ 下的 .htaccess 文件来修复它。

      【讨论】:

        猜你喜欢
        • 2012-12-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-24
        • 2017-07-21
        • 2016-06-26
        • 1970-01-01
        • 2012-08-07
        相关资源
        最近更新 更多