Joomla已损坏:[处理此指令时出错]


Joomla broken: [an error occurred while processing this directive]

我有一个测试Joomla网站,用于我在不同托管服务器上的插件域上运行的实时网站。我不小心删除了测试网站的configuration.php和.htaccess文件。然后,我将configuration.php从实时网站复制到测试网站,并再次输入正确的信息。然而,它给了我一个错误:

[an error occurred while processing this directive]

我会检查我更改的字段(或没有更改,但很重要——如果是我没有更改的字段,我会用"*"标记它):

public $dbtype = 'mysqli';*
public $host = 'localhost';*
public $user = 'SECRET[database user that I created and made an admin of the database]';
public $password = 'SECRET[password for the user I created]';
public $db = 'SECRET[user of the database is the one shown above]';
public $dbprefix = 'SECRET[same database, but had to create new users & new database name, but this didn't change]';*
public $live_site = 'SECRET[full URL to test website]';
public $secret = 'SECRET[not sure if I was supposed to change this]';*
public $gzip = '1';*
public $error_reporting = 'default';8
public $helpurl = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help{major}{minor}:{keyref}';*
public $ftp_host = 'SECRET[name of primary domain, the domain that this is on is an addon domain]';
public $ftp_port = '21';
public $ftp_user = 'SECRET[username I created specifically for this addon domain]';
public $ftp_pass = 'SECRET[password for the FTP username for this domain]';
public $ftp_root = 'SECRET[full path to the addon domain]';
public $ftp_enable = '0';*

我的新.htaccess文件包含Joomla SEF使用PHP处理程序创建的标准信息:

AddHandler application/x-httpd-php53 .php

有什么想法吗?

非常感谢

configuration.php文件的文件权限是否错误?在unix上,该文件应该具有权限644。还要检查新.htaccess文件的文件权限(我想应该也是644?)

谢谢!弄清楚了,我查看了服务器日志,这些日志显示为红色:

[Thu Apr 17 13:52:00 2014] [error] [client xx.xx.xx.xx] SecurityException in Application.cpp:530: Handler not found in configuration
[Thu Apr 17 13:52:00 2014] [error] [client xx.xx.xx.xx] Caused by KeyNotFoundException in Configuration.cpp:275: Handler "application/x-httpd-php53" not found

然后我检查了主机设置,它被设置为PHP 5.2,而我需要在5.4+上。我把它改为5.4,然后把AddOn域中的.htaccess改为ONLY(特别是必须删除其他PHP处理程序)有:

AddHandler application/x-httpd-php54 .php