Php CKEditor中的KCFinder在托管服务器上显示HTTP 500错误
在我的一个Codeigniter v3.1.3项目中,我使用了CKEditor中的“KCFinder”将图像上传到服务器。项目的my localhost版本的目录结构为:Php CKEditor中的KCFinder在托管服务器上显示HTTP 500错误,php,codeigniter,Php,Codeigniter,在我的一个Codeigniter v3.1.3项目中,我使用了CKEditor中的“KCFinder”将图像上传到服务器。项目的my localhost版本的目录结构为: localhost/project_ci --application --assets ----admin ------ckeditor ------kcfinder --system --index.php 起初,我很难将KCFinder与CKEditor集成,但在搜索互联网后,我遇到了一个教程(我现在不记得url了)解释
localhost/project_ci
--application
--assets
----admin
------ckeditor
------kcfinder
--system
--index.php
起初,我很难将KCFinder与CKEditor集成,但在搜索互联网后,我遇到了一个教程(我现在不记得url了)解释集成它的步骤。我遵循了上面提到的步骤,现在它在localhost上运行得非常好。上述教程的步骤1是将根目录中index.php的一些值更改为:
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system';
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application';
现在我已将上述项目上传到共享托管服务器中。在托管服务器中,文件组织如下:
/home/myaccount
--ci_top_secret
----application
----system
--public_html
----assets
----index.php
index.php中的系统路径值为:
$system_path = '../ci_top_secret/system';
$application_folder = '../ci_top_secret/application';
我的网站运行良好,所有的CKEditor都可见。但是在“图像属性”弹出窗口中,当我单击“浏览服务器”按钮时,出现一个显示HTTP 500错误的空白页。因此,我无法将图像上载到远程服务器。我真的不明白是什么问题。是因为index.php中的system_path值。请提供一些代码。谢谢在KC Finder中,您将找到conf文件夹 保存这些文件 config.php
<?php
/** This file is part of KCFinder project
*
* @desc Base configuration file
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
* @link http://kcfinder.sunhater.com
*/
/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
even if you are using session configuration.
See http://kcfinder.sunhater.com/install for setting descriptions */
if ($_SERVER['SERVER_NAME'] == 'localhost' || strstr($_SERVER['SERVER_NAME'], '172.16')) {
$upload_url = "upload";
$upload_dir = "";
} else if ($_SERVER['HTTP_HOST'] == "216.55.169.45") {
$upload_url = "http://216.55.169.45/~mpdriver/master/assets/admin/kcfinder/upload";
$upload_dir = "/home/mpdriver/public_html/master/assets/admin/kcfinder/upload";
} else {
$upload_url = "upload";
$upload_dir = "";
}
$_CONFIG = array(
// GENERAL SETTINGS
'disabled' => FALSE,
'uploadURL' => "upload",
'uploadDir' => "",
'theme' => "default",
'types' => array(
// (F)CKEditor types
'files' => "",
'flash' => "swf",
'images' => "*img",
// TinyMCE types
'file' => "",
'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
'image' => "*img",
),
// IMAGE SETTINGS
'imageDriversPriority' => "imagick gmagick gd",
'jpegQuality' => 90,
'thumbsDir' => ".thumbs",
'maxImageWidth' => 0,
'maxImageHeight' => 0,
'thumbWidth' => 100,
'thumbHeight' => 100,
'watermark' => "",
// DISABLE / ENABLE SETTINGS
'denyZipDownload' => false,
'denyUpdateCheck' => false,
'denyExtensionRename' => false,
// PERMISSION SETTINGS
'dirPerms' => 0755,
'filePerms' => 0644,
'access' => array(
'files' => array(
'upload' => true,
'delete' => true,
'copy' => true,
'move' => true,
'rename' => true
),
'dirs' => array(
'create' => true,
'delete' => true,
'rename' => true
)
),
'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",
// MISC SETTINGS
'filenameChangeChars' => array(/*
' ' => "_",
':' => "."
*/),
'dirnameChangeChars' => array(/*
' ' => "_",
':' => "."
*/),
'mime_magic' => "",
'cookieDomain' => "",
'cookiePath' => "",
'cookiePrefix' => 'KCFINDER_',
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
'_normalizeFilenames' => false,
'_check4htaccess' => true,
//'_tinyMCEPath' => "/tiny_mce",
'_sessionVar' => "KCFINDER",
//'_sessionLifetime' => 30,
//'_sessionDir' => "/full/directory/path",
//'_sessionDomain' => ".mysite.com",
//'_sessionPath' => "/my/path",
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
);
?>
同时也要检查您的URL指向。有人来看看我的问题吗