Click to See Complete Forum and Search --> : Please help this Apache Dummy


Floog
03-30-2002, 03:46 PM
I can't get off the ground with Apache.
I'm using Slack 8.0, kernel 2.4.16, and Apache 1.3.23.

Installation of Apache went great. At the end, I entered http://localhost/ into my browser and the default apache page showed.

Onto Configuration. I did a basic configuration of httpd.conf. I have the barest beginnings of a web-site that I want to host I copied all the .html files into the /var/www/htdocs directory. You'll see that I pointed to it in my httpd.conf file.

I set the server name for now, to be 127.0.0.1 just so I could test some things and try to get it to work on my computer before trying to broadcast to www.

I get the Forbidden message when I do http://127.0.0.1/. I can't access the server. I've been reading the Apache Server for Dummies, and I'm kinda stuck at the same place with Configuration.

Please give me some input to follow up on, as I'm re-reading the same stuff and not comprehending what to do.

Here's my httpd.conf:

##
## httpd.conf -- Apache HTTP server configuration file
### Section 1: Global Environment
#
ServerType standalone
ServerRoot /usr/local/apache
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
### Section 2: 'Main' server configuration
#
Port 80
User apache
Group users
ServerAdmin mhf@icecream
ServerName 127.0.0.1
DocumentRoot /var/www/htdocs
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/htdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Deny from all
</Directory>
UseCanonicalName On
DefaultType text/plain
HostnameLookups On
ErrorLog /usr/local/apache/logs/error_log
LogLevel warn
ServerSignature On

SuperHornet
03-30-2002, 05:07 PM
When you copied the html files in to the directory did you do it as root, your user account, or apache?


Port 80
User apache
Group users

If not Make sure you
chown -R user:group /var/www/htdocs
to the user or group that apache is running under.

I’m sure you can find several threads here on this same problem.

Floog
03-30-2002, 08:32 PM
Originally posted by SuperHornet:
<STRONG>When you copied the html files in to the directory did you do it as root, your user account, or apache?

If not Make sure you
chown -R user:group /var/www/htdocs
to the user or group that apache is running under.

I’m sure you can find several threads here on this same problem.</STRONG>


hmmm.....I still get "You don't permission to access / on this server.

Mike

Floog
03-30-2002, 08:39 PM
i did the following:

chown -R apache:users /var/www/htdocs

still no go:

"You don't have permission to access / on this server."

Floog
03-30-2002, 09:03 PM
Okay.
I'm starting fresh again.
I deleted apache 1.3.23.
Downloaded, compiled, and installed Apache 1.3.24.

Right now everything is good. When I do http://localhost/ i get the default apache start-up page.

I'll try it again.

Mike