Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: jhirizarry on December 26, 2005, 06:46:19 AM
-
Hello,
I added a new hard drive today per the HowTo by Michiel Blotwijk. Excellent HowTO BTW.
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm
My problem is after installig the drive I followed the optional Step 6 which describes how to create a symbolic link to /home/files/ibays and I now cannot access my main (Primary) website. I get error 403 Forbidden.
I beleive it has something to do with the symbolic link I created
ln -s /mnt/bigdisk/ibays/primary /home/files/primary
What exactly shoud the permissions be in order to access the main (Primary) web site?
Help is much appreciated.
John
-
My problem is after installig the drive I followed the optional Step 6 which describes how to create a symbolic link to /home/files/ibays and I now cannot access my main (Primary) website. I get error 403 Forbidden.
I beleive it has something to do with the symbolic link I created
ln -s /mnt/bigdisk/ibays/primary /home/files/primary
Looks to me like your symlink is wrong. The path to the primary ibay should be /home/e-smith/files/ibays/Primary. Which would make your symlink
ln -s /mnt/bigdisk/ibays/primary /home/e-smith/files/ibays/Primary
HTH,
John
-
Thanks, John
I changed it back to what I beleive is the original configuration and I still cannot access my website.
What I have is /home/e-smith/files/primary AND
/home/e-smith/files/ibays/Primary
When I copied the ln command you provided it created a file within the Primary dirctory.
/home/e-smith/files/ibays/Primary/primary
Not sure where to go from here.
Thanks again for your help!
John
-
John,
Looks like the ln -s is backwards. I did this on my test server:
[root@test65-1 root]# mkdir -p /mnt/test
[root@test65-1 root]# ln -s /mnt/test /home/e-smith/files/ibays/Primary/
[root@test65-1 root]# cd /mnt/test
[root@test65-1 test]# ls -lart
Nothing shows up
[root@test65-1 mnt]# cd /home/e-smith/files/ibays/Primary/
[root@test65-1 Primary]# dir
cgi-bin files html test
I have a directory called test, like you saw.
[root@test65-1 Primary]# ln -s /home/e-smith/files/ibays/Primary/ /mnt/test/
[root@test65-1 Primary]# dir
cgi-bin files html
No directory
[root@test65-1 mnt]# cd /mnt/test/
[root@test65-1 test]# ls -lart
total 8
drwxr-xr-x 5 root root 4096 Dec 26 03:28 ..
lrwxrwxrwx 1 root root 34 Dec 26 03:29 Primary -> /home/e-smith/files/ibays/Primary/
drwxr-xr-x 2 root root 4096 Dec 26 03:29 .
I now have a symlink.
JB
-
Ok, I got the symbolic link to work, however; I still cannot access my main web site. I can access all other ibays just fine. Something is still woring. What should the permissions be for /primary and /ibays/Primary?
When accessing the site I receive
HTTP Error 403 - Forbidden
Thanks!
John
-
From a default install.
[root@601 ibays]# ls -lart
drwxr-xr-x 5 root root 4096 Dec 22 14:20 Primary
[root@601 Primary]# ls -lart
total 20
drwxr-s--- 2 admin shared 4096 Dec 22 14:20 files
drwxr-s--- 2 admin shared 4096 Dec 22 14:20 cgi-bin
drwxr-s--- 2 admin shared 4096 Dec 23 05:26 html
[root@601 html]# ls -lart
total 16
-rw-r----- 1 admin shared 202 Feb 15 2002 index.htm
I now vaguely remember someone else trying to do this is in past. You may have to add FollowSymLinks in httpd.conf for the Primary ibay. Similiar to how it's done for webmail. If you have webmail enabled, you should be able to look at it and see what I mean.
That's about all I got.
JB
-
Thanks again. Let me check mine against what you provided. I beleive I have it right. Do you know where the httpd.conf is specificaly for the Primary ibay?
Thanks!
John
-
It's located at /etc/httpd/conf/httpd.conf. Once you find what you need, make your changes, run /etc/e-smith/events/actions/restart-httpd-full, then test, if it breaks something, then re-expand the httpd.conf templates, restart httpd again, and your back to where you started.
Once you find what you need, then make a custom template so your changes will survive when updates are applied to your server.
Good Luck,
John Bennett
-
Looks like this:
[root@example20 /]# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
[root@example20 /]# echo Options FollowSymLinks >> /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85DefaultAccess
[root@example20/]# expand-template /etc/httpd/conf/httpd.conf
[root@example20 /]# /etc/init.d/httpd graceful