Koozali.org: home of the SME Server

Web site access

Allan Pearce

Web site access
« on: September 05, 2002, 03:05:21 PM »
Dear e-smithers

I am currently setting up a new system and have run into a snag with SME 5.5.

In /home/e-smith/files/html where the web pages are hosted, the access and operation is fine form the world as well as internally.

When i add a sub directory for laying out the data, it works fine locally, but when coming in through the web "Access is denied"

I thought that any directories above the base directory "html" should be seen by the world including subdirectories.

Have been looking for the conf file for this without success.

Can anyone tell me which file in the templates, control the access to subdiectories in the public area of directory "html".  Once i work out what is stopping the access, i will be able to fix it.

Thanks in advance

Terry Brummell

Re: Web site access
« Reply #1 on: September 05, 2002, 03:13:00 PM »
I'd look into permissions in the subdirectories.  I just checked my subdirectories (in 5.1.2) and anything under html is owned by "admin" and has group access for "shared".  You may find your subdirectories being owned by root/root which will not allow the user www (default apache user) to read those directories.
Just a thought...

Terry

Ray Mitchell

Re: Web site access
« Reply #2 on: September 05, 2002, 06:21:40 PM »
Allan
I believe the web site files are in /home/e-smith/files/ibays/ibayname/html, is  that what you are using ? If not, as far as I know you should be.

Have you set the access correctly in Server manager/Information bays/Modify/Entire Internet (no password required)
or whatever you require it to be ?

For a local network user to get access to that ibay they must also be a member of the group that owns that ibay, ie in order to make changes to the contents etc.
This is seperate to how the Internet access is specified.

Is this what you need ?
Regards
Ray Mitchell

Allan Pearce

Re: Web site access
« Reply #3 on: September 06, 2002, 05:02:22 AM »
Terry and Ray

Thanks for your reply's

Terry, I have checked the access permission and it is set as admin and group shared, the same as the HTML directory files.

Ray, I might be wrong, but i thought Ibay files and directories are kept in the ibay directory system.

Allan

Terry Brummell

Re: Web site access
« Reply #4 on: September 06, 2002, 05:29:00 AM »
Alright, then how are you refering to the path in your HTML code?  It should look something like, "

" which is a .jpg file on my system in /home/e-smith/files/primary/html/images.  I suspect you may have src="html/newdirectoryname/filename.extension.  Try taking a look at your HTML.

Terry Brummell

Re: Web site access
« Reply #5 on: September 06, 2002, 05:32:59 AM »
Just as a note, if you are receiving this thread via email, the Phorum software stripped the HTML from the email.  You will need to read the post from the website to see exactly what I wrote.

Ray Mitchell

Re: Web site access
« Reply #6 on: September 06, 2002, 06:34:24 AM »
Allan

> In /home/e-smith/files/html where the web pages are hosted,
> the access and operation is fine form the world as well as
> internally.

Apologies, but I misinterpreted your query. I think you meant to say that for the main web site files are in /home/e-smith/files/primary/html, which is correct, and yes you do need to log on as admin to access this Primary site.

My point was that you can also setup ibays to act as web sites eg ibay named music, would appear to the world as www.yourdomain.com/music and you need to set appropriate Internet access rights using server manager. This site can function quite separately to your main web site.

> When i add a sub directory for laying out the data, it works
> fine locally, but when coming in through the web "Access is
> denied"

I think Terry's comments re the correct link naming are probably the source of your problem.
Is the www entry in Hostnames & Addresses correct.
Also did you create your subfolders as admin ?

Regards
Ray Mitchell

Allan Pearce

Re: Web site access
« Reply #7 on: September 06, 2002, 09:02:28 AM »
Terry and Ray

I have the HTML file links correct

src="/images/water.jpg"

I currently run 2 older systems using 4.2.1 and set the system up, created web site without this problem.

Even if you type the image name in the server stops you from accessing the directory.

I still have to check the WWW hostname yet, but I do not think it is wrong. Will have to reply tomorrow, as I will be away from the site until then.

Best regards to all

Allan Pearce

Ray Mitchell

Re: Web site access
« Reply #8 on: September 07, 2002, 06:43:52 AM »
Allan
You could try setting up another ibay web site as I have mentioned, enabling Internet access for that ibay and then copying all of your Primary web site to the new temporary ibay web site. Then test it (by URL of www.yourdomain.com/newibay) and see if your html code works OK. If it does then the problem is with the Primary site setup/permissions ??

You mention being away from the site. You can access by remote control using Putty.exe or similar (text based), or even VPN into your server for total access and control. You can even bring up the web server manager if you VPN into your server. No need to physically go to the site to make changes etc.

Did you make any special modifications or changes to your system that may be inadvertantly causing the problem ?

I don't use my Primary site, but I copied some folders and code from another ibay web site and it works fine in the Primary site (albeit witha different URL of course).

Regards
Ray Mitchell

Allan Pearce

Re: Web site access
« Reply #9 on: September 09, 2002, 08:06:48 AM »
Dear Ray

Thanks for your reply.

I spent the weekend working on it and worked my way around it by setting up ibays to suit.

Yes full access control can be gained through the ibays to all sub directories in the ibays.

Basically it is still a standard install or e-smith other than a change to the dialup setup.

It is a setup issue, in the httpd.conf in templates.   I have not found the exact file that controls the access to the primary directories at present.

Your e-smith, is it the 5.5 version with service link?

The previous versions I have worked with works fine without any problems.

Thanks again

Allan Pearce