Joomla破碎:[处理此指令时出错]

时间:2014-04-17 19:44:03

标签: php apache joomla configuration-files

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

[an error occurred while processing this directive]

我会越过我改变的领域(或者没有改变,但是很重要 - 如果它是一个我没有改变的领域,我会用&#34标记它; * &#34):

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

有什么想法吗?

非常感谢

2 个答案:

答案 0 :(得分:0)

对于configuration.php -file,文件权限是否错误?在unix上,文件应该具有权限644.同时检查新的.htaccess文件的文件权限(我猜也应该是644)?

答案 1 :(得分:0)

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

[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
相关问题