LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-09-2008, 01:17 PM   #1
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Rep: Reputation: 15
Lightbulb LAMP (linux-apache-mysql-php) server from scratch


Hi linux folks, I have some php-mysql websites I need to host. I'm hoping to set up a fast, secure, and inexpensive server.

I looked everywhere for a commercial service that will satisfy my needs. First, I tried a shared hosting service with "unlimited" bandwidth. But it's not unlimited because your account gets suspended if it uses too much resources. Then, I looked at the dedicated servers and the price is just too much for me.

Finally, I found a way to have a fast, secure, and inexpensive server. I hope to create a guide that anyone (including newbies like me) can use to start their own LAMP server. Currently, this guide is incomplete because I have a lot of questions. I have placed "//" preceding any questions that I have.

Edit- this is the final version. I hope this protocol will help whoever is trying to start a lamp server.

1. register a domain. (I registered mine at godaddy.com for $10/year)

2. Set up your own name server using tinydns- I used this software after I failed to get BIND9 to work. Also, try everydns, which offers free service.

3. rent a server (http://www.esecuredata.com/Pricing/Servers.aspx offers 2 types of servers $80-150/month). These guys are "what u c is what u get". I recommend their service.

4. Ask for a clean, basic installation of debian linux for security reasons.

5. SSH into your server and install the necessary softwares (Apache, PHP, Mysql, tinydns, exim4)


6. Point domain registration to name server. In godaddy.com's control panel, add the 2 name servers in the name server entry box (eg. ns1.nameserver.com ns2.nameserver.com)

7. point your name server to your linux box.

8. Configure tinydns in your linux. Configure a cache server so that your box can connect to the internet. Then configure an authoritative server so that it can act as a name server.


These are the basic steps needed to start a lamp server. It takes a lot of tweaking to get the softwares to work. The good news is that this forum is here to help

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:47 PM.
 
Old 06-09-2008, 03:50 PM   #2
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
Whether or not you need the expensive server depends on what you're hosting. Personally, I'm currently building/using a web server 'frankenstein' that I've put together from three different computers I had at my shop, all running PII/PIIIs with all sorts of old hardware. What you need to focus on is the network capabilities and storage capacity of your server. If you can fit your network on the box and the network interface is in good shape, you're good to go.
 
Old 06-10-2008, 03:50 AM   #3
centralb
LQ Newbie
 
Registered: Jan 2007
Distribution: Redhat, Debian, "Custom"
Posts: 27

Rep: Reputation: 15
If you go that route, consider djbdns with daemontools instead of BIND
 
Old 06-11-2008, 12:35 AM   #4
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Binds all good if you don't midn some of the headaches, although I hear djbdns is more secure. Never used it myself.

Like gankoji said it really matters what you are hosting. If your hosting your companies website, go right at it on a ghetto box. If your hosting a webserver that deals in mass amounts of traffic or a database that does lots of transactions or queries maybe look at a two box solution for segmentation purposes.
 
  


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
no LAMP subdivision in LQ (LInux,Apache,PHP,MYSQL) sailu_mvn LQ Suggestions & Feedback 2 02-28-2007 08:55 AM
connecting PHP to MySQL in a LAMP server rickyglucas_143 Linux - Newbie 2 02-06-2006 04:02 AM
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:35 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
Open Source Consulting | Domain Registration