note 9186 deleted from install.windows by irc-html

From: Date: Wed, 02 Jan 2002 04:37:10 +0000
Subject: note 9186 deleted from install.windows by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24156@lists.php.net to get a copy of this message
How to install PHP, APACHE AND MYSQL on WinX: Download: PHP: Win32 Binaries from http://www.php.net APACHE: Apache for Win32 from http://httpd.apache.org MYSQL: Win32 Binaries from http://www.mysql.com install PHP in folder c:\php install APACHE in folder c:\Programme\Apache Group\Apache install MySQL in folder c:\mysql edit c:\windows\php.ini extension_dir = "c:\php" edit c:\programme\Apache Group\Apache\conf\httpd.conf DirectoryIndex index.html index.php index.php3 index.php4 index.phtml ScriptAlias /cgi-bin/ "c:/Programme/Apache Group/Apache/cgi-bin/" ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .phtml Action application/x-httpd-php "/php/php.exe" restart Windows start APACHE c:\Programme\Apache Group\Apache\Apache.exe start WinMySQLAdmin c:\mysql\bin\winmysqladmin.exe start mysql c:\mysql\bin\mysql.exe write the following statements with notepad.exe: <html> <head><title></title></head> <body> <?php $host="localhost"; $user="*****"; $password="*****"; mysql_connect($host, $user, $password); $db_table = mysql_list_dbs(); for ($i = 0; $i < mysql_num_rows($db_table); $i++) { echo(mysql_tablename($db_table, $i)); echo("<br>"); } ?> </body> </html> replace the ***** with the username and password you can find in: c:\mysql\bin\winmysqladmin.exe on tab: my.ini Setup (you have to maximize WinMySQLAdmin by double clicking on the traffic light icon in your icon tray) save the file in: c:\programme\Apache Group\Apache\htdocs\test.php open you browser and type http://localhost/test.php if you don't get an error but some names like: mysql sample_db the everything is fine now go and read some good books on MySQL and PHP or rtfm :) note: you may must replace "programme" by "program files" in the directory path above!

« previous php.notes (#24156) next »