webgyrl Posted October 31, 2005 Posted October 31, 2005 I am trying to set up a folder for someone to upload some images to my domain and am a bit confused as to how this works. I read the instructions in the TCH FAQ on FTP which said: Setting Up An FTP Directory For Others To Access Create a folder Password manage it through cPanel Remove the index file from it and remove index manager using cPanel for this folder Create the users in the password manager Bingo! You now have a folder (directory) which is protected by passwords and they can see only that folder. Warning: remember that FTP download access will eat up your bandwidth Ok so I went into cPanel > File Manager and set up a folder named "foldername" in the public_html directory Then I went to password manager and gave the folder a username and password There was no index file in the folder, so that was fine. Then I went to FTP Manager in cPanel > FTP Accounts and set up a new account with the following info: somename@****/foldername Gave it a username and password I fired up SmartFTP to check it out and tried to log in as follows: FTP Address: ****/foldername Username: the one I set up in the FTP Profile Password: the one I set up in the FTP profile It's saying that my login is incorrect. Can someone please point me to what I did wrong? Thanks Quote
TCH-Don Posted October 31, 2005 Posted October 31, 2005 You can create the folder first then in ftp managment: create the ftp user with password and replace the default folder with the one you created. Thats it all done. they log into ftp as ftp:domain user name@domain pass word **** and they will be taken to the folder you created and will not be able to go above it. Quote
webgyrl Posted October 31, 2005 Author Posted October 31, 2005 You can create the folder firstthen in ftp managment: create the ftp user with password and replace the default folder with the one you created. Thats it all done. they log into ftp as ftp:domain user name@domain pass word **** and they will be taken to the folder you created and will not be able to go above it. Don, In my previous life when I was a cat, I am sure you rescued me then as well. Thank you for the help. Say hello to the furry friends for me Quote
TCH-Don Posted October 31, 2005 Posted October 31, 2005 You are welcome Nat and I have Oscar on my lap helping right now Quote
webgyrl Posted October 31, 2005 Author Posted October 31, 2005 Say hi to Oscar! Hey one more thing that maybe you can help with: I am trying to install an upload script to the CGI bin. The notes say: # absolute path to folder files will be uploaded to. # WINDOWS users, your path would like something like : images\\uploads # UNIX users, your path would like something like : /home/www/images/uploads Since we are on UNIX machines, would my upload directory be home/public_html/myusername/thedirectoryimade I am not sure what the full path is. Thanks for shedding light and fur! Quote
TCH-Don Posted November 1, 2005 Posted November 1, 2005 It would be home/your-cpanel-name/public_html/thedirectoryimade at 14 pounds, Oscar has to leave my lap soon He just does not fit any more Quote
webgyrl Posted November 1, 2005 Author Posted November 1, 2005 (edited) Ok, I changed that. For some reason I am getting an Internal Server Error 500 Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@**** and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Here are the parts of the cgi script: ># START USER EDITS # absolute path to folder files will be uploaded to. # WINDOWS users, your path would like something like : images\\uploads # UNIX users, your path would like something like : /home/www/images/uploads # do not end the path with any slashes and if you're on a UNIX serv, make sure # you CHMOD each folder in the path to 777 $dir = "/home/cpanelname/public_html/folder"; #$dir = "d:\\html\\users\\html\\images"; # absolute URL to folder files will be uploaded to $folder = "http://www.****/folder/"; # maximum file size allowed (kilo bytes) $max = 51200; # for security reasons, enter your domain name. # this is so uploads may only occur from your domain # enter any part of your domain name, or leave this # blank if you don't mind other web sites using your copy $domain = "http://www.****"; # if a file is successfully uploaded, enter a URL to redirect to. # leave this blank to have the default message printed. If using # this var, it must begin with http $redirect = "http://www.****/thanks.htm"; # if you would like to be notified of uploads, enter your email address # between the SINGLE quotes. leave this blank if you would not like to be notified $notify = 'recipient@****'; # UNIX users, if you entered a value for $notify, you must also enter your # server's sendmail path. It usually looks something like : /usr/sbin/sendmail $send_mail_path = "/usr/sbin/sendmail"; # WINDOWS users, if you entered a value for $notify, you must also enter your # server's SMTP path. It usually looks something like : mail.servername.com $smtp_path = "mail.****"; # set to 1 if you would like all files in the directory printed to the web page # after a successful upload (only printed if redirect is off). Set to 0 if you # do not want filenames printed to web page $print_contents = 1; # allow overwrites? 1 = yes, 0 = no (0 will rename file with a number on the end, the # highest number is the latest file) $overwrite = 0; # file types allowed, enter each type on a new line # Enter the word "ALL" in uppercase, to accept all file types. @types = qw~ txt jpeg jpg gif psd bmp tiff png zip rar sit ~; #################################################################### # END USER EDITS #################################################################### Can't figure out what I did wrong. the cgi file is CHMODed to 755 and the actual folder is set to 777 What did I miss? Edited November 1, 2005 by webgyrl Quote
webgyrl Posted November 1, 2005 Author Posted November 1, 2005 at 14 pounds, Oscar has to leave my lap soon He just does not fit any more Time for Kitty Atkins induction! LOL Thats a big puddy tat! Quote
webgyrl Posted November 1, 2005 Author Posted November 1, 2005 Argh.. I have to go to a session now. I will have to tackle this again in the morning. Thanks for the help and tell Oscar the feline hot water bottle meow! Quote
TCH-Bruce Posted November 1, 2005 Posted November 1, 2005 Did you upload the script in ASCII mode and change the script to 755 permissions so it can be executed? Quote
TCH-Don Posted November 1, 2005 Posted November 1, 2005 LOL Oscar is a Norwegian Forrest Cat and small for the breed, Thank you What script are you working with maybe we can try it too. Quote
webgyrl Posted November 1, 2005 Author Posted November 1, 2005 Did you upload the script in ASCII mode and change the script to 755 permissions so it can be executed? I think it must have been something in Dreamweaver FTP, they must not have cgi files set to upload as ASCII. I will have to change that. I deleted the .cgi file from the server and used SmartFTP to re-upload it and change permissions and the script worked after that. YAY! Thanks for all the help The only other thing I will ask is if anyone knows a good Bits/Bytes/Megabytes/Gigabytes converter? Quote
webgyrl Posted November 1, 2005 Author Posted November 1, 2005 LOLOscar is a Norwegian Forrest Cat and small for the breed, Thank you What script are you working with maybe we can try it too. I just looked up the breed. What a gorgeous cat! What incredible fur! Must be an awesome little bed/lap warmer for sure. I did in fact get the script to work... was a problem with my DW FTP settings. Thanks again Don Purrrrr Quote
TCH-Bruce Posted November 1, 2005 Posted November 1, 2005 The only other thing I will ask is if anyone knows a good Bits/Bytes/Megabytes/Gigabytes converter? Maybe this Unit conversion page will help. Or the Byte converter page. And here is a link to the code Quote
TCH-Don Posted November 1, 2005 Posted November 1, 2005 Nat, glad you have it working. Oscar may not be pure but so close including losing the extra coat and mane in the spring. He is just now getting his mane and extra coat back. I love that he sleeps at the foot of the bed leaning on my feet. Quote
cajunman4life Posted November 1, 2005 Posted November 1, 2005 Don, I know what you mean about the lap. My dog is 30lbs and he thinks he's a lap dog. Quote
Xantith Posted December 2, 2005 Posted December 2, 2005 (edited) You can create the folder firstthen in ftp managment: create the ftp user with password and replace the default folder with the one you created. Thats it all done. they log into ftp as ftp:domain user name@domain pass word **** and they will be taken to the folder you created and will not be able to go above it. I am attempting to do the same thing and having no luck whatsoever. I even had my domain locked once because of bad password attempts. I am a bit confused here with the steps. I created the folder...assigned it a username and password using the password protect directories in cPanel. Lets call it user John, PW Doe So, now to the FTP Manager. Do i create the user using the username I made in the password protect directories, such as John@domain.com? Also you said they log into ftp as ftp:domain...isnt that supposed to be ftp://domain.com or ftp.domain.com? hehe, this is a bit confusing and i think i may be putting too much thought into it Edit: I think I got the info correct but I am having a different problem. Basically I am using phpBB. I want to allow certain members to add attachments. I go into the config screen, enter all the ftp info and there is a button that i can use to test connection. When I do so I get the mnessage: Unable to enable/disable FTP Passive Mode. There is a radio button that says "Enable FTP Passive Mode The PASV command requests that the remote server open a port for the data connection and return the address of that port. The remote server listens on that port and the client connects to it." I click yes, I click no...i still get the error message. What can i do to get around this? Edited December 2, 2005 by Xantith Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.