| Win
- Apache - MySQL - PHP (WAMP) installation |
|
|
| What it
is about |
 |
|
| The article's aim is to give help to install WAMP in as little
time as possible. It is mostly meant for first-time-installers. You can
find the modified configuration files, which are a copy of the installation
made on my machine. |
| Motivation |
 |
|
| WAMP offers the possibility to develop dynamic websites using
the comfortable script-language PHP. WAMP is not meant to decline a LINUX
based installation. But if you are used to work with your Windows environment
- even on a Win95- WAMP is a good alternative. At least to me it was. |
| Preparation |
 |
|
| Firstly, you will need each, a PHP, a MySQL, an ODBC and an
Apache distribution, which all can be directly downloaded from the original
sites. This way you are sure to get the most recent version. Be alwas aware
of which versions you are running! |
| System
paths |
 |
|
| Read through the readme, install and other help files provided
by the different distributions. You will find, that the following installation
paths are proposed: |
c:\apache
c:\mysql
c:\php3 |
Apache webserver
MySQL database
PHP3 script language |
Please follow these propositions if you are installing WAMP for the first
time! It really simplifies the whole topic.
Apache and MySQL distribution are offering a installation-friendly setup.
PHP distribution is a set of files, which have to be moved to the right
location. Ok, lets start! |
| Installation |
 |
|
1.) Apache webserver
2.) MySQL
3.) MyODBC (only for PHP3)
4.) PHP3 |
 |
|
1.) Apache webserver
Start installing the webserver. Run the setup file, you just downloaded
from the site www.apache.org. Now you should configure the files in the
c:\apache\conf directory. You can also use now my WAMP
config distribution to get an impression. Modify the autoexec.bat
with the path: c:\apache. That's it!
Start your server in an MS-DOS window: c:\>apache [Enter]
c:\>apache
c:\>apache -k shutdown |
start webserver
stop webserver |
Now you should be able to access the so-called localhost- server
through your browser. Type http://localhost/ to ensure proper
functionality. |
 |
2.) MySQL database
Install your database by running the setup file. Move the my.cnf file
to the root directory c:\. Modify the autoexec.bat
with the path:
c:\mysql\bin. That's it!
Start your server in an MS-DOS window: c:\>mysqld [Enter]
start databaseserver: |
c:\>mysqld |
| stop databaseserver: |
c:\>mysqldadmin -u root shutdown |
To be able to work with MySQL and PHP3, the MyODBC driver has to be installed.
MySQL support is not directly implemented in PHP3, while you will find this
support in PHP4. |
 |
3.) MyODBC
Start installing the setup file. You can accept all the default settings.
After successful installation, you will need to reboot the system. Go to
your Windows configuration folder and check out the new MySQL support. |
 |
4.) PHP3
Now, installing PHP3 is different from the other installation due to a file-based
distribution. There is a single file, which has to be moved into the c:\windows
directory called php3.ini. You can spend hours to configure
the WAMP system working properly if there is no reference file. So have
a look on my distribution.
The most simple way to get WAMP turning, is by copying the whole PHP3 distribution
to c:\apache\cgi-bin\. Do copy all the files to this directory. |
 |
Now, if I did not forget anything, which of course may happen,
your WAMP should work. Test it, by creating your first php-file and calling
it with something like:
http://localhost/phpinfo.php3 |
The file looks like:
Click on the code to download it. |
 |
| I hope, this article may serve you. Report suggestionos to:
admin@circle.ch |
 |
|
|