Joomla管理员重定向到安装


Joomla administrator redirects to installation

我有一个Joomla 2.5站点,因为我无法再访问管理员面板。这只会将我重定向到/installation/index.php,它(应该)给出一个404。我认为这是在升级后发生的。

我试着按照这里的建议清除浏览器缓存:Joomla 1.0,管理员链接重定向到"installation/index.php";,如何防止这种重定向?

但这并没有奏效。

很久以前,在1.x的日子里,Joomla网站上有一些安全建议,其中包括建议将configuration.php移到我遵循的public_html目录之外。我现在找不到它们,但我试图将configuration.php文件复制到Joomla根目录,并将其保存在defines.php(define('JPATH_CONFIGURATION')中定义的目录中。

有什么想法吗?

我的扩展

bash-3.2$ find plugins/ -type d
plugins/
plugins/authentication
plugins/authentication/gmail
plugins/authentication/joomla
plugins/authentication/ldap
plugins/captcha
plugins/captcha/recaptcha
plugins/content
plugins/content/emailcloak
plugins/content/finder
plugins/content/geshi
plugins/content/geshi/geshi
plugins/content/geshi/geshi/geshi
plugins/content/joomla
plugins/content/loadmodule
plugins/content/pagebreak
plugins/content/pagenavigation
plugins/content/vote
plugins/editors-xtd
plugins/editors-xtd/article
plugins/editors-xtd/image
plugins/editors-xtd/pagebreak
plugins/editors-xtd/readmore
plugins/editors
plugins/editors/codemirror
plugins/editors/none
plugins/editors/tinymce
plugins/extension
plugins/extension/joomla
plugins/finder
plugins/finder/categories
plugins/finder/contacts
plugins/finder/content
plugins/finder/newsfeeds
plugins/finder/weblinks
plugins/quickicon
plugins/quickicon/extensionupdate
plugins/quickicon/joomlaupdate
plugins/search
plugins/search/categories
plugins/search/contacts
plugins/search/content
plugins/search/newsfeeds
plugins/search/weblinks
plugins/system
plugins/system/cache
plugins/system/debug
plugins/system/highlight
plugins/system/languagecode
plugins/system/languagecode/language
plugins/system/languagecode/language/en-GB
plugins/system/languagefilter
plugins/system/log
plugins/system/logout
plugins/system/p3p
plugins/system/redirect
plugins/system/remember
plugins/system/sef
plugins/user
plugins/user/contactcreator
plugins/user/joomla
plugins/user/profile
plugins/user/profile/fields
plugins/user/profile/profiles

试试这个,如果不起作用,就转到另一个点。

1.更改此

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
   header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php');

对此:

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'],   'index.php')).JPATH_INSTALLATION.'/index.php');

administrator/includes/framework.php 中的25-26

2.删除该文件中的第23-32行-它检查安装文件夹和配置文件的大小,如果你没有安装文件夹,并且配置文件可以,你可以删除这个

3。在配置中将变量$sef$sef_rewrite设置为零。php

诊断情况

也许你应该从诊断插件开始?通过将它们全部删除并逐个添加,来查看是什么导致了问题。正如您最近更新的那样,一个插件可能导致了这个问题,因为它已经过时,并且在软件和扩展之间产生了冲突。

问题可能是因为找不到配置,所以Joomla认为您没有安装该软件。

你完成了所有这些吗

  • 已删除安装文件夹
  • 已检查.htaccess是否不是导致此问题的原因
  • 尝试降级和升级

我认为插件不会导致重定向到安装文件夹。很可能系统认为它还没有安装,这很可能是由于Joomla期望它所在的位置缺少configuration.php文件造成的。

您可以尝试在defines.hp:的添加类似的内容

var_dump(file_exists(JPATH_CONFIGURATION.DS.'configuration.php'));

如果它输出true,则意味着配置文件存在,并且问题不在其中。然后我会将.htaccess重命名为htaccess.txt,以确保它没有任何效果。如果这不起作用,您还可以在public_html文件夹中查找index.php文件,并确保没有对其进行任何更改

我很确定配置文件不在它的位置,这应该可以解决您的问题。如果没有,请打我,我会进一步帮助你。

试试

  • 删除joomla安装文件目录:c:''host/project-path/yoursite/installation
  • 检查服务器并重新启动
  • 确保服务器上提供所需的服务
  • 尝试安装新的Joomla软件包http://www.joomla.org/download.html

感谢

IMHO您需要在安装后删除/installation文件夹。否则,如果它找到这个文件夹,你会被重定向到那里。

出于安全原因,在安装完成后删除安装文件夹之前,Joomla不允许您重定向到站点前端或后端。请确保joomla /installation文件夹已删除,如果是,请尽可能重新启动服务器。