all repos — h3rald @ 6b243ded05a7593922d198634c681075de1c12e2

The sources of https://h3rald.com

contents/articles/server-packages.html

 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
-----
title: "Easy-to-install server packages"
content-type: article
timestamp: 1119989539
tags: "review|webdevelopment|php|databases"
-----

<p>The first and most obvious difference between, say, a C++ programmer and a PHP developer is that the PHP developer
    needs a server with PHP support up and running somewhere in order to "show" others that the application is working.
    This normally means that a PHP developer must either have remote access to a server, or have one set up on his
    machine. Installing and configuring a server can be tricky sometimes, especially if you want to configure it
    "properly", but in some cases - for Linux/BSD users mainly - there are some pre-configured servers you can download
    and install.</p>

<p>I won't examine all these methods in this article, but I'll describe three alternatives for installing and run a
    webserver on windows in 10 minutes or less.</p>

<h3>Preliminary considerations</h3>
<p>Let's assume that you just want to have a server set up on your computer for <em>internal use</em> only, for testing
    purposes. That means that you wouldn't need to be concerned about "security" or similar issues - you just want to be
    able to run your PHP scripts and access your database(s) quickly and easily.</p>

<p>As I said earlier, Linux users would probably opt for some package available for their favourite distros - they would
    only have to download and install an .rpm or .deb package for (presumably) Apache httpd, PHP and MySQL, and just use
    a basic configuration. There are other tools around which can help if you want to compile or configure Apache, but
    that is beyond the scope of this article.</p>

<p>Let's just focus on Windows users, then. Normally they like things that are easy to install and can be configured in
    a few minutes <em>maximum</em> or not at all. Finally, let's assume that as a Windows user, you don't want to spend
    more money for a new operating system with a bundled server, like Windows 2003, because you can use <a
        href="http://www.apache.org">Apache</a> on Windows as well, for free. Having said this, I actually found 3
    possible solutions that are handy for PHP (or Perl) developers who don't want to spend time learning how to
    configure a server. There are people like that, including myself to some extent.</p>


<h3>WAMPserver</h3>
<p><a href="http://www.wampserver.com">WAMP</a> stands for "Windows Apache MySQL PHP", and I must say that this product
    happens to be my choice. The current version, available at the time of writing, offers:</p>
<ul>
    <li>PHP 5.0.4</li>
    <li>Apache 1.3.33</li>
    <li>MySQL 4.1.10a</li>
    <li>phpMyadmin 2.6.1-pl3</li>
    <li>SQLitemanager 1.0.4</li>
</ul>
<p>This is basically a fully working PHP5 environment, with other tools like phpMyadmin to administer your MySQL
    database even more easily (more laziness!), and, if you're into the new functionalities of PHP5, it also comes with
    sqlitemanager, a php application similar to phpMyAdmin but for sqlite databases, which are supported by default in
    PHP5. You download it, you start the installation program, and it's DONE. That's it. In 5 minutes you have your own
    little apache/php/mysql(ite) environment up and running and you can start showing off your sites to your friends and
    co-workers right away.</p>
<p>The program also installs two services which can be run at startup, a little icon in the system tray to access all
    the tools and, of course, <a href="http://localhost">http://localhost</a> in your favourite browser.</p>
<p>If all this is still not enough for you, and you want more things more easily, you can install addons to set up PHP4
    (and seamlessly switch between the two with a single click!), Perl, Zend Accelerator, and so forth.</p>

<h3>EasyPHP</h3>
<p>The second suite I will briefly describe is <a href="http://www.easyphp.org">EasyPHP</a>. This is a French project
    (like the previous one, actually), which offers PHP4, MySQL and Apache, plus phpMyAdmin to administer the MySQL
    databases. However, it doesn't offer PHP5 support yet (so it's not my favourite) and thus there's no sqlite support
    either.</p>
<p>Apart from that, it works exactly like WAMP: you download it, you install it, and it's done. Services are installed
    and you have - again - your little icon on the system tray to access all its functions and tools. It works well, but
    it doesn't seem to have any add-ons available like WAMP does.</p>


<h3>XAMPP</h3>
<p>This is by far the most complete distribution of the three I am focusing on. This project is developed by <a
        href="http://www.apachefriends.org">Apache Friends</a> and has a lot of features and flavours. XAMPP currently
    includes:</p>
<ul>
    <li>Apache HTTPD 2.0.54</li>
    <li>MySQL 4.1.12</li>
    <li>PHP 5.0.4 + 4.3.11 + PEAR + Switch</li>
    <li>MiniPerl 5.8.6</li>
    <li>Openssl 0.9.7g</li>
    <li>PHPMyAdmin 2.6.2-pl1</li>
    <li>XAMPP Control Panel 1.0</li>
    <li>eAccelerator 0.9.3</li>
    <li>Webalizer 2.01-10</li>
    <li>Mercury Mail Transport System for Win32 and NetWare Systems v4.01a</li>
    <li>FileZilla FTP Server 0.9.8a</li>
    <li>SQLite 2.8.15</li>
    <li>ADODB 4.63</li>
    <li>Zend Optimizer 2.5.7</li>
    <li>XAMPP Security for Windows 98, 2000, XP</li>
</ul>
<p>Honestly, you can't ask for more! If by chance you want to run this suite on other platforms, there's a version for
    Mac OS X, Solaris, and even Linux.</p>
<p>The installation method for XAMPP is slightly more difficult than the other suites - you actually have to download
    and unzip it in a folder of your choice. Then you're off and running.</p>
<p>Unfortunately (or fortunately), there's no icon on the system tray, so you need to actually access <a
        href="http://localhost">http://localhost</a> to get a list of services and tools. It also doesn't come with
    sqlitemanager, but you can download it and install it in the documents folder (like I did).</p>
<p>I actually use XAMPP - the "lite" edition, which is smaller and has less features - for my USB drive. Since it
    doesn't require any services to be installed in order to run, you can simply copy it onto a USB stick and run it
    from there!</p>

<h3>Conclusion</h3>
<p>I'm quite impressed by all of the server packages I reviewed; WAMP and XAMPP in particular. I can now carry around my
    websites and applications and instantly run them or show them to anyone who has a computer with a USB port.</p>
<p>As I said in the beginning, these programs are NOT meant to be used in a production environment or to be accessed
    publicly, therefore, security is not a consideration here. In my opinion, they are simply excellent for testing
    purposes, and for now, that's what I need them for.</p>