LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2003, 09:34 AM   #1
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Rep: Reputation: 15
Redhat 9.0 As webserver (with mysql, PHP and FTP access)




Ok im new to using linux. i used redhat 7.3 a while ago and im now downloading redhat 9.0.

Ok what i want 2 do is turn my spare computer (128 meg of memory, p3 550) into a webserver 2 host 1-3 small websites and 2 be able 2 use it for testing.

i need it 2 have mysql and php installed aslwell as FTP access. i want it 2 have the DNS's working aslwell (i have a hn.org account already if that helps... i dunno)

another problem i may have is that im running on a wireless network using netgear MA101 usb adapters (are these usable on redhat 9.0?)

Well now the big question... IS all this posible. / any advice / do you think a newbie will be able 2 do this...

When its all setup i will be running if without a moniter and just use telnet 2 set anything up.... so i wonder is it possible 2 boot into a txt mode 2 save memory?

Thanks 2 anyone who can help!
 
Old 06-01-2003, 10:03 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
First seems like you need to test the usb wireless network thing.
Then set up SSH, dont use telnet.
Runlevel 3 is without having the X server and all that gui running. Maybe use 5 to set it all up easily, and then set it to 3 and reclaim the monitor and keyboard
FTP will probably be easier to set up and check the DNS is working.
Once it is, then try Apache+PHP+MySQL

Last edited by Proud; 06-01-2003 at 10:04 AM.
 
Old 06-01-2003, 10:20 AM   #3
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks for the reply.... erm... newbie question... Runlevel? (hmmm... i know that SSH is sercure.. is there any other diffrences?)
 
Old 06-01-2003, 10:22 AM   #4
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Rep: Reputation: 15
Cool

Webserving, databasing and php-ing is the reason linux is built

Install linux without X windows then install webmin into the system
so that you can do what u want easier.

Webmin can be downloaded at www.webmin.com

Enjoy
 
Old 06-01-2003, 10:34 AM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
On almost all linux systems there exists runlevels. This is related to how the machine boots (see mainly the Init section from From Power Up To Prompt HOWTO).
You can edit what's loaded in each runlevel via the SysV-Init Editor.
To simply change runlevel, read /etc/inittab and change the number in the section which normally reads:
Quote:
# Default runlevel. The runlevels used by Mandrake Linux are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
I think the security of SSH compared to telnet should be a big concern of yours.
You'll also need to set up a good firewall for your network. Try reading about iptables.
 
Old 06-01-2003, 10:35 AM   #6
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
i want 2 keep the X windows... cos i never know when i will want 2 go back and use linux over windows.... .... So what is the webmin?
 
Old 06-01-2003, 10:42 AM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Webmin allows administration via web browser. It's a fast/light remote gui login thing. In your case it's probably easier to just set up everything via a nice gui, then when it's working as a nice server, switch runlevels so you dont have X running and taking up resources. You can always switch back when making major changes.
 
Old 06-01-2003, 10:44 AM   #8
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks for the replys so far.... well i got a firewall inbulit with the router and redhat 9.0 has its own inbult firewall.....

hmmm... is there a way for me 2 telnet (or ssh) into the linux box... then be able 2 add new users 2 the system (and it also makes a new web directory for them and adds them 2 the FTP thing(nice tech term)... sooooo somthing like

newuser <username> <password>
 
Old 06-01-2003, 10:50 AM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Try man adduser, though there's probably a nice GUI option to do this. You can definately admin the whole system via remote login once you know what you're doing. Adding and configuring web and ftp features for the accounts probably requires a little reading about the specific servers you're running
 
Old 06-01-2003, 01:29 PM   #10
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
9.0 60% downloaded... *wishes it would hurry up*.....

thanks for the tip on adduser... iv been playing arround with it and now i know how 2 use it !

[root@localhost home]# /usr/sbin/useradd -g users -s /bin/bash -m -c 'bobs' bob
 
Old 06-01-2003, 01:37 PM   #11
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
God no, get Mandrake9.1 instead. If you ever want to compile nice things like your servers and kernel for more speed, RedHat has a broken compiler, making upgrading it to a working one a bitch too.
 
Old 06-01-2003, 02:16 PM   #12
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
i cant afford mandrake... im broke at the moment... and i dont want 2 buy any linux distros untill i know the basics of how 2 use it
 
Old 06-01-2003, 04:09 PM   #13
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Mandrake's free, all linux is free, all GPLed things are free.

It's the support and non-GPLed apps which you might get with the larger packages which isnt free. That and the cds and manual.
 
Old 06-01-2003, 09:42 PM   #14
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
well iv installed redhat 9.0 (it was nearly downloaded anyways...) ok.. now then.. how do i enable the FTP?
 
Old 06-01-2003, 10:11 PM   #15
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
i got the ftp working all by my self :P ! he he... right... im having a problem with apache.. i can get it started.. but how do i point it 2 a folder? (say i want 2 go 2 public_html for a user called freak i should enter http://<ipaddress>/~freak/ but that dont work.... but going it http://<ipaddress> does brink up the test page
 
  


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
all-in distro for webserver+php+mysql ? RonaldUitAlmere Linux - Distributions 2 10-20-2005 10:17 PM
mysql/php access denied error Chuck23 Linux - Software 3 02-15-2005 06:36 PM
Apache2, MySQL & PHP Web Server. FTP Needed! Bobson Linux - Networking 4 02-07-2005 04:25 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
REDHAT-PHP-MySql fdy Linux - Software 5 06-16-2003 07:16 AM


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