Difference between revisions of "WampServer"

From TNG_Wiki
Jump to: navigation, search
(TNG User Related feedback)
Line 78: Line 78:
  
 
*I didn't find it all that difficult to install the necessary files on my home computer. It will install and configure everything for you. I use it all the time to test out things before I install them on my live site. <sub>(Carol Thatcher Hall on the User List)</sub>
 
*I didn't find it all that difficult to install the necessary files on my home computer. It will install and configure everything for you. I use it all the time to test out things before I install them on my live site. <sub>(Carol Thatcher Hall on the User List)</sub>
 +
 +
* The latest version of Wampserver comes in the same two varieties 64 bits and 32 bits. I chose Wampserver 64 as recommended for running on a Windows 10 (64 bit) PC. The latest version Wampserver 3.0.6 was revised towards the end of March 2017. Its components: Apache: 2.4.23; PHP 5.6.25 or 7.0.10; MySQL 5.7.14  I ported over my TNG10.1.3 website with ease. The option I chose was to set Firefox as the default browser. It required the "Disable MySQL 5.7 STRICT mod" but once that was installed the website runs perfectly in the localhost environment. Alan Craxford.
  
 
== Related links ==
 
== Related links ==

Revision as of 12:48, 4 April 2017

20080723164724.jpg
  • WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin and SQLiteManager to easily manage your databases.
  • WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files.

Versions

The following table shows the versions of the software included in the various WampServer versions and provides a link to where you can download that version of WampServer.

Note that you should try to use the version that most closely matches the software versions used on your hosting service. Your hosting service versions can be determine from the TNG Admin Menu >> Setup >> Diagnostics Tab

WampServer Apache MySQL PHP phpMyAdmin Download Link
2.5 (Separate 64 or 32 bit versions) 2.4.9 5.6.17 5.5.12 4.1.14 download WampServer 2.5
2.2a 2.2.21 5.5.16 5.3.8 (version 32 bits) 3.4.5 download WampServer 2.2a
2.2a 2.2.21 5.5.16 5.3.8 (version 64 bits) 3.4.5 download WampServer 2.2a
2.1e 2.2.17 5.5.8 5.3.5 (version 32 bits) 3.3.9 download WampServer 2.1e
2.1d 2.2.17 5.3.4 5.1.53 (version 64 bits) 3.2.0.1 download WampServer 2.1d
2.0c 2.2.8 5.0.51b 5.2.6 2.11.6 download WampServer 2.0c

Version Issues

Most Web hosting companies are now running newer versions PHP, Apache, and MySQL that are compatible with WampServer v2.5. If you have an older version of TNG you might need an older version of WampServer.

Install instructions

You can find install instructions for WampServer in the following Setting up a server on your home computer (localhost) on the TNG Community Forum and on the teams tutorial site

Note that since WampServer does not install under Program Files, you can install it on a secondary drive, like D: or E:

See also the Guides for WAMP for more complete instructions, including how to Setup Password Protection on WAMP Reference provided by Scotty on the TNG Forum.

For an excellent writeup of installing TNG on WAMP see Tamura Jones' article on WampServer

Tray icon

Once you have installed and started WampServer, it places the a WAMP icon on the Windows system tray, and you can click on that icon to add virtual folders, modify settings, start and stop the various servers, etc. icon in tray

Launching phpMyAdmin

WampServer menu.gif A menu like this pops up when you click on the WampServer icon. You can then, for example, select phpMyAdmin from the application list. Or you can stop or restart one of the WAMP services, or select one of the services and configure or restart it.

Creating a MySQL User

See creating a MySQL User ID with appropriate privileges for TNG database connection, if you don't want to use the Root user with no password.

Creating Virtual Hosts

See WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Host

Using an alternate port number

If you are also running Windows IIS or certain other services that use port 80, you may need to use an alternate port number. Here are instructions for configuring WAMP to use port 8080, which, for some reason, is the most common alternative to 80. (But you can use port 81 if you want.)

  1. Edit the Apache httpd.conf file (which you can do via a menu entry from WAMP's task bar icon), and look for the line that starts with the command "listen". The listen command argument is an ip address, then a colon and a port number. You usually don't want an IP address there, because your PC probably changes IP address from time to time. If you don't have an IP address on the line, you evidently don't want the colon, either. The line can just be "listen 8080" (without quotes).
  2. To get the "localhost", "phpmyadmin", and "webgrind" commands on the WAMP menu to use the new port, you need to use a text editor to edit the file wampmanager.tpl (in the WAMP installation folder, which is probably c:\wamp). In that file, replace any occurrence of "http://localhost" with "http://localhost:8080".
  3. Then exit from WAMP (right click on the icon, and select Exit), and rerun WAMP. (It's not sufficient just to restart the Apache service.)

TNG User Related feedback

  • I didn't find it all that difficult to install the necessary files on my home computer. It will install and configure everything for you. I use it all the time to test out things before I install them on my live site. (Carol Thatcher Hall on the User List)
  • The latest version of Wampserver comes in the same two varieties 64 bits and 32 bits. I chose Wampserver 64 as recommended for running on a Windows 10 (64 bit) PC. The latest version Wampserver 3.0.6 was revised towards the end of March 2017. Its components: Apache: 2.4.23; PHP 5.6.25 or 7.0.10; MySQL 5.7.14 I ported over my TNG10.1.3 website with ease. The option I chose was to set Firefox as the default browser. It required the "Disable MySQL 5.7 STRICT mod" but once that was installed the website runs perfectly in the localhost environment. Alan Craxford.

Related links

Other Home Computer web server options are available using:

  • MAMP - running Apache, MySQL and PHP on a Mac OS X computer
  • XAMPP - A alternative to WAMP that tends to require users to be more conformatble with LINUX.