Badmovies.org Forum

Other Topics => Off Topic Discussion => Topic started by: Menard on March 08, 2007, 08:44:46 PM



Title: Question for Ulthar: local web server
Post by: Menard on March 08, 2007, 08:44:46 PM
I have heard that there are small web server applications which can be run on one's local machine for testing php scripts without having to install them on a remote server first. Is there such an application which you can recommend?

I am working on a traffic exchange and, if possible, I would like to work on it offline, until I get everything secured for hosting it.


The requirements for hosting it are, as listed in the readme file:

Script Requirements

The script is strictly to run under these requirements.

    1. Unix Based Servers

    2. Apache Web Server

    3. PHP 4.0 and Up

    4. PHP Should NOT run in Safe Mode Or script may not run.

    5. MySQL Database (phpMyAdmin Recommended)

    6. The script is set to run in the Main/Root Dir of the web dir. In the future we may change this.

        But as of now it prevents errors and complications.


Although I have a Windows machine, I can run a portable Linux if necessary.


Title: Re: Question for Ulthar: local web server
Post by: ulthar on March 08, 2007, 10:34:18 PM
Weeeellllll....

The EASIEST thing to do would be to have a computer that you can throw one of the 'easy' Linux distros on and you pretty much would be set-up out of the box; that is, Apache, PHP and MySQL will generally be installed by default (or at least you can request them be installed).  I'd recommend Mandriva, Ubuntu/Kbuntu or Mepis for this.  Configuration for a basic server set-up is not that hard.

Assuming that you normally run Windows and don't have a  spare computer to install Linux on, there are a couple of options.

(1) Get an extra hard drive and install Linux on that.  You'll probably have to hand-configure the boot load to boot into Windows but that is not hard at all (and I'd recommend using grub rather than lilo).  My main office computer is set up this way; one hard drive for Linux (which it runs 24/7 virtually all the time) and another hard drive with Windows 2000 on it (for those odd times when a client requires me to do something in Winders).  Note you can run either as the "main" OS in this setup.

(2) Get one of the "Live" Linux distros (such as Knoppix) and run "live" off the cd.  This might be a bit harder to setup, but maybe not, as you'll have to have all your script files ready to go on your WINDOWS disk before you boot off the CD.  I use a Knoppix LIve CD for troubleshooting (yes, even Windows systems) in the field.

(3) Set up Windows with "virtual machine" software and install Linux in a virtual machine.  Then you can run Linux and all the servers you need there.  This would be the "new, cool" way to do it.

(4) Set up all that stuff on Windows.  Apache, PHP and MySQL all have Windows ports, BUT you WILL run into some differences.  Since your requirements specify a Unix host, I really would try to stick with one of the Linux solutions (1-3 above).

Let me know if you need me to send you a Linux CD or DVD.  You can PM me your address and I'll send you one if you don't have broadband to download it yourself.  The CD's run about 700 MB each and the DVD's of course are about 3-4 GB.  I could easily burn you a copy of Mandriva 2007 on DVD and drop it in the mail.  And it's not even piracy.   :teddyr:



Title: Re: Question for Ulthar: local web server
Post by: Menard on March 08, 2007, 10:49:09 PM
Cool. I do have a Mepis distro and a second machine; I have installed Mepis on it before, so there are no hardware conflicts. I'll give that a shot. Thank you.


Title: Re: Question for Ulthar: local web server
Post by: ulthar on March 08, 2007, 10:56:40 PM
Let me know if you need any help.  You can PM a phone number and I can call you.

When you install Mepis, specify "server" (if you can, it's been a while and few versions ago that I installed Mepis) or manually select the packages you need.  If you don't do it at install time, it's okay. It is really easy to install them later.