LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-27-2004, 03:36 PM   #1
LiNuXn00biE_2.4
LQ Newbie
 
Registered: Oct 2004
Distribution: Red Hat 9
Posts: 26

Rep: Reputation: 15
Need some Help with Server


ok I have an HP Net Server with a Pentium 3 1.0ghz CPU and 6 HP SCSI Drives. Anyway I am running RedHat 9 and trying to get everything running online I know how to do port forwarding and all that stuff. The only thing I need to know is what folder do I put stuff in so it is seen online and how do I get a domain for it? IE: something dot com I saw a Var folder with the WWW and with my past experience with FTP thats the folder you need for stuff to be seen is this correct? I am coming from Windoze and need to learn about this Because I tried a Server with Windoze but there were to many errors and I heard this is way more secure so yeah anyway all help will be appreciated
 
Old 10-27-2004, 03:50 PM   #2
blueplazma
Member
 
Registered: Jun 2002
Distribution: Debian/Ubuntu
Posts: 56

Rep: Reputation: 15
Ok. Assuming you have all the hardware working correctly, then you should install something like apache. Apache will use /var/www as the default directory to store your webpage in. Configure Apache to your liking, then make sure it's running. Once you get that all done, you need to buy a domain. I happen to like GoDaddy but you can use any registrar you like. CustomDNS is also good if you have a dynamic IP. You shouldn't need port forwarding, but just make sure your firwall keeps port 80 open.
 
Old 10-27-2004, 05:59 PM   #3
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
You're a Windows guy -- so something you probably need to get a handle on is Apache, the most common *nix based Web server out there. If you're using RedHat, chances are your web server configuration file is located here: /etc/httpd/httpd.conf. That file contains your web server configuration. In that file, you need to create a VirtualHost directive, that will basically tell Apache that its job is to do hosting for www.yourdomain.com.

I would recommend going to the URL hyperlinked above and reading about virtual host directives, and just search online for a bunch of examples. If you're looking for a short cut, just send me your domain name, and a copy of your /etc/httpd/httpd.conf file via private message, and I will modify the file for you and send it back.

Last edited by neilman; 10-27-2004 at 06:00 PM.
 
Old 10-28-2004, 08:37 PM   #4
LiNuXn00biE_2.4
LQ Newbie
 
Registered: Oct 2004
Distribution: Red Hat 9
Posts: 26

Original Poster
Rep: Reputation: 15
I have heard of free DNS services and I was wondering how I would get one and then if I did that I was thinking of setting up a dot TK. If that would work and thanks for your responses I will really have to delve into Apache now and I was also wondering if someone could teach me how to Un-Tar a file or complile it onto the system or whatever because I want Mozilla FireFox on it but I don't know how to install it like I did with windows I really need to get out of the Windows way of thinking . I also would like to Install PHPbb On it and I don't know anything about PHP on Linux and very little PHP as it is

Last edited by LiNuXn00biE_2.4; 10-28-2004 at 08:40 PM.
 
Old 10-29-2004, 12:09 PM   #5
blueplazma
Member
 
Registered: Jun 2002
Distribution: Debian/Ubuntu
Posts: 56

Rep: Reputation: 15
I haven't kept up too much with Redhat, but I'm pretty sure you can find an RPM (Redhat Package Manager, it's like a .exe file in windows) file of Firefox and install that. It will save you the effort of compiling it. To install an RPM file, you need to execute the command
Code:
rpm -i filename.rpm
This will install the program for you, much like an installer would in windows. Also, dotTK is a redirection service, so you'll need to get Apache set up for that. I recommend reading the manuals already referenced, then trying to set it up. If you run into trouble after that, feel free to ask. PHP will be a little more complicated, but not impossible so to install on apache. I believe you can just set up modPHP, but I've never tried it. So you may need to do some reading on that.
 
Old 10-29-2004, 01:14 PM   #6
LiNuXn00biE_2.4
LQ Newbie
 
Registered: Oct 2004
Distribution: Red Hat 9
Posts: 26

Original Poster
Rep: Reputation: 15
I have FireFox and Apache un-tarred on my computer and FireFox is working I just need to know what to do with apache I have a folder now that says HTTPD2.0.?.? (the ?marks mean whatever) Now I just want to know how do I configure of it

Last edited by LiNuXn00biE_2.4; 10-29-2004 at 01:39 PM.
 
Old 10-29-2004, 03:03 PM   #7
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
What to do once you have your tar.gz file..

1. Untar your file like this: tar -xzvf filename.tar.gz - this will unpack your tar file (as well as un-gzip it) into a directory called apache-x.x.x. The "-xzvf" means, eXtract, ungZip, Verbose output, Filename follows.

2. cd apache-x.x.x (change into the apache directory that was just created on the last command)

3. ./configure --prefix=/usr/local/apache

4. make

5. make install

6. cd /usr/local/apache/

7. pico (or whatever text editor you use) /usr/local/apache/conf/httpd.conf - make any changes you want here, but I think it may not be necessary to make changes just to launch your web server.

8. Launch your web server with: /usr/local/apache/bin/apachectl start

9. You can stop your web server with: /usr/local/apache/bin/apachectl stop

Your main web content directory is here: /usr/local/apache/htdocs. Now that you have your browser loaded, and your Apache server running, point your browser address to: http://localhost/ - if you see an Apache welcome message, you're golden.
 
  


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
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Relay Server<-> GatewayServer<->filtering server: PostFix, amavis,spamassassin, cyrus admore Linux - General 0 11-02-2004 08:46 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
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Linux app-server to server StarOffice to Windows Clients: Need advice biosx Linux - Networking 3 08-14-2002 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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