It appears you have not yet registered with our community. To register please click here..

CirtexHosting Community - Video Hosting Forums  

Go Back   CirtexHosting Community - Video Hosting Forums > CirtexHosting Community > Website Development & Scripting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 02:35 PM
Registered User
 
Join Date: Jan 2007
Posts: 8
NEED HELP dir dir restriction

Hi all, I'm hoping someone in here will be able to help me with a problem we are having with our site atm.
we use a C.M.S. call pnc which uses nuke.
the problem we are having is with people uploading to our site.
when we try and upload a file to our site it comes up error file not uploaded...

it give this as to the reason:
Code:
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(//attach_mod_245.zip) is not within the allowed path(s): (/home/vcwcncom/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/vcwcncom/public_html/cod/modules/Submit_Downloads/index.php on line 215
when we admin the downloads section it gives us a relative path as to where to save the files people upload so i have tried to make it /downloads public_html/downloads the actual site we place in a sub domain of our site so the address is www.cod.vcwclan.com my question is how do I set the path so it doesnt give me the base dir restriction
any help would be greatly appreciated. we have tried on the support forums of our cms but so far havent had any luck with this one????

was told something about been able to change where the file goes whilst still uploading by putting something in a php.ini file but not sure what to do as im not sure if the file cant move because the tmp folder is outside the base dir or if the downloads folder it is trying to move it to is outside it?????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-08-2007, 01:01 PM
Cirtex Andrew's Avatar
Moderator
 
Join Date: Nov 2006
Posts: 578
If the setting you were referring to asks where to save the temporary uploaded file while uploading set it to /tmp or leave it blank so it uses the default path.

If the setting is asking where you want your user's files saved to you should use the full path such as /home/vcwcncom/public_html/uploads. Whatever directory you want uploaded files saved in needs to be CHMODed to 0777 for everything to work properly.

Let me know if that solves your problem.
__________________

█• CirtexHosting • General Manager • Customer Service
█• Linux Based CPanel Web Hosting • Shared, Reseller & Dedicated Services
█• Fantastico / RVSkin / FFMpeg Support Included • Free Site Transfer Service
█• Need more help? Use our helpdesk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-09-2007, 02:01 PM
Andan's Avatar
Community Guide
 
Join Date: Oct 2006
Location: Chicago, IL U.S.A.
Posts: 629
Andrew has it down pat.

If you're uploading to a specified folder, check to make sure that folder has the chmod properties of 777.
__________________
Andan
Community Guide

Cirtex Hosting - Very Affordable and High Quality Web Hosting
[ Plans starting at $2.99 per month: Cirtex Hosting ]
[ Check the status of our servers: Status Page ]
[ Help and Support for customers: Help Desk ]

Hosted Sites: Gamers Core
Non-Hosted Sites: My Personal Website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-30-2007, 03:21 PM
Registered User
 
Join Date: Jan 2007
Posts: 8
Hi sorry it took a while to get back to you but yes it is all fixed now thanx it appears the user submission permissions were not set correctly.
Thanx for all your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-30-2007, 07:11 PM
ParodyUK's Avatar
Community Guide
 
Join Date: Jun 2007
Location: England, Birmingham
Posts: 655
glad it sorted
__________________
Parody - Cirtex Hosting & HostV Community Guide.

Need Help? Contact helpdesk
CirtexHosting.com Come Join Us!
Need a Virtual Private Server? Or a Dedicated Server? HostV Can do that!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:30 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17