View Full Version : apache 2.0.53, mysql 4.0.22, php 5.0.3


bejayel
03-18-2005, 08:32 PM
Before you admins delete this, i would like to say that the only reason i am remaking the apache tutorial is because php 5 is no longer compatible with mysql unless you do a little extra stuff. I decided to just have the whole server making process included.

Step 1: Installing apache 2.0.53
Read the Rules (http://www.lissaexplains.com/forum/showthread.php?t=40747) - Outside Links Aren't Allowed

When apache is done downloading, double click the file and install apache with the following settings

Location: Use the default if you are new
Domain: localhost
address: localhost
email: <YOUREMAIL> or root@localhost

Those setting can be changed later if you choose, for now they will provide with a working server that everyone can see.

When apache is finished installing open up your favorite web browser and navigate to http://localhost .If you see a page that sais
"If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.". That means that the installation was a success.

Step 2: Installing php 5.0.3
Read the Rules - Outside Links Aren't Allowed

Unzip the package to your desired location. C:/PHP is the most preferred location, and i suggest that you put yoru files there as well.

Navigate to C:/php and find the file php.ini-recommended, rename it to php.ini

Step 3: Installing mysql
Read the Rules - Outside Links Aren't Allowed

//note if you do not get the file simply wait a few minutes while i finish renaming the file and relocating and setting permissions on my folder.

So you ask, why dont i use the most recent version of MySQL? The most recent version is extremely bulky. There isnt anythign real new in the newest version but a few limitations at install etc, etc. This version, i have found anyway, is one of the best, for windows anyway.

When you unzip the package it will ask if you would like to install (if you are using winrar or another unzipper, simply click setup.exe), click yes. You should be able to hit next the entire way through the install with no problems. I would not change the default directory if you are new to this.

when you are done installing open up the command prompt
Start --> All Programs --> Accessories --> Command Prompt

Type in the following:
C:/mysql/bin/mysqld --install

This will make mysql automatically start when you start the computer. This way you dont have to go into the command prompt all of the time to turn on MySQL

If you get a message saying that the service installed correctly, that means that MySQL was installed successfully

Step 4: Configuring Apache for PHP
Navigate to C:/Program Files/Apache Group/Apache2/conf/
Open up the file httpd.conf
Click CTRL + G and go to line 173
Press enter, then up and add the following lines:
LoadModule php5_module "c:/php/php5apache2.dll"
PHPIniDir "C:/php"

Click CTRL + G and go to line 323
And add the following to the end of the line:
index.php

Click CTRL + G and go to line 757
Press enter, then up and add the following line:
LoadModule php5_module "c:/php/php5apache2.dll"

Now restart apache.

Next navigate to C:/Program Files/Apache Group/Apache2/htdocs
Delete everythign in that folder. Create a file called index.php (make sure it doesnt end up as index.php.txt by naming it "index.php" with the quotes) Open up index.php with your text editor and put in the following line or code:

<? phpinfo(); ?>

Now got back to http://localhost and hit refresh. If you get a page with awhoel bunch of information for php, you have done everything correctly to this point.

Step 5: Configuring PHP for MySQL
For this step you are going to have to copy a whole bunch of file to C:/Program Files/Apache Group/Apache2

So navigate to C:/php and copy the following files:
fdftk.dll
fribidi.dll
gds32.dll
libeay32.dll
libmash.dll
libmysql.dll
libmysqli.dll
msql.dll
ntwdblib.dll
php5apache2.dll
php5apache.dll
php5apache_hooks.dll
php5isapi.dll
php5nsapi.dll
php5ts.dll
ssleay32.dll
yas.dll
And paste them to C:/Program Files/Apache Group/Apache2

Then navigate to C:/php/ext and copy the following files:
php_msql.dll
php_mssql.dll
php_mysql.dll
php_mysqli.dll
And paste those files into C:/Program Files/Apache Group/Apache2

Now open up C:/php/php.ini in notepad
Goto Line 634 and 635 and uncomment these lines
extension=php_msql.dll
extension=php_mysql.dll

And that should be all for installing a server for yourself. Enjoy.

Sorry, that download is actually for mysql 4.0.22 even though it sais it is for 4.0.11. Sorry for that.

bejayel
03-18-2005, 08:42 PM
Sorry, that download is actually for mysql 4.0.22 even though it sais it is for 4.0.11. Sorry for that.

PunkGo
07-07-2005, 07:14 AM
or...you could make it much easier and just download xampp from apache friends, does everything for you and has a control panel that lets you start apache/mysql and a lot of other things. I would post a link...but the mods seem a little over zealous about no links. So goto google and type in xampp