LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-23-2006, 08:33 PM   #1
sewmyheadon
LQ Newbie
 
Registered: Jun 2006
Location: Gig Harbor, WA
Distribution: Zenwalk, Ubuntu Server
Posts: 3

Rep: Reputation: 0
Question Setting up Ubuntu LAMP Server for local web server


Hello,

I'm a web designer that's been using Linux on shared servers running cPanel for quite a while. I've setup an Ubuntu 6.06 LTS LAMP server on a spare box in my office so I can use it as a development and testing server. I installed the OS and it went perfectly. Of course, there's no GUI, but I really didn't want that, although I may end up needing to add one.

Still I have a few newbie questions and was hoping someone could give me some pointers, or direct me to resources that might help. My eyes are starting to cross from searching for, and reading, articles.

Here's the gear:
  • Ubuntu 6.06 LTS LAMP Server
  • Linksys Broadband Router (WRT54G) providing DHCP
  • My non-Linux development PC

Here are my goals:
  1. To use this Ubuntu box as a local test server only - no outside Net access
  2. To create different accounts for different users/web sites
  3. To be able to access the web server via IP address and hostname
  4. To be able to connect to the server accounts via FTP
  5. To be able to connect to the server accounts via SSH

Here's where I am in the setup:
  • The server is running fine, including Apache, PHP & MySQL
  • I can connect via SSH using the IP address
  • I can pull up the default Apache page using IP address only
  • I've created a public_html directory in a user home directory and can see this from the other PC as well using IP address only
  • I'm not able to hit the server using its hostname from another PC on the network, only IP address

Here's what I don't yet know:
  1. If I need to setup a static IP for the Linux box and, if so, is this something I do from the Linux box, or the Linksys router?
  2. Since the router is DHCP, there's a chance it would dole out a different IP down the road, I believe?
  3. Do I need to setup DNS if I'm not connecting from outside this network?
  4. If I do install Gnome, how do I setup GRUB to allow me to select whether to load it or not?
  5. Being a long-time cPanel user, is there a free application that someone can recommend that will help automate or ease the setup of new users/accounts on the system and provide some of the features in cPanel?

Well, that's enough for now. Thanks in advance for any help you may be able to give.
 
Old 06-23-2006, 09:46 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
1. You'd set the static IP on the linux box. I don't use Ubuntu, but I'm guessing it will be under /etc/conf and probably net or net.eth0

2. If linux is set to static, it wouldn't matter that the router tries to send out an IP via DHCP, linux would just ignore it.

3. You could configure DNS, or add an entry for the linux box in your existing DNS server's zone. If you don't have local DNS, you could add the entry into the HOSTS file of the machine(s) you are connecting from.

4. Not sure on this one. Odds are you'd add a arguement like init=3 or init=5 in the kernel line.

5. Don't even know what cPanel is, sorry.
 
Old 06-23-2006, 10:02 PM   #3
sewmyheadon
LQ Newbie
 
Registered: Jun 2006
Location: Gig Harbor, WA
Distribution: Zenwalk, Ubuntu Server
Posts: 3

Original Poster
Rep: Reputation: 0
musicman_ace,

Thanks so much for the assistance - I really appreciate it.

Quote:
Originally Posted by musicman_ace

3. You could configure DNS, or add an entry for the linux box in your existing DNS server's zone. If you don't have local DNS, you could add the entry into the HOSTS file of the machine(s) you are connecting from.
I'm not running local DNS right now. It's just two WinXP PCs on the network in a Workgroup. I'm adding the Linux server to this, but don't have a proper 'network' setup yet.

Would you recommend running local DNS? Could I then give the server a domain like myowndomain.com and hit the webserver using this name (assuming it's not taken elsewhere on the net)?

Quote:
Originally Posted by musicman_ace
4. Not sure on this one. Odds are you'd add a arguement like init=3 or init=5 in the kernel line.
Thanks.
Quote:
Originally Posted by musicman_ace
5. Don't even know what cPanel is, sorry.
It's a hosting management interface that is common on shared hosting servers, and allows you to quickly setup domains on the server and allocate resources to them.

I was looking for a similar, free alternative, but it's not a big deal.

Again, thanks.
 
Old 06-26-2006, 01:10 AM   #4
tobrien
LQ Newbie
 
Registered: Mar 2005
Location: Rochester, NY
Distribution: Ubuntu 10.4
Posts: 25

Rep: Reputation: 15
A web based configuration editor that I recently found that is probally similar to the one you are talking about is called WebMin http://www.webmin.com/. Don't know if it is what you are looking for, but it says it supported on Unbuntu. Actually just did the desktop version install and may end up doing the LAMP for fun.

Tadge
 
Old 06-26-2006, 10:44 AM   #5
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
You don't need to have local DNS since its only 3 computers. Just add the IPs to the HOSTS file

Windows location is c:\winnt\system32\drivers\etc\HOSTS
Linux location is /etc/hosts

The line would be something like
Code:
192.168.2.1     WindowsBox1
192.168.2.2     WindowsBox2
192.168.2.3     linuxbox
 
Old 02-11-2007, 03:06 PM   #6
raptor95368
Member
 
Registered: Jan 2004
Location: Where the work is...usually Global
Distribution: RH 7,8, 9 and Solaris 8, Ubuntu
Posts: 45

Rep: Reputation: 15
Your linksys router will allow you to set up a permanent lease for each of the boxes you have on your local network, as well as serving DHCP addresses to any external systems, ie laptops, that you might also access the network with.

Webmin is my configuration tool of choice for the LAMP server, and I know it works with ubuntu.

Edit /etc/grub.conf to show that the init stat of your gnome installation is set to runlevel 5 (init=5) and this should allow you to default boot into the graphical desktop.

Cheers
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM
LXer: How To Build A LAMP Server With Ubuntu 6.06 LTS LXer Syndicated Linux News 1 06-06-2006 10:25 AM
LXer: Setting up a local web server in Debian Linux LXer Syndicated Linux News 0 01-17-2006 01:01 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 08:11 PM
setting up a LAMP server in Slackware 10.0 yolopollo Slackware 2 07-23-2004 04:32 PM


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