This page was moved from MetaWiki. It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.
Uniform Server is one of several WAMP systems. It allows a wiki and required web and database servers to be installed, configured and running under various versions of Windows in 10 minutes (with practice and on a good day) after downloading 2 files totaling 7MB in size and following the procedure below.
Run UniServer3_5.exe. This is a self-extracting compressed file that contains the Apache and MySQL server files for the wiki. During the extraction you will be asked for a destination folder. Click the browse button and find the storage device you want to use for the wiki.
The extraction creates a folder called "Uniform Server". This folder contains a sub-folder called "udrive", which is the top of the folder tree that will become a drive letter. You can rename "Uniform Server" if the name offends you. Do not rename "udrive" unless you want to spend a lot of time changing the references to that directory.
Edit the config file for the Apache server by following these steps:
If it is not already there, create a sub-folder under udrive called "tmp".
Open the file udrive\usr\local\Apache2\conf\httpd.conf* in a text editor (such as WordPad).
Search for "ThreadsPerChild" and change 250 to 16. The lower number of threads is better for testing.
Search for "Listen 80" and change it to "Listen 127.0.0.1:80" - this restricts access to the local computer. You will also see the local computer called the "localhost" in some of these instructions.
Save and close this file
*Note: In previous versions of Uniform Server the udrive folder was named diskw.
Edit the config file for the MySQL server by following these steps:
Open a text editor, such as Notepad, and set the file type to show all files. Open udrive\usr\local\mysql\bin\my-small.cnf. If you try to find the file the usual way to double-click and open it, Windows Explorer shows this file as a shortcut named SpeedDial and will not open it in the text editor. If you have problems opening this file, try dragging the my-small icon into an open text editor window.
Search for "[mysqld]". Insert one line under "[mysqld]" and type this text onto that line: bind-address=127.0.0.1
Mediawiki is a compressed file that can be uncompressed by most "Zip" utilities. One free Windows tool to uncompress zip files is 7-zip. There exists a command line version for linux called p7zip.
If you use WinZip, you must turn off the "TAR file smart CR/LF conversion" (look under Options|Configuration|Miscellaneous), to prevent corruption of the configuration file.
Also be sure that the "Use Folder Names" option is selected.
Depending on the decompression tool, you may need to do a second decompression for the .tar file that is inside the .gz file. Look in the folder after the first decompression: if all you see is the .tar file, uncompress it.
Uncompress the MediaWiki zip file into the sub-folder udrive\www.
Unpacking creates a sub-folder called "mediawiki-x.y.z", where "x.y.z" is the version number of the wiki software. This folder will contain your wiki. The folder name is part of the URL for the wiki.
These instructions use the folder name "wi". It is easier to follow the instructions if you rename "mediawiki-x.y.z" to "wi" until you have the wiki working. Then you can rename the folder to whatever you want.
The installation at this point is 39 MB. How do you reduce the size of the installation? One option is to check the MediaWiki languages subdirectory, which is about 4.25Mb. You can get it down to 150Kb by deleting all of the Language??.php and Messages??.php files you're not using (but don't delete LanguageUtf8.php). This still only gets the installation down to 35 MB. It is not explained sufficiently in the article how to get it down to the 21 MB.
Windows uses drive letters, not names. Most systems will have a C: drive, and may have a D: and E: or even more. Any hard drives, CD/DVD drives and USB storage devices will have their drive letter automatically assigned. The Wiki "server-start.bat" file sends a command to Windows that makes Windows act as if the Wiki directories on the memory stick are on a hard drive of their own.
These instructions use "w" as the drive letter. To make sure this is a valid drive letter, look at "My Computer" and see which letters have been assigned to local and network hard drives. In the example below, a typical Windows installation, drives C, D, and E are assigned.
NB: If the drive letter is changed from "w", the Uniform Server administration configuration file (diskw/home/admin/www/includes/config.inc.php) must also be updated, or the Admin Panel won't be accessible.
Search for "$drive = "W:";" and specify the correct drive letter.
"Start Wiki Servers" shortcut icon to start the servers.
This starts the servers' admin page in your web browser. You may get an error the
first time due to timing. Click OK on any error messages. A refresh
should confirm the server is running. If you see a blue screen
that resembles this, the Apache server is working.
Successful server start.
Click "Run MySQL" on the left side of the Uniform Server window
about register_globals can be ignored. You will fix it in the
If you use lower
case for the first letter of the site name, it will be capitalised
on most of the wiki pages.
server" as localhost
root password" to root (Yes, it's BAD from a security standpoint, but it won't work with a proper password) the name has also to be set to root
Install button at the bottom of the page.
This writes the
file LocalSettings.php and creates the wikidb database, with
one initial user (WikiSysop). An empty page is displayed.
Problems probably MySQL is not running.
run \Uniform Server\diskw\usr\local\mysql\mysqlrun.bat
Something wrong here - error message MySQL server localhost "Couldn't connect to database". on the apachel panel page (localhost\apanel) click Start MySQL on the left hand of "Uniform Server" table of contents.
MediaWiki v1.3.7 is the same wiki software seen here, and consists of PHP web scripts and libraries (including PHPTAL "non-PEAR-users" v0.7.0 and optional memcached v1.0.10 support), and a database schema, data, and interfaces.
This procedure may work on any 32-bit/64-bit Windows, but initial testing of this procedure has only been done on Windows 2000 SP4. This procedure has also been tested with success on both Windows XP (Professional Edition) and Windows 98. Testing on Windows XP pro 64-bit edition shows no problems.
Exceptions and any work-arounds are:
Ensure that the latest TCP/IP update (winsock2) has been applied. If you are using USB removable media, Windows 95 needs to be the OSR2 edition, and may need extra drivers.
If you are using USB removable media, extra media drivers may be needed.
You may need to comment out the eighth line of the START.BAT file to allow this script to work, especially if you have any instance of the Apache web server installed anywhere on your hard drive(s).
Uniform Server, like all WAMP packages, gets fixed slowly compared to its individual components. This makes these packages a security risk. Do not even think about making these servers accessible from the Internet without extra front-end authentication (e.g. by using a VPN).
... httpd IP address and port, mysql IP address ...
Listen on the appropriate interfaces:
to accept connections from all networks:
or to accept connections from localhost and for example 192.168.100.0:
to make self references to your apache work you will have to edit the ServerName entry: put your DNS name there or your IP
Give the appropriate rights in your .htaccess files:
Deny from all
Allow from 127.0.0.1
Allow from 192.168.11.0
if there is already a webserver active on port 80 you can switch to another port, for example 81. Then exchange :80 for :81 in Listen and ServerName. additionally you will have to edit the setup of phpmyadmin:
Since the mysql-database for the wiki on a stick wiki runs locally, there is no limit on the number of databases which can be stored. To have several independent wikis on the same apache and mysql, just put them in distinct directories below UniServer3_2a\diskw\www
and let each run it's install.php routine. Give different database names in the install.php routine. you can share the mysql-wiki user amongst different wikis, but it might be good to give each wiki its own mysql-user.
directory layout (example)
UniServer3_2a\diskw\www\Wikim\mediawiki-1.4rc1 (for testing)
UniServer3_2a\diskw\www\Wikim\Wiki (stable for production)
Installing multiple wikis on a single server, using the same database[edit | edit source]
Here is how to install the Mediawiki software just once, but use it to power more than one wiki, keeping the tables for all the wikis in a single database-- including step-by-step instructions for a Unix-type of installation. This solution should work for most shared-hosting servers, too. Level of difficulty: Novice. See the instructions on this site.
Despite the variety of licenses, all components can be copied, modified, installed and run for free for private, public or corporate use. Source code is freely available for all binary components. Restrictions may apply if you wish to claim ownership of, sell, or relicense the components. Read the licenses for the actual terms.
Also, some documentation files may be covered by the GNU Free Documentation License (GFDL) v1.1 or v1.2. Some software library files may be covered by a GLPL: GNU Library General Public License or GNU Lesser General Public License.
Some library files do not contain license information, some of which do contain copyright notices and/or attributions.