安装Social Engine时出错

时间:2012-04-18 09:23:47

标签: .htaccess failed-installation socialengine

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

Not Found

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

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

/install/index.php/install

这就是最终会出现所有长网址的内容,而不是谷歌用于索引的短网址。我的ISP有safe_mode OFF,mod_rewrite为ON,所以我只是有点失落......

2 个答案:

答案 0 :(得分:0)

.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

答案 1 :(得分:0)

在Vagrant上使用SocialEngine运行相同的问题(使用https://box.scotch.io/)并通过清除.htaccess下的/install/文件来解决此问题。