Free Web Hosting Forum
(#1 (permalink))
Old
Member
cbarg is on a distinguished road
 
Posts: 54
Join Date: Sep 2011
Default cannot write to upload folder - 09-11-2011, 04:34 PM

HI!!!
I am trying to have my users to upload pictures in their posts with KCEditor and CKFinder (the free one) but, even though I set the 'upload' folder to 777, I get the following messages:
window 1:

cannot write to upload folder /usr/local/apache/htdocs/upload


window 2:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/upload) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a234/public_html/kcfinder/core/uploader.php on line 225

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/upload/.htaccess) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a234/public_html/kcfinder/core/uploader.php on line 254


Line 225 says:
if (!is_dir($this->config['uploadDir']))

and line 254:
if (!file_exists($htaccess))

Finaly, I don't see any .htaccess in the 'upload' folder, and if I want to create one, I don't know what to put in it :-/

Thanks!!
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,620
Join Date: Jul 2009
Location: Spain
Default 09-11-2011, 05:53 PM

Quote:
Originally Posted by cbarg View Post
HI!!!

window 1:

cannot write to upload folder /usr/local/apache/htdocs/upload


window 2:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/upload) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a234/public_html/kcfinder/core/uploader.php on line 225
Have you found the folder that tells you who has the problem within your public_html folder?
Perhaps the problem is that the directory structure on your PC is different from that which exists within your account 000webhost.
You should adapt the paths to run on the server (make the appropriate changes on your PC)


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Member
cbarg is on a distinguished road
 
Posts: 54
Join Date: Sep 2011
Default 09-11-2011, 06:21 PM

Thanks for taking some time to help!!
I have the folder I want to store the files in my public_html. In fact it is called 'upload'.
I don't follow you when you make reference to the directory structure in my PC vs the one in the server. I really never tried to run this in my local machine. If I have to change something in my PC, I guess all of the users would need to do the same changes on their on computer? That doesn't sound right, does it?

Thanks, by the way, where's the botón karma???
Reply With Quote
(#4 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,620
Join Date: Jul 2009
Location: Spain
Default 09-11-2011, 06:44 PM

Quote:
Originally Posted by cbarg View Post
I don't follow you when you make reference to the directory structure in my PC vs the one in the server. I really never tried to run this in my local machine. If I have to change something in my PC, I guess all of the users would need to do the same changes on their on computer? That doesn't sound right, does it?
Normally the webmaster create her/his website on a local server within his/her PC, and when the web site works fine is when she/he upload to public server.

The problem seems to be that there is no folder with the default application set. You should change the directories listed in the application. For example, the file /home/a234/public_html/kcfinder/core/uploader.php should look for:
/usr/local/apache/ htdocs/upload

and instead it write:
/upload

If the first error message disappears, is a sign that you're on track.


Quote:
Originally Posted by cbarg View Post
Thanks, by the way, where's the botón karma???
Karma button next to the title of each message.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma

Last edited by d3iti; 09-11-2011 at 06:46 PM.
Reply With Quote
(#5 (permalink))
Old
Member
cbarg is on a distinguished road
 
Posts: 54
Join Date: Sep 2011
Default 09-11-2011, 06:56 PM

cool that makes sense!!!!
I'm gonna work on that!
GRACIAS!!!! todos los dias se aprende algo nuevo :-)
Reply With Quote
(#6 (permalink))
Old
Junior Member
burino is on a distinguished road
 
Posts: 1
Join Date: Jun 2012
Default 06-09-2012, 02:21 AM

@cbarg i have same problem with you, please give me way, where i can put the kcfinder folder?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com