1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.2N.d">
<TITLE>The Answer Guy 46: A Staging Server</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H4>"The Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By James T. Dennis,
<a href="mailto:answerguy@ssc.com">answerguy@ssc.com</a><BR>
LinuxCare,
<A HREF="http://www.linuxcare.com/">http://www.linuxcare.com/</A>
</H4>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 4 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>A Staging Server</H3>
<p><strong>From Mark on Wed, 01 Sep 1999
</strong></p>
<!-- ::
A Staging Server
~~~~~~~~~~~~~~~~
:: -->
<P><STRONG>
Hello,
</STRONG></P>
<P><STRONG>
I have an idea and don't quite know if I am tackling it the right way. I own
a mac and would like to set up an external server to help with development
and testing of CGI scripts using Perl. I basically want to emulate my ISP.
Am I right in thinking that I can buy a basic PC, replace windows with Linux
to make it a unix box and then run the Apahe server with Fastperl etc. on
top of that. Plug the whole thing in and serve pages and across a network to
the mac. (sounds easy when you say it like that).
Any pointers, suggestions or advice will be useful.
</STRONG></P>
<P><STRONG>
Regards Mark
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This is referred to as a "staging server" or a "testbed" by
sysadmins. It is basically that easy.
</BLOCKQUOTE>
<BLOCKQUOTE>
The hard parts are gleaning what your ISPs configuration really
is. If you can read their <TT>/etc/httpd/conf/httpd.conf</TT> and related
files (or prevail upon them for copies) then you can probably
make it much easier for yourself). It also might be a bit of a
challenge to collect all of the same modules that they are
running under their copy of <A HREF="http://www.apache.org/">Apache</A>.
</BLOCKQUOTE>
<BLOCKQUOTE>
There are also a few tricky points to consider about the way you
access your content. The most transparent (to your testing
process and applications) will be to use "split DNS" --- where
your Mac/client thinks of a local DNS name server as
"authoritative" for the domain that your (virtual) webserver is
configured to be. Then your local name server points to your
local clone of the web server when you're doing your testing and
to your ISPs web server the rest of the time.
</BLOCKQUOTE>
<BLOCKQUOTE>
Depending one the way you structure your web pages and CGI
applications it may be possible to dispense with the complication
of "split DNS." It just depends on how many of your web pages
and applications make specific hostname references as parts of
their URLs and processing, and whether your development process
allows you to regenerate those pages and CGI scripts with the
necessary URL and hostname changes. It's possible to make all of
your web pages "portable" (using relative links throughout your
HTML for example).
</BLOCKQUOTE>
<BLOCKQUOTE>
Instead of buying a basic PC and having to "replace Windows with
Linux" consider buying a PC with Linux pre-installed. If you
can't find one at a competitive price then contact your preferred
vendor and let them know what you really want (a PC with Linux
pre-installed, or a PC with no OS installed at all).
</BLOCKQUOTE>
<BLOCKQUOTE>
Just replacing MS Windows with Linux (or any other OS) continues
to support the widespread perception that people WANT MS Windows
and that there is no market for alternatives. As more people
adopt Linux, <A HREF="http://www.freebsd.org/">FreeBSD</A>, etc.
this becomes a misconception --- but
it does nothing to encourage independent software vendors!
Ultimately that hurts consumers.
</BLOCKQUOTE>
<BLOCKQUOTE>
At Linux Online there is a list of hardware vendors that sell
systems with Linux pre-installed. You can find it at:
</BLOCKQUOTE>
<BLOCKQUOTE><DL><DT>
Linux Online - Linux-Friendly Hardware
<DD><A HREF="http://www.linux.org/hardware/index.html"
>http://www.linux.org/hardware/index.html</A>
</DL></BLOCKQUOTE>
<BLOCKQUOTE>
It would be crass of me to recommend a specific hardware
vendor. It would also be bad idea. I have friends to run VA
Research, and Penguin Computing. Dell is a strategic partner for
my employer. I know people who work at SGI, Compaq/DEC and Sun
(among others). They are all involved in Linux and they all
produce hardware (most of them produce PC clones and are thus is
rather close competition).
</BLOCKQUOTE>
<BLOCKQUOTE>
So you'll have to make your own choices.
</BLOCKQUOTE>
<!-- sig -->
<!-- end 4 -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/ssc.copying.html"
>Copyright ©</a> 1999, James T. Dennis
<BR>Published in <I>The Linux Gazette</I> Issue 46 October 1999</H5>
<H6 ALIGN="center">HTML transformation by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<P> <hr> <P>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<TABLE WIDTH="96%"><TR VALIGN="center" ALIGN="center">
<TD colspan="2" align="left"><A
HREF="../lg_answer46.html"
><IMG SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Current Index ]"></A></td>
<TD WIDTH="12%"><A HREF="1.html">1</A></TD>
<TD WIDTH="12%"><A HREF="2.html">2</A></TD>
<TD WIDTH="12%"><A HREF="3.html">3</A></TD>
<TD WIDTH="12%"><A HREF="4.html">5</A></TD>
<TD WIDTH="12%"><A HREF="5.html">5</A></TD>
<TD WIDTH="12%"><A HREF="6.html">6</A></TD>
</TR><TR VALIGN="center" ALIGN="center">
<TD WIDTH="12%"><A HREF="7.html">7</A></TD>
<TD WIDTH="12%"><A HREF="8.html">8</A></TD>
<TD WIDTH="12%"><A HREF="9.html">9</A></TD>
<TD WIDTH="12%"><A HREF="10.html">10</A></TD>
<TD WIDTH="12%"><A HREF="11.html">11</A></TD>
<TD WIDTH="12%"><A HREF="12.html">12</A></TD>
<TD align="right" colspan="2"><A
HREF="../../lg_index_tag.html"
><IMG SRC="../../gx/dennis/answertoc.gif"
ALT="[ Index of Past Answers ]"></A></td>
</TR></TABLE>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<P> <hr> <P>
<!-- begin lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="../../lg_toc46.html"
><IMG SRC="../../gx/indexnew.gif" ALT="[ Table Of Contents ]"></A>
<A HREF="/index.html"
><IMG SRC="../../gx/homenew.gif" ALT="[ Front Page ]"></A>
<A HREF="../lg_bytes46.html"
><IMG SRC="../../gx/back2.gif" ALT="[ Previous Section ]"></A>
<A HREF="../../lg_faq.html"
><IMG SRC="../../gx/dennis/faq.gif"
ALT="[ Linux Gazette FAQ ]"></A>
<A HREF="../lg_tips46.html"
><IMG SRC="../../gx/fwd.gif" ALT="[ Next Section ]"></A>
<!-- end lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->
|