phpyiikcfinder

KCFinder - You don't have permission to access /admin/kcfinder/browse.php on this server. IPAGE WEBHOSTING


I have a web application on a server and it works. When i moved to IPAGE webhosting the image upload doesnt work anymore. If i click the "browes the server" it says : You don't have permission to access /admin/kcfinder/browse.php on this server. The admin page is under the main page in /admin folder. Here is my code in the controller:

  $_SESSION['KCFINDER']['disabled'] = false;
  $_SESSION['KCFINDER']['uploadURL'] = Yii::app()->baseUrl."/../images/"; // URL for the uploads folder
  $_SESSION['KCFINDER']['uploadDir'] = Yii::app()->basePath."/../../images/"; // path to the uploads folder

I checked the urls and its good.

My .htacces file in kcfinder folder:

<IfModule mod_php4.c>
  php_flag engine Off
</IfModule>
<IfModule mod_php5.c>
  php_flag engine Off
</IfModule>
<IfModule mod_php6.c>
  php_flag engine Off
</IfModule>
<IfModule mod_cgi.c>
  Options -ExecCGI
</IfModule>
RemoveHandler .cgi .pl .py .pyc .pyo .phtml .php .php4 .php3 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
RemoveType .cgi .pl .py .pyc .pyo .phtml .php .php4 .php3 .php5 .php6 .pcgi .pcgi3 .pcgi4 .pcgi5 .pchi6 .inc
SetHandler None
SetHandler default-handler

Solution

  • OK i solve the problem. Ipage has unique session_path. So you have to set the session path. http://www.ipage.com/knowledgebase/read_article.bml?kbid=600