Hi all,
Thanks for any advice that may be forthcoming
I am using a Linux server running PHP version 5.2.5 and MySQL version 5.0.51a-community with FCKeditor 2.6
I have purchased a site licence and installed CKFinder on my site and worked through the configuration as far as I can tell.
I can upload files and images into the relevant folders (/userfiles/images etc) but cannot view them or add them into a page.
This all worked fine when I was using FCKeditor, but I wanted to include the additional file management functionality of CKFinder.
I am guessing that I have something wrong in the CKFinder configuration area because it happens when viewing _samples/php/standalone.php as well as when linking it into FCKeditor but I can't figure out why
Below is a log entry from my error log in case it can help someone more knowledgeable to diagnose the problem (the domain name and client info has been changed )
[Sat May 24 11:34:28 2008] [error] [client XX.XXX.XX.XX] File does not exist: /home/janesite/public_html/500.shtml, referer: http://www.mydomain.com/ckfinder/ckfind ... owFileInfo
[Sat May 24 11:34:28 2008] [alert] [client XX.XXX.XX.XX] /home/janesite/public_html/ckfinder/userfiles/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer: http://www.mydomain.com/ckfinder/ckfind ... owFileInfo
Any help would be greatly appreciated,
thanks, Graham
Sat, 05/24/2008 - 04:34
#1
Re: Cant get file view etc working?
I have got this working fully now, but not sure if what I have done is 'correct'?
Sitting in the /ckfinder/userfiles folder there was a .htaccess file with php_value engine off in it.
I deleted this file and now everything is working fine, but I am not sure that this is the right thing to do? Is this correct? Are there any problems with deleting this file?
I see that this file comes with the downloaded ckfinder installation so I am not sure that I should be playing with it?
Again, any help greatly appreciated, thanks
Graham
Re: Cant get file view etc working?
Re: Cant get file view etc working?
So is deleting the .htaccess file the right thing to do?
Have I created any problems by doing this?
If it is necessary to remove this file then why is it included in the ckfinder download and why is this step not mentioned in the installation and integration section to help us newbies out please?
I am concerned that I may of created a security problem or whatever by removing the file so any advice would be very welcome please
thanks, Graham
Re: Cant get file view etc working?
The best one to answer this question would be Wiktor, but if I'm not mistaken that file is placed there to avoid that even if some script is uploaded, then it isn't parsed by the server, but it seems that your setup doesn't recognize that directive.
You can think about the file as a second step in the security, so that if somehow a dangerous file is uploaded and the default security fails, this second step would avoid its execution. If you don't allow to upload any kind of file you should be safe. (of course it would be better if you can leave the file or instruct the server in some other way to don't run scripts in the uploaded files)
Re: Cant get file view etc working?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Cant get file view etc working?
Cheers,
Graham