[Unknown]'s Guide to Installing PHP and MySQL.

Started by [Unknown], November 16, 2003, 03:40:49 PM

Previous topic - Next topic


Now save and double click the file.  Confirm it, and then open the Personal Web Manager (it should have installed a shortcut..)

???? Where is this shortcut ?? I see Personal Web Manager no where at all... I am stuck and need some help.

Sorry I need help finding ::: Web Service Extensions ::: I am using IIS not PWS my bad... Anyone know where that is ??


O'kay 7 hours later and I'm still stuck on that step.... Oh well....


Quote from: [Unknown] on November 17, 2003, 03:09:42 AM

Configuring PHP - Apache

Go into the folder C:\Program Files\Apache Group\Apache\conf (or where ever you installed Apache.) and open up httpd.conf.  Search for #LoadModule mime_magic_module modules/mod_mime_magic.so and add just above it LoadModule php4_module "C:/Program Files/PHP/sapi/php4apache.dll".  Next search for AddModule mod_setenvif.c and add below it AddModule mod_php4.c.  Next, search for AddType application/x-tar .tgz and add below it AddType application/x-httpd-php .php


I can't find the "AddModule mod_setenvif.c" and "AddType application/x-tar .tgz"
I'm using apache_2.0.58-win32-x86-no_ssl and "php-4.4.2-Win32"
Kindly help me please... thanks in advance.


vhin, u'll need to add LoadModule php5_module "c:/php/php5apache2.dll" to your httpd.conf file under the LoadModule area; and AddType application/x-httpd-php .php under the AddType area (search for AddType application/x-tar .tgz).
Also the DirectoryIndex thing you can add if you want... then make sure you reset apache (using apache monitor, or via services.msc or whatever).
That -should- do the trick...
[zomg... first post in how long?]


4 stages of manhood. 1st we belive in Santa.. 2nd we find out Santa is not real. 3rd we learn to play we are santa and 4th We suddenly look like santa! ....  :)....  Merry Christmas!


Here is the new link:

Quote from: [Unknown] on July 31, 2005, 09:23:13 PM

You might have to change php.ini, if you're using PHP 5.



BTW, Unknown, THANK YOU for this very helpful tutorial!


I am new about this and have some problems.

I have installed apache a long time ago. Then a month ago, I decided to go for php and sql. I installed sql first and then I installed php manually. However, I found that apache+php cannot seem to communicate with mysql. (I installed the php modules required in apache, so there should be no problems with php+apache) Then I found that I have to install the mysql module or the mysqli module in php. I tried to install the module without success when I tested it. I tried to open a file on the server with the following code:

<title>Test PHP with MySQL</title>

$mysqluser = 'root';
$mysqlpasswd = '********';
$mysqlhost = 'localhost';
$mysqli = new mysqli("$mysqlhost", "$mysqluser", "$mysqlpasswd");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());

printf("Host information: %s\n", $mysqli->host_info);

/* close connection */


$mysqluser = 'root';
$mysqlpasswd = 'creAtiVe-2206*';
$mysqlhost = 'localhost';
$connID = mysqli_connect($mysqlhost, $mysqluser, $mysqlpasswd);
$result = mysqli_list_dbs();
echo "<p>Databases in the local MySQL server</p>\n";
echo "<p>";
while ($row = mysqli_fetch_row($result)) {
  echo "<br><em>$row[0]</em>\n";
echo "</p>";


I did not get any reply from the test. It displayed a blank page.

However, another test with only
displayed the correct server information.

I then uninstalled everything, and reinstalled apache, php and mysql.

I have followed your instructions on configuring php including setting permissions (which revealed my supposedly invisible .htaccess folders) But still, without success on the installation.

By the way (I am not sure if this counts), I activated the mysqli module instead of the mysql module in php.ini-dist at first but since it is not working, I activated both in the end.

I am using apache 2.0.59 and php 5 and sql 5.

I am not to sure what's wrong. Can someone point it out for me? thx

Herman's Mixen

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)