LinuxQuestions.org
Review your favorite Linux distribution.
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 07-04-2011, 02:52 PM   #1
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Rep: Reputation: Disabled
Talking Pitfalls of instalering of CentOS server


Hello I am a novice when it comes to web server with Linux. I wonder then if there are any pitfalls I should avoid when I start on a new installation?
 
Old 07-04-2011, 03:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
there's all sorts of ways of going wrong, but we couldn't possibly point any anything useful with such a vague request. erm.. make sure you have enough resources available - disk / ram / cpu...? I could mention things about socket timeout tuning, but that's too avanced if you're just starting. I suppose disabling SELinux is probably something to do in the first instance... what else are we supposed to say? If the pitfalls were that common, they would be designed out of the system...
 
1 members found this post helpful.
Old 07-04-2011, 03:24 PM   #3
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi
Sorry for the vague question, when you are new to this so, the questions also maybe be vague. What I mean is there are things in CentOS that I do not need to install, then I'll put up the web server and file server (maybe mail server). I was running CentOS 4.1 but it was set up by a friend of mine, but this time I would do the job yourself. My server is an old Dell machine that has 4 gig of memory and dual core 2.8 GHz processor, there is room for six SATA drives.

PS. Thank you for your very quick response.
Jan-Ivar
 
Old 07-04-2011, 03:27 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Just choose a minimal install and go from there. It's trivial to add stuff, so if in doubt, just don't install it in the first place.
 
1 members found this post helpful.
Old 07-04-2011, 03:30 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
for CentOS and RHEL leave SElinux ON but set to permissive to start with
that way you get ALL the warnings and you can fix them
and LEARN how to fix and set the se context

second
build from source / manual install apache and mysql, php, phpmyadmin,...
That way you LEARN how to set them up

once you DO know how to set them up the rpms will only save you 30 min. per install . not much time .

read then reread then REREAD the apache and mysql and phpmyadmin docs
study them as if you were about to take a final exam on it and you MUST get a 4.0


as to CentOS
fallow ALL ALL the warnings on the wiki about third party repos
and set yum-priorities and maybe yum-protectbase
http://wiki.centos.org/
http://wiki.centos.org/AdditionalResources/Repositories

Quote:
I was running CentOS 4.1
you do know that 4.9 is the ONLY 4 that is supported

that hardware will have no problem with centOS 5.6
I have Scientific linux 6.1 on a dell box from 2000 right now
and had cent5.5 on it with 512 meg ram ( now 1 gig ram)

Last edited by John VV; 07-04-2011 at 03:33 PM.
 
1 members found this post helpful.
Old 07-04-2011, 03:44 PM   #6
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi
(I laugh well now) There are some typos from me, then I do not have English as their mother tongue. Sorry I got the version on the CentOS server fail. You are right, of course. Now I begin with the installation, crossing fingers and toes and hope I do not scold too much when I'm doing the installation.
 
Old 07-05-2011, 04:12 PM   #7
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Have now set up my server, and wonder why I can not create shared folders on the server. mkdir looks like it does not work. What am I doing wrong?I use Putty to access the server, the webmin installation did not com tru certainly i did something wrong here to.
Jan Ivar
 
Old 07-05-2011, 04:29 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what you're doing wrong is not telling us what you mean properly. mkdir works. Unless you tell us what you are actually doing, we can't comment on whether it's wrong or not.
 
Old 07-05-2011, 04:38 PM   #9
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
`mkdir' creates directories with the specified names.

mkdir [OPTION]... NAME...
if i wrote ex: mkdir Music (and hit enter) would it create a directory???

Jan Ivar
 
Old 07-05-2011, 04:40 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yes, it would. As long as you have the appropriate permissions to do so etc.
 
Old 07-05-2011, 04:47 PM   #11
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I have root permission. So this should noth be the the bottleneck. However should i create a directory next to root ( i dont now if i can) and cal it ex: music
 
Old 07-05-2011, 04:51 PM   #12
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
-rw------- 1 root root 1230 jul 5 16:47 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 jul 5 21:53 CentOs
-rw-r--r-- 1 root root 21313 jul 5 16:47 install.log
-rw-r--r-- 1 root root 4497 jul 5 16:47 install.log.syslog
-rw-r--r-- 1 root root 16263821 jul 5 12:00 webmin-1.554-1.noarch.rpm
[root@localhost ~]#
I managed to create the directory "CentOs" but i cant " cd /CentOs " and get in to it. Her you can see webmin is downloaded but i could`t install it.
Jan Ivar
 
Old 07-05-2011, 04:56 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
OK, as you're not really familiar with the Linux filesystem layout and things like that I'd really recommend taking a step back and properly picking up some basics. This tutorial looks reasonable - http://www.ee.surrey.ac.uk/Teaching/Unix/ in no time these things will seem really obvious to you (e.g. "/CentOS" is an absolute path, you want just "CentOS" - you didn't run "mkdir /centos" so why are you running "cd /centos"?)

Last edited by acid_kewpie; 07-05-2011 at 04:59 PM.
 
Old 07-05-2011, 05:08 PM   #14
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
i still cant "cd" in to it. hmmm

[root @ localhost ~] # cd music
-bash: cd: music: No such file or file directory
[root @ localhost ~] # cd CentOS
[root @ localhost CentOS] # ooops got into this one

as you can se they are ther (directories)
1230 jul 5 16:47 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 jul 5 21:53 CentOs
-rw-r--r-- 1 root root 21313 jul 5 16:47 install.log
-rw-r--r-- 1 root root 4497 jul 5 16:47 install.log.syslog
drwxr-xr-x 2 root root 4096 jul 5 22:59 Musikk

Last edited by Jan-Ivar; 07-05-2011 at 05:09 PM.
 
Old 07-05-2011, 05:13 PM   #15
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Ok i got it now. I`m to restless, Sorry folks
Jan Ivar
 
  


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
[SOLVED] Update a CentOS 5 virtual server to CentOS 5.6 dazdaz Red Hat 4 04-10-2011 06:02 AM
[SOLVED] GUI on Server...What Are The Pitfalls? Jim Bengtson Linux - Server 22 03-26-2010 02:53 PM
Should I be updating my CentOS 4.6 server to CentOS 5.3? Ujjain Linux - Newbie 3 04-25-2009 09:00 AM
CentOS 4 or CentOS 5 for Production Server shamimzaki Linux - Server 6 10-05-2008 02:35 AM
LXer: CentOS Directory Server On CentOS 5.2 LXer Syndicated Linux News 0 08-06-2008 10:20 PM


All times are GMT -5. The time now is 04:25 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