LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-24-2008, 07:49 AM   #1
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 15
How to Configure a CentOS Webserver


I have been following a tutorial I found online recently about how to setup a webserver running Linux CentOS 5. So far I have downloaded the ISO and installed CentOS as a server with the GNOME desktop environment. I am still pretty new to Linux, and although I don't totally understand everything in the tutorial, I think I managed to follow most of the directions pretty well. Here is the link if anybody is curious:

http://www.howtoforge.com/centos-5.1...-ftp-ispconfig

I have already tested and made sure that Apache, MySQL, and PHP are all working, but I don't know where to go from there. The tutorial mentioned setting up some mail server software & POP3/IMAP software as well, but I'm not sure how to test if it's working or not. After that I would ideally like to see how to setup nameservers for it and tie a domain name to it. I know this probably sounds like a lot, but if anybody can help me figure out how to approach configuring this server I would really appreciate the help.
 
Old 11-24-2008, 08:59 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

Rep: Reputation: 87
Quote:
The tutorial mentioned setting up some mail server software & POP3/IMAP software as well, but I'm not sure how to test if it's working or not.
Well, an easy way to usually test if you local Apache is running is to open a brower and see if you see an Apache page at

http://127.0.0.1

Also, to see if your local whatever pop program is running try

telnet 127.0.0.1:110

and if you get a reply it probably means your pop email process is running.

To see if your local SMTP process is running try

telnet 127.0.0.1:25

and if you get a reply it probably means it is running... Hope this helps?

Quote:
After that I would ideally like to see how to setup nameservers for it and tie a domain name to it. I know this probably sounds like a lot, but if anybody can help me figure out how to approach configuring this server I would really appreciate the help.
I don't think you need to setup anything yourself to get an internet DNS server to point to your machine - you need to ask an ISP to do it for you. It should be as easy as giving them the static IP of your machine, and the name you want... (Apparently possible to do this yourself too - obviously - but never needed to...)

Last edited by rylan76; 11-24-2008 at 09:01 AM.
 
Old 11-24-2008, 03:40 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On the DNS front, look at service like zoneedit.com that provides free DNS for a limited number of zones. There are others as well, but this is one I use and I know a few others here do too.

If you can't test a a mail server, why do you want it?

To test, if you have a user, say ascendancy, send a message with

mail -s test ascendancy@localhost < /dev/null

That should turn up in your mailbox. To see it, you shopuld be able to set up a mail client (Evolution, Thunderbird) to have an imap account on the local machine.
 
Old 11-25-2008, 07:39 AM   #4
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
On the DNS front, look at service like zoneedit.com that provides free DNS for a limited number of zones. There are others as well, but this is one I use and I know a few others here do too.

If you can't test a a mail server, why do you want it?

To test, if you have a user, say ascendancy, send a message with

mail -s test ascendancy@localhost < /dev/null

That should turn up in your mailbox. To see it, you shopuld be able to set up a mail client (Evolution, Thunderbird) to have an imap account on the local machine.
The DNS info is good to know, I'll keep that in the back of my mind for later.

As for the e-mail setup I do not know how to test it, but that's why I'm trying to learn because I'm very interested in setting up a Linux Web / mail server, so this is more like a learning experience. I tried running your code, and the response from the command line said "bash: ]mail: command not found". I'm guessing this might mean that there is no mail software installed?

@rylan76, I know my Apache is working as I've set up a few websites and Apache aliases already, I am just trying to get the mail server working now.
 
  


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
How to configure Debian to be a Webserver and FTP server? liquid1 Debian 9 07-19-2013 12:47 PM
CentOS Webserver - user policies webmarks Linux - Newbie 3 06-20-2008 02:39 PM
HELP!!! I'm VERY NEW... i want to configure my linux server as a webserver epollnac LQ Suggestions & Feedback 6 06-14-2006 07:57 AM
I want to configure Linux machine as a webserver, please help facosoft Linux - Newbie 2 02-17-2006 08:43 AM
How to configure apache webserver jagadish Linux - Networking 3 07-17-2003 12:01 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration