簡體   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