LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2004, 09:56 AM   #1
simsjr
Member
 
Registered: Apr 2004
Location: I'm everywhere, Focker!
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Cool How to Setup Basic Webserver?


Hola,

Ok, so I would really love to start learning the ins and outs of Linux webserving. For starters, I'm running Slackware 9.1 (2.4 kernel) and want to enable HTTP traffic to a single directory on my primary HD. This is going to be an experiment mostly, but I still want to keep my box as secure as possible while I do this.

Basic capabilities should include PHP & MySQL functionality. If anyone knows of any other addtional services I should experiment with while putting myself through "webmin" school, please enlighten me.

Is there a standard methodology for setting up a Linux webserver? I'd like to stick to the "book" in a manner of speaking, if there is in fact a "book" to begin with. Make sense?

That said, where do I start?
 
Old 04-22-2004, 11:59 AM   #2
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
I would say if you want everything secure then you need to start with a firewall. You will want to drop all incoming connections that are not destined for port 80 (http) or if you want port 443 (https). After your firewall is all setup, you should run nmap on your machine and see what ports are open to the outside world.

After that comes the apache setup. Not sure if you have done any of this before so sorry if I make it too simple You should su to root and then cd /etc/rc.d. in this directory you will see a bunch of files that start with rc.<service>. You will find one that is rc.httpd. To make it executable you will want to chmod +x rc.httpd. Then you should ./rc.http start. If this gives you any errors, please post them and I can help you out. I know that after updating with swaret, I needed to make some changes to my /etc/apache/httpd.conf file. You will also want to uncomment the lines at the bottom of the httpd.conf file that read:
Include /etc/apache/mod_ssl.conf
and
Include /etc/apache/mod_php.conf

These will include the modules so you can run ssl support and php. Let me know if you have any problems or if I didnt answer the correct question
 
Old 04-22-2004, 05:21 PM   #3
simsjr
Member
 
Registered: Apr 2004
Location: I'm everywhere, Focker!
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 16
Talking

Awesome. I forgot about SSL and HTTPS! Deffinately essential.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone help me setup webserver? kuplo Linux - Software 2 11-05-2005 07:24 PM
setup webserver w/o rpm ziggie216 Linux - Software 2 05-24-2004 11:30 PM
How can i setup webserver in linux?? polopolo Linux - Newbie 7 03-26-2004 07:54 AM
Trying to setup a secure webserver pyrombca Linux - Software 0 09-02-2003 06:04 PM
Webserver Setup bytebrowser Linux - Networking 6 06-21-2003 05:34 AM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration