Browse DevX
Sign up for e-mail newsletters from DevX


WAMP Up Your Open Source Development on Windows for Free : Page 2

Apache, MySQL, and PHP, three quarters of the LAMP open source platform that includes Linux, have made serious progress in Windows compatibility. This short guide demonstrates how to install this power trio on Windows for a WAMP platform.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

Configuring Apache
Apache needs to be configured to recognize calls to PHP. Go to your start menu –> Programs –> Apache HTTP Server 2.0.50 –> Configure Apache Server –> Edit the Apache HTTP Configuration File, and add the following to the very bottom of the httpd.conf file:

ScriptAlias /php/ "c:/php/" AddType application/x-httpd-PHP .php Action application/x-httpd-PHP "/php/php.exe" AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s AddType application/x-httpd-PHP .php AddType application/x-httpd-php-source .phps

This tells Apache both where to find the php.exe file and how to handle .php calls. Close httpd.conf and save the changes.

Configuring MySQL
To configure and start MySQL, open a DOS console in one of the two following ways:

  1. start menu –> run –> and type cmd
  2. start menu –> programs –> accessories –> Command Prompt

MySQL DOS Commands
Those of you who want to install MySQL as a service that starts every time you boot up:

TYPE C:\mysql\bin\mysqld –install

To stop using MySQL as a service:

TYPE C:\mysql\bin\mysqld –remove

To manually start MySQL:

TYPE C:\mysql\bin\mysqld --console

To manually stop MySQL:

TYPE C:\mysql\bin\mysqladmin -u root shutdown

Setting the MySQL Root Password
You now should have MySQL running in a DOS console. Open another console window using one of the two methods described above. You need to change the default root password on your MySQL Windows install. Write your password down somewhere so you don't forget it.

TYPE c: TYPE cd mysql\bin TYPE mysql -u root

At the MySQL prompt:

TYPE SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpasswordhere'); TYPE DELETE FROM mysql.user WHERE Host='localhost' AND User='""'; TYPE FLUSH PRIVILEGES;

These commands change your root password and remove another out-of-the-box root user to improve your security.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date