Valuate Domain Names
DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
HomeRegisterMembershipsGetting StartedDomain Tools Domain EbooksSEO Software Domain Resellers Advertise

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Hosting
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 10-10-2006, 06:28 AM   #1 (permalink)
Platinum Lifetime Member
 
hotdog_pk's Avatar
 
Last Online: 04-05-2009 06:34 PM
iTrader: (0)
Join Date: Mar 2004
Posts: 530
DNF$: 180
Location: UK

Send a message via MSN to hotdog_pk

trouble with plesk

ive recently bought a dedicated server with plesk, and im used to whm/cpanel.

the trouble im having is that when i upload images to a directory via. FTP, they automatically have the 'wrong' chmod values (ie. different to what they did with cpanel - which im used to)

the problem is that regular users have write access.

does anybody know how to change the default uploaded chmod value so that it is a certain chmod value (or that of the parent directory) when uploaded??

i have access to the shell, etc. ... so im sure theres some way of changing the default value :-\
hotdog_pk is offline   Reply With Quote
Sponsored Ads
Old 10-10-2006, 07:08 AM   #2 (permalink)
Divine Ruler
 
Ubiquitous's Avatar
 
Last Online: 10-21-2008 09:33 PM
iTrader: (10)
Join Date: May 2006
Posts: 436
DNF$: 3,948
Location: USA
Country:


Re: trouble with plesk

Try this:

shell: chmod 755 /folder_name
__________________

» Premium Domains » aga.in | cha.in | sta.in | unp.in | ~ PM to inquire ~
Ubiquitous is offline   Reply With Quote
Old 10-11-2006, 05:27 PM   #3 (permalink)
Platinum Lifetime Member
 
hotdog_pk's Avatar
 
Last Online: 04-05-2009 06:34 PM
iTrader: (0)
Join Date: Mar 2004
Posts: 530
DNF$: 180
Location: UK

Send a message via MSN to hotdog_pk

Re: trouble with plesk

thanks for the reply kingpin but i believe that will only change the actual folder chmod after uploading, the users wont have the knowledge of how to do this.

the idea of the script (which worked perfectly on both a whm/cpanel running on linux and xampp installation in windows) is that the user simply uploads images to a directory and then goes on the website where they get the script to create two seperate folders and then generate thumbnails of the original images and save them in the folder...

the problem is that because of writing permissions, my script cant create the folder.

i read that in safe mode PHP doesnt allow non-owners of folders to write to the actual folder (and PHP regards itself as the user 'apache', rather than the user who uploaded the images).... however, my server isnt in safe mode.

any ideas?
hotdog_pk is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
plesk 7 question DotComGod Hosting 1 09-13-2005 09:22 PM
Plesk Reloaded 7.12 and 4PSA WebHosting. BerArt DNF$ Sales/Domain Auctions 0 08-28-2004 11:17 AM


All times are GMT -5. The time now is 10:48 PM.
Copyright @2001-2009 DNForum.com