Prior to installing Drupal on my site i was able to browse (on the web, not in FTP client) to any directory i created in my 'public_html' directory by going to www.mydomain/directory.
I installed Drupal 7 and was still able to browse direct to any created directory.
Yesterday i successfully updated Drupal to 7.12 and now when i try to browse www.mydomain/directory is get a 403 Permission Denied - You do not have permission for this request /stuff/ (that's what i'm trying to browse is a directory called 'stuff' - www.mydomain/stuff)
How can i get access back to those directories as i would send my peeps direct links to files www.mydomain/directory/filename
I've tried accessing www.mydomain/directory in both IE and Firefox - and i am using Filezilla as my FTP client
Thank you.
Comments
1) FTP to www.mydomain.com in
1) FTP to www.mydomain.com in FileZilla.
2) Right click on /stuff/
3) Set File permissions
4) In the box with the numbers, type 777
5) Check the "Recursive" box, and select all files and subfolders
6) Click ok
This will give everyone in the world permission to read and download anything in that folder. If they have access to your site via FTP, they will also be able to save to it, but I'm assuming no one has FTP access to your site.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
update
I did as you said and am still getting the 403 error......and i did a deletion of my temp internet files after making the change in Filezilla to make sure i wasn't using cached page(s)
What else can i try - obviously i'm a noob at this - i was just happy to get the upgrade to 7.12 to work properly last night
Thank you.
Talk to me about your file
Talk to me about your file structure... Where is your drupal root folder located at? Is your "share" folder within the drupal root folder, or outside of it? Show me something like this:
etc...
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
structure
/public_html
i installed Drupal at the root of my public_html directory, not in it's own directory....this is my phublic_html directory:
/books - some kindle files i have
/cgi-bin - came with the site i think (i didnt create it)
/images - i created this pre-drupal
/includes - drupal related
/misc - drupal related
/modules - drupal related
/my_apps - i created this pre-drupal
/my_files - i created this pre-drupal
/profiles - drupal related
/scripts - drupal related
/shows - i created this - pre-drupal
/sites - drupal related
/stuff - i created this pre-drupal
/tempdir - came with the site i think (i didnt create it)
/themes - drupal related
index.php is at the root of public_html directory
Thank you.
As far as I know, there is no
As far as I know, there is no safe, easy way to share a directory that is within a drupal directory. Consider moving the whole folder inside the /sites/all/files directory. If your site is set to public files, instead of private files, you should be able to hotlink to any file within that directory. You will still not be able to visit the folder to see a list of files, but you'll be able to share links individually.
The problem is that Drupal recognizes folders as actual addresses, so when you go to mysite.com/stuff, drupal is looking for a url within the database that references /stuff, not a folder named stuff. I'm sure you could write an .htaccess rule that would override this, but I don't know how.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
New version....?
Is that due to the security update to 7.12? Or because i had those directories in place prior to the Drupal install...? They worked fine yesterday before i upgraded to 7.12, that's when they stopped working.
I have no idea... I avoid
I have no idea... I avoid these issues by never putting anything in my drupal directory...
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
I have the same problem since upgrading from 7.10 to 7.12
I have multiple instances of Drupal set up under one hosting account with a main domain (carolinabrewmasters.com) and the others as subdomains. They were all working nicely on version 7.10. I updated all of them to 7.12 and now I am getting an error:
Warning: mkdir() [function.mkdir]: Permission denied in drupal_mkdir() (line 2336 of /hermes/waloraweb026/b1054/pow.carolinabrewmastersc/usopen/htdocs/includes/file.inc).
The directory /hermes/web11c/b1054/pow.carolinabrewmastersc/usopen/htdocs/tempdir does not exist and could not be created.
Only problem there is that IT DOES EXIST and permissions are 777!
I have tried changing the Temporary directory in the Home » Administration » Configuration » Media » File System but to no avail. I've used /tmp, tmp, /tempdir, tempdir, sites/default/files/tmp, and just about every other suggestion I've seen doesn't work. I've made sure the directory was there and permissions were 777.
Every time I enter something in the Temporary Directory field it reverts back to:
/hermes/web11c/b1054/pow.carolinabrewmastersc/usopen/htdocs/tempdir
This is driving me bats#!t crazy! I could really use some help here!
Rob
This isn't going to help you
This isn't going to help you much now, but as a general rule, I never put the drupal root in my public_html root. it's always at /public_html/(sitename). Then, I have the domain name pointing towards /public_html/(sitename) instead of /public_html. I use a separate domain name to point to /public_html. This way, I can host multiple sites on the same server, and also do things like you are suggesting, for file sharing. It might be worth it for you to pay another $10 for another domain name, put the drupal root inside it's own folder, point your current domain to that new folder, and use your new domain as your account domain.
Also, as an added tip, any domain that you want to keep forever, even if you switch webhosts, you should register with an independant registrar like godaddy or network solutions, etc. Free domains that come with your account are notoriously difficult to move. The webhosts tend to drag their feet when you are leaving and be very unhelpful.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
not a freee domain....
I have had my domain for a few years so it's not a freebie one that i'd have to worry about that hassle - i'm with hostmonster as my registrar and my host.....
Is there an easy way to move the Drupal install on my site....or if i do a backup, then reinstall it to a named directory off of public_html would the restore work or hose it up due to the backup being from public_html trying to restore to a named directory?
I very much appreciate your time in replying and trying to help me.
Thank you.
If your site
If your site is set up
directlycorrectly, then you won't have a problem at all. Simply create a new folder, and move all the drupal files into it. Basically, everything in your list except for what you created. Also, don't copy any of hostmonsters 404 files or anything like that, obviously.So, to make this clean, and not have any down time, I would do the following:
You will probably need to clear your Drupal caches, or none of your links will work. but clearing the Caches SHOULD be the only thing you need to do to make this work. I've done this on hostmonster at least twice.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
new domain
Looks like i can get a .info or a .us pretty cheap - i'll mess with this more this evening.
what about this structure ?
hi Anthony,
i have similar problems with my Drupal structure :
/base
/website
/drupal
/media
/movies
from a D7 basic page, i can do a php getdir and get all the files listed in the /movies directory
but when i put a when i do not put a directory prefix in src in the i have followed the suggestions in the forum about the .htaccess and also the directory and file permissions are OK.
noticed you are very helpful, maybe u have a suggestion for met too ......
Kaas