LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-04-2006, 07:23 PM   #1
sbrown9568
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Question need a web server


i have a windows box. and want to serve some web sites and i was told linux would be the way to go. so what options do i have
 
Old 01-04-2006, 07:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If you want to run a web server from windows, there is a port of the apache web server to windows. Google Apache Windows. Not sure how secure this is, but you'll be able to continue using windows at the same time you have your web server up.

Otherwise you'll have to dual boot and set up linux with apache. Then your web pages will only be served when your machine is in Linux. Most linux distributions can install apache. I personally use Debian Sarge. After installing Debian, just apt-get install apache2.
 
Old 01-04-2006, 07:34 PM   #3
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Rep: Reputation: 30
Hello,
Im setting up a web server on linux too, have one on my windows machine as well. You need to install Apache webserver on both OS's. It is easy to install. your httpd.conf file states where your wwwroot folder is, typically your htdocs dir.
 
Old 01-05-2006, 10:05 PM   #4
sbrown9568
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Question apache

well i built a new tower and im runing suse i have apache installed now i dont know any thing about linux and the only web things i have done is with ms frontpage and then published it to a web server tha my isp provides so how do i put a web address on apache. also can i edit and publish the page from my windows box. and remember first time linux user 1 day. thanks for any help!!!
 
Old 01-06-2006, 05:47 AM   #5
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Rep: Reputation: 31
Hello sbrown9568,

I think you need to configure apache. http://www.apacheref.com/ will be helpful. Normally you can see your web page by using http://localhost or http://127.0.0.1 in your browser window.

As you wrote, you are on 1st day and first time user of linux, then I will suggest you to first, look and explore linux and its basic. Configuring apache properly require some knowledge of directory structure and linux commands. So first go for that.

I don't want to discourage you, but its an advice. Still you can look the above url

Thanks, Kirtimaan.
 
Old 01-06-2006, 07:32 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
First of all, Microsoft also has a webserver, called IIS, but it's basically crap as far as I know.

Secondly, the most popular Unix/Linux webserver is Apache.
There are alternatives. Tomcat can run stand-alone for instance.
A combination Apache + Tomcat is also do-able.

Like kirtimaan_bkn, I would also like to advise to get to know some Linux basics first. Setting up a publicly
accessible webserver has some security implications. A personal webserver, just for your home network, is pretty simple to set up.
 
Old 01-06-2006, 08:05 AM   #7
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
This is how i set up apache for suse:
To access the http-server with a graphical interface:
go to start -> system -> control center -> Network services -> HTTP Server.
You can enable/disable the server here.

apache2ctl start
In a konsole (as root): manually starts the apache server; stop for stopping; restart for restarting.

To view the default-page in the root of your server enter this in a browser: http://localhost/
Do you get this error :?
httpd2: could not open document config file /etc/apache2/sysconfig.d/include.conf

Then edit /etc/apache2/httpd.conf with an # so you get this line:
# Include /etc/apache2/sysconfig.d/include.conf
You can do this through: start -> system -> file manager -> file manager - Super user mode, browse to the file and edit it with kate.

Next we need to configure apache to point to the right directories.
The default setting can be found at:
cat /etc/apache2/default-server.conf
So it serves its pages from /srv/www/htdocs
We leave this directory setting as it is and use symlinks to get to the proper directories under home/user
We want symlinks so we edit this part so it looks like:
DocumentRoot "/srv/www/htdocs"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Options Indexes FollowSymLinks
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
# Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>

Next we make the symlinks to link to our homedir where the pages are put.
Go to your homedir and drag the pages-dir to /srv/www/htdocs and choose link.
You might need to set the permissions to user: wwwrun , group: users.

The serverlog can be found at:
less /var/log/apache2/error_log
less /var/log/apache2/access_log

/edit: please note that i am running it like this as a test-server. It could be safer not to use symlinks since they might lead to unwanted dirs ...

Last edited by muha; 01-06-2006 at 04:04 PM.
 
Old 01-06-2006, 08:27 PM   #8
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Rep: Reputation: 30
To get a web adress you need to register your IP with a website and pay yearly
 
Old 01-06-2006, 08:35 PM   #9
Dotmatrix29
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Quote:
To get a web adress you need to register your IP with a website and pay yearly
I have a question about this. I am setting up a web/game host using Fedora. I have 2 domain names already registered and just sitting at the host where it was registered.

Do I need to pay somewhere to register my IP address? ( I am getting a 2nd one from my ISP service to point to the server ) ...
 
Old 01-07-2006, 02:48 AM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If you already have IP's that your ISP allows to be used as servers, you might look at something like Free DNS or google "free DNS". They allow you to have a domain name that is linked to any IP (you can change it if you change IP's). For that matter, some of them even have Dynamic DNS where your server will query the DNS service every so often to tell it the new IP (if your IP changes from time to time, for example).
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 10:50 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 03:38 AM


All times are GMT -5. The time now is 08:33 PM.

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