How do i setup a web server in linux?

Discussion about the creation of websites in general, HTML, PHP, Java.

How do i setup a web server in linux?

Postby hawkins on Sun Jul 16, 2006 4:12 am

1. I got a firewall
2. Im running gnome linux

Can some post how to setup a web server on linux or post a link to a site. That would be nice to know.
hawkins
Newbie
Newbie
 
Posts: 18
Joined: Sun Jul 16, 2006 3:53 am

Re: How do i setup a web server in linux?

Postby DjDarkman on Sun Jul 16, 2006 8:31 am

hawkins wrote:1. I got a firewall
2. Im running gnome linux

Can some post how to setup a web server on linux or post a link to a site. That would be nice to know.
What distro do you have installed?
DjDarkman
Valued Member
Valued Member
 
Posts: 166
Joined: Wed May 24, 2006 9:14 pm

Postby daddy2k on Sun Jul 16, 2006 4:50 pm

gnome linux? do you mean ubuntu?
If so you can type:
aptitude install php4 apache2

what firewall do you have? a hardware router or just some iptables rules?
If you have a router you have to log into it and look if there is something like "Virtual Host", "NAT forwarding" or similiar. There you have to type in your ip-adress and external (and internal) port which will both be port 80.
Than it should work already
daddy2k
Contributer
Contributer
 
Posts: 32
Joined: Mon Jul 10, 2006 3:14 pm
Location: Germany

Postby hawkins on Sun Jul 16, 2006 11:27 pm

oh
hawkins
Newbie
Newbie
 
Posts: 18
Joined: Sun Jul 16, 2006 3:53 am

Re: How do i setup a web server in linux?

Postby callihn on Thu Jul 27, 2006 4:24 pm

hawkins wrote:1. I got a firewall
2. Im running gnome linux

Can some post how to setup a web server on linux or post a link to a site. That would be nice to know.


Though there is a bit more to "setup" than merely installing, so you'll need this in the long run:

http://httpd.apache.org/docs/2.0/

Probably this to:

http://www.php.net/docs.php

And maybe even this:

http://dev.mysql.com/doc/

And it certainly wouldn't hurt to have these:

http://www.linuxguruz.com/iptables/howt ... ables.html

http://www.linux.org/docs/ldp/howto/Ban ... O/cbq.html

But that depends really on if you will be needing PHP and MySQL and if you want a fast web server or one being bogged down by Ddos attacks and script kiddes. Wink
callihn
Regular
Regular
 
Posts: 77
Joined: Thu Jul 27, 2006 2:35 pm
Location: Cyberspace

Postby Tencati on Fri Sep 08, 2006 4:40 pm

This is kinda related to the above but not realy. If u set up ur webserver and stuff wat about dns and all that stuff I mean how does that work? Coz as far as I've seen some one else asign u a dns and that won't work if u've got ur own server?
Nobody's insane its just a different opinion.
Tencati
Newbie
Newbie
 
Posts: 16
Joined: Mon Aug 07, 2006 2:03 am

Postby TigerWolf on Fri Sep 08, 2006 10:26 pm

You might also want to go to http://www.apachefriends.org/en/projects.html and install their product. It installs a whole lot of things in one big fell swoop.

It includes apache, php5, mysql and perl aswell as a few other things that you might find usefull and its very easy to use.
TigerWolf
Regular
Regular
 
Posts: 76
Joined: Fri Sep 08, 2006 10:33 am

Well...

Postby thestrifer on Sat Sep 09, 2006 1:07 pm

http://www.lamphowto.com/
A well complete LAMP (Linux, Apache, MySQL and PHP) how-to..
___________________
if ( $knowledge == $power) { $world = your; }
AMD Athlon 64 3400+ Socket 754 @ 2.43GHz
Asus K8V-X SE Offboard
1x512mb Ram Kingstone
NVidia GeForce FX5200 128MB AGP 8x
thestrifer
Contributer
Contributer
 
Posts: 21
Joined: Sat Sep 09, 2006 11:13 am
Location: Brazil


Return to General Webmastering

Who is online

Users browsing this forum: No registered users and 1 guest

cron