LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-30-2007, 09:04 PM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
creating a web server in linux


hello there, i really have a big problem. i don't have any idea how to create a web server in linux...
i have created a socket server that sends hello world to it's client and another socket server that echoes the clients request..is there a way that out of these socket server, i could make a web server that accepts large files and is in http protocol..
 
Old 05-30-2007, 10:16 PM   #2
ovan
Member
 
Registered: Mar 2007
Location: Jakarta
Distribution: Mint 19.3
Posts: 38

Rep: Reputation: 15
According to my experience, i have a web server too with mandriva 2006 as operating system.
So far, mandriva is the easiest linux that i ever try & reliable enough.

If you are using mandriva, this is several things to do
- Make sure you have BIND packets (bind, bind utils, caching-nameserver)
- Make sure Apache & mysql are already installed & configured correctly
- Go to webmin, click on server
- Set it up by inputing Name server, Public IP address, reverse zone, mail, etc.
- To check is your config work or not, type in console dig @xxx.xxx.xxx.xxx domain.com any
- If the answer has no errors, you've done it right...
 
Old 05-31-2007, 01:34 AM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
bad thing is, im not using mandriva 2006... T_T
 
Old 05-31-2007, 04:57 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Install apache or Lighttpd. There are lots of howto's out there. You need to establish if your isp allows requests on port 80 which is the standard http port. Make sure you have a good firewall. You would then have to configure your internet interface to forward requests on port 80 to your public ip address to the server ip address. This is a synopsis of what is required. I have a page on my adsl server that deals with this topic and provides some useful links.
 
Old 05-31-2007, 05:47 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
From your opening post, I understand that you wrote those servers yourself. IF so, is that what you want to do again?

Or do you indeed want to setup a webserver from existing components (as assumed by the others)?
 
Old 05-31-2007, 06:33 AM   #6
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
out of the socket server that i have created, is there a way that i could use them to create a web server???
 
Old 05-31-2007, 09:03 AM   #7
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Quote:
Originally Posted by jaepi
out of the socket server that i have created, is there a way that i could use them to create a web server???
Why in the world would you want to? The 'wheel' has already been created, why reinvent it?

Keith
 
Old 05-31-2007, 12:06 PM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Yes, you can build your own webserver. It just requires a study of the HTTP protocol. Enjoy, it will keep you busy for a while.

Advanced Linux Programming contains a simple webserver that you can use as a start. You can download the book.

Quote:
Originally Posted by kromberg
Why in the world would you want to? The 'wheel' has already been created, why reinvent it?
Maybe as a configuration tool? You don't need a full fledged webserver for that.
 
Old 05-31-2007, 08:10 PM   #9
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by kromberg
Why in the world would you want to? The 'wheel' has already been created, why reinvent it?

Keith
Because it's part of my training. I have no choice. I have to reinvent the wheel, or recreate the world blah blah blah...
 
Old 05-31-2007, 08:13 PM   #10
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
Is there a Beginners Linux Programming like this?

Sorry for derailing the topic slightly
 
Old 05-31-2007, 11:57 PM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
@Virtuality
Do you need a programming howto in general, or do you have programming experience and like to advance to Linux specifics? For the latter, I found the Linux Programming Bible by John Goerzen very usefull. But you have to buy it. And as I bought it, I never searched the internet for info.

@jaepi
nweb: a tiny, safe Web server (static pages only)
 
Old 06-01-2007, 12:20 AM   #12
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thank you Wim Sturkenboom. This is a big help.
 
  


Reply



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
Creating a proxy server with web based login shannondoko Linux - Networking 0 06-06-2005 07:28 PM
Creating a Web Server out of SuSE 9.1 Tuul SUSE / openSUSE 2 01-25-2005 09:12 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration