As I convert from Windows to Suse, I want to keep my email stores and my web dev. file stores the same. Thunderbird is happy in Suse to use my NTFS email store, including read/write, but Apache is not yet.
Which I think is supposed to mount /Windows/E and allow read/write for all users. In default-server.conf I have:
#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
#
DocumentRoot "/windows/E/ApacheRoot/"
#
# Configure the DocumentRoot
#
<Directory "/windows/E/ApacheRoot/">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
which I wanted to set the root to be the dir ApacheRoot on that disk. But when I browse to localhost I get Access forbidden.
Can you, with a normal dumb (non-root) user, go into the directory where
your web files reside, and read them somehow? âcatâ or âlessâ would
probably be sufficient. Otherwise check the /var/log/apache2/error_log
file.
Good luck.
FredTheJonester wrote:
> As I convert from Windows to Suse, I want to keep my email stores and my
> web dev. file stores the same. Thunderbird is happy in Suse to use my
> NTFS email store, including read/write, but Apache is not yet.
>
> My fstab has:
>
>
> Code:
> --------------------
>
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part7 /home ext3 acl,user_xattr 1 2
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part6 swap swap defaults 0 0
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part5 / ext3 acl,user_xattr 1 1
> #Device Mountpoint Filesystem Parameters
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part1 /windows/C ntfs-3g user,users,gid=users,umask=0002 0 0
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part2 /windows/D ntfs-3g user,users,gid=users,umask=0002 0 0
> /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEL330RC09N28B-part3 /windows/E ntfs-3g user,users,gid=users,umask=0002 0 0
>
> proc /proc proc defaults 0 0
> sysfs /sys sysfs noauto 0 0
> debugfs /sys/kernel/debug debugfs noauto 0 0
> usbfs /proc/bus/usb usbfs noauto 0 0
> devpts /dev/pts devpts mode=0620,gid=5 0 0
>
> --------------------
>
>
> Which I think is supposed to mount /Windows/E and allow read/write for
> all users. In default-server.conf I have:
>
>
> Code:
> --------------------
>
> #
> # Global configuration that will be applicable for all virtual hosts, unless
> # deleted here, or overriden elswhere.
> #
>
> DocumentRoot â/windows/E/ApacheRoot/â
>
> #
> # Configure the DocumentRoot
> #
> <Directory â/windows/E/ApacheRoot/â>
> # Possible values for the Options directive are âNoneâ, âAllâ,
> # or any combination of:
> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> #
> # Note that âMultiViewsâ must be named explicitly â âOptions Allâ
> # doesnât give it to you.
> #
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs-2.2/mod/core.html#options
> # for more information.
> Options None
> # AllowOverride controls what directives may be placed in .htaccess files.
> # It can be âAllâ, âNoneâ, or any combination of the keywords:
> # Options FileInfo AuthConfig Limit
> AllowOverride None
> # Controls who can get stuff from this server.
> Order allow,deny
> Allow from all
> </Directory>
> --------------------
>
>
> which I wanted to set the root to be the dir ApacheRoot on that disk.
> But when I browse to localhost I get Access forbidden.
>
> Anyone know how I can fix this?
>
> Thanks!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> Can you, with a normal dumb (non-root) user, go into the directory where
your web files reside, and read them somehow? âcatâ or âlessâ would
probably be sufficient.
Yes, my regular user has read/write privileges in fact. I tested that.
> Otherwise check the /var/log/apache2/error_log
file.
Good idea. I reset the docroot to the default one and added a symbolic link to my NTFS files. Now localhost works but localhost/MySymbolicLink shows the same error.
Seems odd, b/c my regular user does have read/write rights.
FredTheJonester wrote:
>> Can you, with a normal dumb (non-root) user, go into the directory
> where
> your web files reside, and read them somehow? âcatâ or âlessâ would
> probably be sufficient.
>
> Yes, my regular user has read/write privileges in fact. I tested that.
>
>> Otherwise check the /var/log/apache2/error_log
> file.
>
> Good idea. I reset the docroot to the default one and added a symbolic
> link to my NTFS files. Now localhost works but localhost/MySymbolicLink
> shows the same error.
>
> Seems odd, b/c my regular user does have read/write rights.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Something else odd is that I have some tool installed on my Windows 2K to allow it to read/write ext3 partitions and while it works fine for Debian and Ubuntu, it doesnât work for my suse ext3âs.
I had another ideaâto use an Ubuntu ext3 partition for these files. They arenât in my fstab file but at least one (the one with a label) shows up anyway in suse:
lrwxrwxr-x 1 root users 50 2008-10-12 12:49 Link to ApacheRoot -> /windows/E/ApacheRoot
If I am reading your ls correctly you listed the contents of /windows/E/âŚthat is a bogus softlink as you have the softlink named the same thing as the directoryâŚwell except for the addition of spaces in the link name (not a good thing to do in Linux, use the underscore instead). I would remove that softlink as Apache conf already is pointed to the full directory /windows/E/ApacheRoot.
Also, apache looks for index.html or index.htm or some other specified file (done in the server.conf). If it does not see that in its www root it will reject access. You may need to tweak the apache conf file (look for the section called DirectoryIndex) to let it know what it is looking forâŚsay index.jsp or whatever your specific default web page is.
Reference the W2K accessing SUSE, might want to check your firewall settings if you opted for it.
Hope that helps a bit, or might possibly prompt some other ideas. What did the error log file say?
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Tue Oct 21 20:22:41 2008
Apache/2.2.8 (Linux/SUSE)
which is a permissions issue, not an Apache error AFAIK.