繁体   English   中英

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 -file的文件权限错误? 在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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM