Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 10-02-2009 12:31:11

topaus
Members
Registered: 08-02-2009
Posts: 37

Store mp3 files outside of web root for security

If my store is located as www.mysite.com/music/store I can get the preview to work if the settings folder path is ../mp3  BUT only if the mp3 folder is located like www.mysite.com/music/mp3

So my question is - what should I put for the folder paths in settings to be able to locate the mp3 folder in the root of my server outside of the www (three steps back from the store www.mysite.com/music/store)

Last edited by topaus (10-02-2009 12:31:55)

Offline

#2 13-02-2009 09:30:00

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Somebody - anyone?

Offline

#3 13-02-2009 22:42:50

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

You need to a) learn to be more patient, and b) read the message at the top of the forum. I try my best to answer the support questions each week. Bumping topics and re-posting will you get you nowhere.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#4 14-02-2009 07:52:49

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

c) check with your hosting. ;-)

This is information that is dependend on your host so you need to check there . Its part of your hosting details.
info like this could be in the form like :
Path to Perl 5: /usr/bin/perl
Path to your HOME directory: /home/USER/public_html/   ie root
Path to your CGI-BIN directory: /home/USER/public_html/cgi-bin

If you were with a host that has 'the same as" above it could be :
outside (below) the root :  /home/USER/youre_musicfiles_folder

Some (simple) hostingplans do not allow you to go below the root  but you can check that easely wiht your ftp acces and checking what you folders you can access.

G

Offline

#5 14-02-2009 08:54:07

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Thanks doggy.

I've tested all the variations of your advice:

/home/username/mp3
~/home/username/mp3
~home/username/mp3
~/username/mp3
~username/mp3
../../../mp3

I'm not even able to go down two folders with ../../mp3 so that made me think is it even possible or that I'm missing something simple like the message at the top of the forum.

And yes luckily my hosting plan do allow to store and read files stored like this (it works with different kind of script)

David - I'm really sorry for bumping. I went through the whole forum and got too excited about all the possibilities what this wonderful script can offer...

Offline

#6 14-02-2009 08:57:45

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

did you actually create  a folder first under your root ? (or whereever you want it ? ) and able to lets say put a file there with your ftp program ?

Offline

#7 14-02-2009 09:09:42

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Yes I did

Offline

#8 14-02-2009 09:36:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

David - I'm really sorry for bumping. I went through the whole forum and got too excited about all the possibilities what this wonderful script can offer...

No problem. Your kind words are appreciated.

Its hard to really know what the problem might be if the instructions are followed correctly. It also depends where the script is installed.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#9 14-02-2009 18:12:57

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Let's use the demo page as example:

The demo store is located: http://www.maianscriptworld.co.uk/php/demos/music/
It's quite easy to find (by looking the preview pages source code) that the mp3's are downloadable free from: http://www.maianscriptworld.co.uk/php/demos/mp3/

So if you would like to locate the mp3 folder outside of the web root - what would you put for the folder path in settings?

Is it even possible or is the secure option only available if the store is located at the root of the domain (http://www.maianscriptworld.co.uk/)?

Offline

#10 14-02-2009 18:55:46

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

Please ask support from your hosting provider !
you can not find the path based on a weblink  like your trying to sugest !

are you replacing username with your actual username for example ?

We (including David) dont know what your driving so we can only gues what fuel you need.

G

Last edited by doggy (14-02-2009 18:59:09)

Offline

#11 14-02-2009 19:04:07

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

Yes, for the demo the music is in the root. I`m not too bothered about anyone downloading the music, its just a test store for anyone to test it.

The information is in the script. There are hover help tips in the admin area and there is info in the docs. Have you read these? Because all  I`m going to say here is there.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#12 14-02-2009 19:26:38

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Ok fair enough David - thank you for your time.

I still don't get it - hover helps, etc. I need few extra years to this - I think...

Offline

#13 14-02-2009 20:22:38

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

docs : documentation files included with the script
hover help : the little blocks of help that pop up when you click on those questionmarks next to setting fields etc

G

Offline

#14 14-02-2009 21:28:17

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Thanks doggy - I knew those at the first place but it seems that theres something I just don't get it...
I need to get my reading glasses and my "I'm stupid" hat hmm

Offline

#15 14-02-2009 21:56:37

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

step 1:
find out ( through your hostingprovider) what the Path to your HOME directory is
(maybe tell us the who the provider is ?)

G

Offline

#16 14-02-2009 22:04:41

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Hostgator

Offline

#17 14-02-2009 22:43:24

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

webroot : /home/USER_NAME/public_html/..

below:  /home/USER_NAME/your_folder

relace USER_NAME with your actual username and your_folder with the name of the folder you created
It goes  in the 'music folder path" field in the admin music/download settings

http://forums.hostgator.com/faq.php?faq=paths

http://support.hostgator.com/articles/Most-Popular/255/application-paths

you got to love google ;-)

Last edited by doggy (14-02-2009 22:50:43)

Offline

#18 14-02-2009 23:07:52

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

Doggy - thanks for your advice.

Unfortunately if I put /home/username/mp3 to MP3 Folder Path and /home/username/mp3/preview to MP3 Preview Folder Path it does not work. Files and folders are there and yes I changed "username" for my real Hostgator username (as mentioned in Cpanel) smile

This is getting ridiculous - I must be doing something really stupid...

Doggy is this how it works for you?

Offline

#19 14-02-2009 23:21:59

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

Yes

Music folder path :  /home/USER_NAME/file_folder
preview folder path :  preview_folder

based on your first post it probably would be ( for the previews) :   music/store

Last edited by doggy (14-02-2009 23:24:00)

Offline

#20 15-02-2009 09:53:40

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

If you want to send me a small donation and your ftp details I`ll take a look for you.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#21 15-02-2009 10:11:29

topaus
Members
Registered: 08-02-2009
Posts: 37

Re: Store mp3 files outside of web root for security

doggy: A-HA - now I see the light!

I think my mistake has been that I have tried to locate the preview folder under the www together with the main mp3 folder - that would explain all the difficulties (I've only checked through preview that the folder paths don't work)...
I changed the preview folder like yours and now I have to get my PayPal Sandbox to work smile

Offline

#22 15-02-2009 12:30:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

Excellent. Doggy, appreciate your helping out. smile

This path thing has caused a few problems for people. I should probably simplify it with the next update.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#23 15-02-2009 13:51:00

doggy
Members
Registered: 20-07-2008
Posts: 57

Re: Store mp3 files outside of web root for security

David

I guess the confusion happens because one is a direct reference and the other part of a reference be it it is logical . maybe just adjusting the help might be enough ?
ie This is the relative path from the music root folder to the MP3 folder could be
This is the relative path from the ROOT to the MP3_file folder
"MP3" folder imo confuses also being it where the script resides (index) instead the mp3 files themselves

Download files folder is full path all the way from the base  (below public acces) to the specific folder.
example: /home/USER_NAME/file_folder  or /home/USER_NAME/public_html/storescriptfolder/musicfolder

The preview folder is relative to where to site is located .
example:  preview_folder  or ../preview_folder  ie above or below public_html/storescriptfolder

hope I expressed this correctly

G

Last edited by doggy (15-02-2009 13:52:38)

Offline

#24 19-02-2009 20:45:08

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Store mp3 files outside of web root for security

Thanks G. I`ll definitely update the paths the next time.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#25 21-04-2010 19:05:12

havapup
Members
Registered: 20-04-2010
Posts: 17

Re: Store mp3 files outside of web root for security

Hi, when i go to add a track in the admin section  i get the error message "ERROR!!
The following directory does not exist: /myrealusername input here/mp3/

i have my proper user name and then the file; ie /username/mp3/

so i have tried other paths as listed in this thread but none seem to work.

in settings i did put the folder path in the section for MP3/Download Settings and i uploaded a file to the mp3 folder so i know it exists.  and the ftp path shows my username then slash mp3

i removed the username and just put /mp3/ and it worked. the username was redundant, i hope that is ok/safe?

Last edited by havapup (21-04-2010 19:53:16)

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy