Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2, and default DocumentRoot issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
amdxpraider
n00b
n00b


Joined: 08 Jun 2004
Posts: 35

PostPosted: Tue Jun 29, 2004 4:40 pm    Post subject: apache2, and default DocumentRoot issues Reply with quote

hi,
I'm new to linux, and trying to setup my webserver. I'm having a few issues.

1. I did get to a point where html will appear from the default /var/www/localhost/htdocs. However, when I modify apache2.conf DocumentRoot and restart the server, it is still looking in the default folder. Anyone have any ideas?

2. I would like the default dir to be /home/bjw/website. Once html files do run from there by default, can I just create a cgi-bin dir under that path or would apache still look under the default cgi-bin? I looked in teh apache2.conf file and didn't see any place to specify anything else. Are there any other key files for configuring apache?

3. I was having problems executing .pl files from cgi-bin, but I just figured out it was a problem with permissions. How can I set default permissions for files I create in linux. They all start with only read permissions, then I have to go back and chmod them. It's annoying. BTW, I'm using kernel 2.6 and gnome if it makes a difference.

Any help is appreciated. Thanks
~Brandon
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Tue Jun 29, 2004 4:45 pm    Post subject: Reply with quote

You may wanna have a look into the commonapache2.conf file.
_________________
Come and play in my land
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Tue Jun 29, 2004 4:56 pm    Post subject: Reply with quote

look at commonapache2.conf

for perl

Scriptalias directive
Options ExecCGI
chown script to apache:apache
chmod .pl to 755
Back to top
View user's profile Send private message
amdxpraider
n00b
n00b


Joined: 08 Jun 2004
Posts: 35

PostPosted: Tue Jun 29, 2004 5:21 pm    Post subject: Reply with quote

i went ahead and changed the DocumentRoot in commomapache2.conf and restarted the server. It is still looking in the default htdocs folder
~Brandon
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Tue Jun 29, 2004 8:07 pm    Post subject: Reply with quote

try commenting out the include vhosts/vhosts.conf line in commonapache2.con , restart the server & see
if its still not correct
whats the output of
cat commonapache2.conf |grep -v '#'
and tail /var/log/apache2/error_log after youve tried to get a page.
Back to top
View user's profile Send private message
arachn1d
Guru
Guru


Joined: 15 Apr 2004
Posts: 369
Location: /var/www/wtf-dude.com lynx wtf-dude.com

PostPosted: Tue Jun 29, 2004 8:14 pm    Post subject: Reply with quote

you could always use a link to the main folder from the folder that you are using.

Thats what I do :)
_________________
WTF?? Dude... Visit wtf??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum