Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Stone Linton on February 20, 2001, 11:49:09 PM
-
I saw someone else post a similar question several days ago, with no response, and posted on myself several weeks ago about the beta release, but was directed to the dev forum or bug tracking email.
When images are placed in a 'images' subfolder of the website root they don't display.
Any ideas why??
-
Hi
I had a similar problem after I restored a snapshot of my e-smith server... all the files were restored but my 'images' subdirectory give me access denied errors???
All I did was delete the folder and recreate from the console..... copied my images back ... no problem....
BF
-
Yes, it ws my post. But unfortunatley there was no response. I had the similar problem, images would not display after putting them in images subfolder in E-smith 4.1. I had to re-install older version 4.0 and then upgraded it to new version 4.1 to fix the problem. May be you can try the same thing as there is no response from anyone else.
-
The problem could be related to permissions. As you may know, every file (including directories) in Linux has its own set of permissions. If the images directory (folder) was created elsewhere and then moved into the HTML directory, it is possible that the permissions on that directory don't match that of the HTML directory.
This happened to me, and the solution was simply to make sure that I created the directory within the HTML directory. That way, the new directory will take on the permissions of the parent directory.
Hope this helps. I'm an e-smith user, not a developer, so can't promise this will solve your problem.
-
Okay, got it figured out. Well, a work-around anyway.
Exit from the control console on your e-smith box, either option 9 on the menu or alt-F2.
Log in as root.
Go to 'home/e-smith/files/primary/html' using the cd command. You may need to back out of '/root' first by entering 'cd ..' or 'cd /', then type 'cd /home/e-smith/files/primary/html' this brings you to the root of your website.
Here you can create any directories you want using the 'mkdir ' and 'rmdir ' to delete any you might have that don't work.
After creating them you will need to change the owner to admin from root. To do this, type 'chown admin '.
Alt-F1 gets you back to your console.
Now you should be able to copy your files back in to the newly created directories and everything should work.
*E-Smith developers and other gurus . . . I know little or nothing of linux, just kind of stumble from bits and peices from "Unix for Dummies". Any one of you knowledgable people know a simpler way to accomplish this, please let us know. The probelm seems to arise with the sub-folders I create from my Win98 machine on my e-smith box, but when I create them on the e-smith directly and change ownership to admin, they seem to work.
-
Glad to hear you've found a workaround, but please be assured that it is not necessary to go to the command line to display images or any files in a subdirectory. I just did it myself: created a folder on my desktop, dropped a file into it, dragged the folder into the HTML folder of one of my i-bays (through network neighborhood), and then placed that folder inside yet another folder inside the HTML folder, along with an image. No problem - everything could be viewed from the browser. No logging in to the server, no Linux knowledge required.
Q: are your images in the primary i-bay, or another i-bay - and if so, have you checked how it is configured? You've probably already considered this, but just in case...