alias problems

Problems with the Linux version of XAMPP, questions, comments, and anything related.

alias problems

Postby Alex Whittemore » 11. August 2006 05:34

I have xampp installed both on my windows partition and linux partition on this computer in order to do web programming and testing locally. Both partitions share one major data partition which also has all the web files on it, so for testing, I set up an alias using the cgi-bin directory as a model (in windows this is) to point the /projects directory to my test files on the third partition. I added the bits in the <directory> tag to get it to preform listings and such, and it works great. I then tried to do the same thing in linux, but always get a forbidden error. I cannot figure out what to do differently! The only thing i can think of is that the third partition is not in the group that root is in my ubuntu install because it's automatically mounted on boot, but i have no idea how to correct this. Can anyone help?

Alex Whittemore
Posts: 2
Joined: 11. August 2006 05:22

Postby Wiedmann » 11. August 2006 05:39

Can anyone help?

Not without:
- The code you have at the moment for the alias.
- The error_log for this "forbidden error"
- The file mode / owner for the target directory.
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Alex Whittemore » 11. August 2006 14:46

<IfModule alias_module>


# Redirect: Allows you to tell clients about documents that used to

# exist in your server's namespace, but do not anymore. The client

# will make a new request for the document at its new location.

# Example:

# Redirect permanent /foo


# Alias: Maps web paths into filesystem paths and is used to

# access content that does not live under the DocumentRoot.

# Example:

# Alias /webpath /full/filesystem/path


# If you include a trailing / on /webpath then the server will

# require it to be present in the URL. You will also likely

# need to provide a <Directory> section to allow access to

# the filesystem path.


# ScriptAlias: This controls which directories contain server scripts.

# ScriptAliases are essentially the same as Aliases, except that

# documents in the target directory are treated as applications and

# run by the server when requested rather than as documents sent to the

# client. The same rules about trailing "/" apply to ScriptAlias

# directives as to Alias.


ScriptAlias /cgi-bin/ "C:/Program Files/xampp/cgi-bin

#add projects directory

Alias /projects "D:/Web Design/"



# "C:/Program Files/xampp/cgi-bin" should be changed to whatever your ScriptAliased

# CGI directory exists, if you have that configured.


<Directory "C:/Program Files/xampp/cgi-bin">

AllowOverride None

Options None

Order allow,deny

Allow from all


<Directory "D:/Web Design">

Options +Indexes

IndexOptions FancyIndexing IconsAreLinks

Order allow,deny

Allow from all


(note that thats from my windows httpd.conf - the linux one is virtually the same, exactly the same in those areas, except for the directory notation as well as directory to cgi-bin. eg: my directory for the projects alias is /MyDocuments/Web Design.


[Thu Aug 10 23:48:28 2006] [error] [client] (13)Permission denied: access to /projects denied
[Thu Aug 10 23:48:33 2006] [error] [client] (13)Permission denied: access to /projects/ denied

there are a few more of those exactly formed that way with different time stamps.

permissions of the target dir:

file owner: root
file group: plugdev
perms: drwxrwx---

Note that when I'm sudo'd in nautilus as root, i still can't edit those permissions, i don't know exactly. I'm on a ubuntu 6.06 system.

Thanks a lot!
Alex Whittemore
Posts: 2
Joined: 11. August 2006 05:22

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests