Hi everyone,
I have a problem using FCKeditor on my webhosting account. Because PHP is running in safe mode everything is working exept uploading. I asked the webhosting company to turn safe mode off, but they don't want to do that and i already paid for two years in advance.
The error iam getting is:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10038 is not allowed to access /var/www/vhosts/domain/httpdocs/media/file owned by uid 48 in /var/www/vhosts/domain/httpdocs/cwcms/editor/editor/filemanager/browser/default/connectors/php/commands.php on line 197
FCK is my favourite editor. Could anyone please suggest me what to do. Apperently it is possible using upload_ftp() instead of move_uploaded_file(), but i haven't got a clue where to change what since iam not a good programmer.
Any help or suggestion is appreciated.
Re: FCKeditor in safe mode
Safe mode will be dropped from PHP in PHP6 so your ISP is will have to agree to that sooner or later.
Anyway, you can try to disable safe_mode using your own php.ini file or in .htaccess file.
Amazing on how may shared hosts it is possible to change the default "secure" settings to your own
When PHP is running in safe mode, you are unable to upload files to a directory that was created by PHP. So to solve your issue, you may create
"/var/www/vhosts/domain/httpdocs/media/file" directory manually and chmod it to 777 (or something like that).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+