简体   繁体   English

Joomla损坏:[处理此指令时发生错误]

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

I have a test Joomla website for a live website I run on an addon domain on a different hosting server. 我有一个测试的Joomla网站,用于在其他托管服务器上的附加域上运行的实时网站。 I accidentally deleted the configuration.php and .htaccess file of the test website. 我不小心删除了测试网站的configuration.php和.htaccess文件。 Then I copied the configuration.php from the live website to the test website and put in the correct information again. 然后,将configuration.php从实时网站复制到测试网站,然后再次输入正确的信息。 However, it is giving me the error: 但是,这给了我错误:

[an error occurred while processing this directive]

I'll go over the fields that I changed (or didn't change, but are significant- if it is a field that I did not change, I will mark it with an "*"): 我将遍历已更改(或未更改,但很重要的字段-如果它是我未更改的字段,则将其标记为“ *”):

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';*

My new .htaccess file has the standard information created by Joomla SEF with the PHP handler: 我的新.htaccess文件包含Joomla SEF使用PHP处理程序创建的标准信息:

AddHandler application/x-httpd-php53 .php

Any ideas? 有任何想法吗?

Many thanks 非常感谢

Could it be wrong file permissions for the configuration.php -file? 可能是configuration.php -file的文件权限错误? On unix the file should have permissions 644. Also check the file permission on the new .htaccess-file (should also be 644 I guess?) 在Unix上,文件应具有权限644。还要检查新.htaccess文件的文件许可权(我猜应该也是644吗?)

Thanks! 谢谢! Figured it out, I checked the server logs, and these appeared in red: 弄清楚了,我检查了服务器日志,这些日志显示为红色:

[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

Then I checked the hosting settings, and it was set to PHP 5.2, while I needed to be on 5.4+. 然后,我检查了主机设置,并将其设置为PHP 5.2,而我需要使用5.4+。 I changed it to 5.4 then changed the .htaccess in the AddOn domain to ONLY (specifically had to delete other PHP handler) have: 我将其更改为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