You are not logged in.

#1 2008-10-06 02:23:23

hemajang
Member
Registered: 2008-09-26
Posts: 3

Setting up a web development server...help

Hello,

I'm trying to set up my ArchLinux box as a web development server. I've managed to get LAMP installed, along with Bind. When I input "mydomain.com" it manages to open up my document root which is set at the default "/srv/http" in my apache httpd.conf.

I would like to however change that document root to point to a folder in my "/home/user/" directory. This way I can access the files via Samba share for editing from another machine.

I've tried different things, but still end up with the same "Access Denied..." Error 403's in my browser when accessing "mydomain.com". I'm just looking for some pointers and "gotchas", I need to be aware of. I'm fairly new to Linux so some things are still unclear (namely permissions, users, groups) Since this will be just for development, and on my own private network, security is only a secondary concern.


Any help would be appreciated, thank you.

Offline

#2 2008-10-06 02:29:19

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: Setting up a web development server...help

Your document root needs to be owned by http, IIRC.

SAMBA shares are not at all related to Apache's document root. I would not recommend setting anywhere in /home as your document root.


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#3 2008-10-06 02:30:37

Endperform
Member
From: Atlanta GA, USA
Registered: 2007-09-04
Posts: 94
Website

Re: Setting up a web development server...help

One thing you could do is make the /srv/http folder writable by your user, since it's not going to be a production machine.  Then you can set up the document directory as a separate share.  Otherwise, you'll need to change the Apache configuration (which I forget where it is exactly since I'm using Lighttpd) to use your home directory location, which additionally you'd have to set up so that Apache could at the very least read from, and depending on what you plan on doing, write to as well.

My suggestion?  Make the current document root writable for your user and share it out that way.  It's a little less painful.

Offline

Board footer

Powered by FluxBB