LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting Apache (1.3) Going (https://www.linuxquestions.org/questions/linux-newbie-8/getting-apache-1-3-going-252008/)

emptystrings 11-07-2004 12:00 AM

Getting Apache (1.3) Going
 
Hi. I've had Slackware 10.0 up for about 2 days now (my first Linux box), and I'd like to set this machine up as a development web server.

I have setup Apache on Windows machines before, so I don't know what I'm doing wrong this time. This is the output when I try to look at localhost from Mozilla

Forbidden
You don't have permission to access / on this server.
Apache/1.3.31 Server at Kinetic_Server.localdomain Port 80

My index.html file is a simple <html><body>Hello World</body></html>. It sits in /home/_Web.

I have updated the parameters in httpd.conf (single host):
DocumentRoot "/home/_Web"
<Directory "/home/_Web">
I thought with those updates, I should have been able to access index.html. Please tell me what I missed. I'm almost sure it's something simple.

Also, I went through the Apache SSL tutorial to get that set up, and the service restarts fine. No error messages. However, I run the line netstat -tpan | grep 443, as the tutorial advises and I get nothing. I don't understand what I'm reading in the error_log file and how to fix it -

[Sat Nov 6 21:55:16 2004] [notice] Apache/1.3.31 (Unix) mod_ssl/2.8.18 OpenSSL/0.9.7d configured -- resuming normal operations
[Sat Nov 6 21:55:16 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

I'm assuming the two issues are related... or perhaps not. Anyway, I also have tons of questions about other stuff... but I'll start with this one. Thanks!

Daniel.

MikeZila 11-07-2004 12:39 AM

Welcome to LinuxQuestions! I hope I can make a good first impression by fixing your issue on the first try. Congratulations on choosing Slackware as your distro of choice. If you learn to use Linux on Slack, you'll be able to handle pretty much any other distro out there, so stick with it. I think I know what your issue is. You never mentioned your file permissions.

Are your file and folder permissions setup right?

You have to make sure your public html directory (and files inside it) are able to be "read" by anyone. Break out a console and lets see if we can get this bad Jackson rolling.

Code:

$>chmod 755 *your public html folder*

$>cd *your public html folder*

$>chmod 755 index.html

That should fix it. People new to Linux that have migrated from Windows usually forget about having to setup their file permissions correctly. Don't feel bad, I stumbled around for an hour during my newbie years trying to find out what was wrong. Turns out I had my "htdocs" directory permissioned wrong.

Let me know if this works or not.

z-vet 11-07-2004 01:53 AM

A good article about installing Apache, php and MySQL on Linux may be found here.
I installed it using this tutorial and everything working, so give it a try.

emptystrings 11-07-2004 02:19 AM

That was a quick fix! Thanks Mike. I will never forget to set my permissions now.

I picked Slackware because I'm the type of guy who has to spend hours after an Windows install removing all the stuff I don't need. Also, the over-riding description of Slackware seemed to be fast and stable. Can't argue with that. :)

Any ideas about what the error log is saying in regards to SSL?

z-vet, thanks for the link. I will refer to it when configuring MySQL... eventually.

MikeZila 11-07-2004 02:23 AM

Quote:

Originally posted by emptystrings
Any ideas about what the error log is saying in regards to SSL?
Nope. Never had any problems with a stock Apache installation on Slackware. (Aside from a few permissions pile-ups like yours) The Slackware Apache comes pre-configured to use mod_ssl, so if you can see your homepage by pointing lynx (or any other web-browser) at localhost, you should be square already.

I'm really glad that I could help!

j-ray 11-07-2004 11:08 AM

did u change httpd.conf in regards to ssl like creating a virtual host:443 or sth like that?
did u make a certificate? it is needed for the ssl handshake.
apache comes with a script called certificate.sh to create that.
to run the script u have to chmod 0755 it again.
cheers, j


All times are GMT -5. The time now is 05:27 AM.