LinuxQuestions.org
Visit Jeremy's Blog.
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-10-2009, 03:53 PM   #1
odendaal1
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Configure a server through shell


Good day,

I have just rented a dedicated server from my hosting provider which needs to be set up.

I was provided with an ip address where I can open a connection to the server through Putty. I can connect as root but have no idea what to do.

Could someone please point me in the right direction, I need to have this set-up as a web server with php and MySQL. I also need to be able to configure the php.ini for the specific application as well as have port 8888 open on the firewall to communicate with an external service provider.

I am a complete newbie and any help would be greatly appreciated. All I know is that it is a Fedore 9 installation. I have done yum install httpd and yum install php.

Thanks in advance.
 
Old 10-10-2009, 06:23 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Installing software is defferent from distribution to distribution, which one do you use? RedHat, SUSE? DEBIAN? And what version?

Installing on debian look like:
apt-get install php5 mysql apache

on RedHat:
yum install php5 mysql apache

On SUSE:
zipper install php5 mysql apache
 
Old 10-10-2009, 06:23 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Do you have any Linux experience to start with? You have a lot of learning ahead of you if you don't know the command line and are trying to setup a server for the first time.
 
Old 10-11-2009, 02:35 AM   #4
odendaal1
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, the server is running Fedora 9. I unfortunately have absolutely zero Linux experience and I realise the learning curve will be steep but there is no other alternative. At least this forces me to gain some Linux skills that I have wanted to gain for some time now.
 
Old 10-11-2009, 04:11 AM   #5
odendaal1
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, it seems as though php MySQL and Apache have all been set up on the box. If I understand things correctly I need to set up a virtual host which will point to a folder on the server, then I need to configure the DNS to point to the virtual host, create a FTP account to the data folder and upload the files.

So, i will create /var/www/pleasehelp folder and upload the files in there. I will then create a virtual host called www.pleasehelpmenow.co.za which points to that folder.

I will also need to be able to send and recieve mail on this domain.
 
Old 10-11-2009, 04:55 AM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
You can install php, mysql, apache, using yum. You should have rented a vps that you can rebuild when you break it through a control panel since you have no experience. That would save you a few $. Any ways I would suggest you to use cpanel (http://www.cpanel.com) is a paid solution but its great for web hosting. You download their install script and simplay run
Code:
# sh latest
After it finishes reboot and go to https://yourip:2087 and it will take you through setting up your server

It will install mysql, php, perl, apache, and other good stuff. It would be best for a first user in my opinion.

Alternative
http://www.howtoforge.com/perfect-se...10-ispconfig-3 for 32bit on fedora 10
http://www.howtoforge.com/perfect-se...64-ispconfig-2 for 64bit on fedora 11

This is a tutorial that may help you. Never actually used these ones in particular.

Good luck

Last edited by jmc1987; 10-11-2009 at 05:53 AM.
 
Old 10-11-2009, 05:43 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Thumbs down WTF?

Come FSCKIN ON Elv13, MS3FGX and jmc1987!

How can you waste time posting instructions when the essentials aren't dealt with properly?:
Quote:
Originally Posted by odendaal1 View Post
I can open a connection to the server through Putty. I can connect as root
Quote:
Originally Posted by odendaal1 View Post
a complete newbie
Quote:
Originally Posted by odendaal1 View Post
Fedore 9
Please point the OP to GNU/Linux basics first. TIA
 
Old 10-11-2009, 05:49 AM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by unSpawn View Post
Come FSCKIN ON Elv13, MS3FGX and jmc1987!

How can you waste time posting instructions when the essentials aren't dealt with properly?:




Please point the OP to GNU/Linux basics first. TIA

Very true he should atleast get a book on linux. I started out with The complete Reference Linux sixth Edition.

Now if you was referring to me "how can you waste time posting instructions" Because I understand that alot of people think linux is going to be easy starting out which it can be if you start at the right level. I just help others as other help me.

Last edited by jmc1987; 10-11-2009 at 05:51 AM.
 
Old 10-11-2009, 06:39 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by jmc1987 View Post
Very true he should atleast get a book on linux. I started out with The complete Reference Linux sixth Edition.
Good! That could address the "complete newbie" part. (Often people also point to Rute or the Fedora Wiki.) Still missing two key topics though.


Quote:
Originally Posted by jmc1987 View Post
if you start at the right level.
Yes, it will be. But with all due respect "the right level" isn't installing the "AMP" part in LAMP. True, that may be the most straightforward and direct answer to the OP's questions but more experienced LQ members please look beyond that for the bigger picture. Newbies are prone to making all the wrong decisions because they often will focus on what they want instead of what they need.

* Everyone knows Fedora is on a very short release cycle (http://fedoraproject.org/wiki/LifeCycle/EOL). That is important to know for the OP because running a EOL'ed (meaning: unmaintained, unsupported, vulnerable) release means more (unnecessary) risks and more maintenance. Knowing this the OP has the choice to opt for another release or distribution (or provider). Not knowing it means having yet another easy target on the 'net which affects all of us.

** More importantly the OP indicates logging in as root over SSH. If you have any practical experience at all you will know configuring/hardening the server is the first issue to address, not running services. As part of that the OP should:
- not mess with configuration without understanding the implications,
- not disable SELinux,
- add an unprivileged user account, set a strong password (and change it regularly), and properly chage the account,
- review and configure other accounts in use,
- install Sudo and configure it to allow the unprivileged user to perform tasks requiring root privileges,
- configure the unprivileged user to use SSH with pubkey auth instead of passwords,
- configure /etc/hosts.deny and /etc/hosts.allow to only accept SSH connections from his management IP or range,
- configure the firewall do the same or install fail2ban or equivalent (see http://www.linuxquestions.org/questi...tempts-340366/),
- configure /etc/ssh/sshd_config to deny root logins (and see http://www.linuxquestions.org/questi...51#post3710051 and down),
- install and configure a filesystem integrity checker,
- install Logwatch and actually read emailed reports to keep tabs on things.
(Also see: http://rkhunter.wiki.sourceforge.net/SECREF)


In short GNU/Linux is all about performance, versatility and providing services in a continuous, stable and secure way. A GNU/Linux machine is coveted by many because of its power. Especially with newbies we should help OP's ensure the power remains theirs. And that requires looking at the bigger picture. I hope by now you understand what I mean.
 
  


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
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 07:39 AM
how to configure the printer using shell scripting? triple_play45 Linux - Hardware 3 02-26-2006 10:02 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
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 02:39 PM


All times are GMT -5. The time now is 06:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration