Forum Moderators: coopster

Message Too Old, No Replies

Installing Apache2, PHP 5.0.5, MYSQL 4.1

installing install apache apache2 php 5.0.5 mysql 4.1

         

Unworthy

2:19 pm on Sep 15, 2005 (gmt 0)

10+ Year Member



Hello, i've seen alot of people that were unable to install apache2 with php 5.0.5 and mysql 4.1. If you follow this guide everything is going to work, i tried it serveral times at serveral pcs.

Downloads

Download Apache from [httpd.apache.org...]
Download php from [php.net...] (5.0.5)
Download MySQL from [dev.mysql.com...] (Without installer (unzip in C:\))

Install/Extract

Install Apache2 to C:\Apache\
Extract php to C:\Apache\php\
Extract MySQL to C:\Apache\ And Rename to mysql

Editing

OPEN:

C:\Apache\Apache2\conf\httpd.conf

FIND:

#LoadModule ssl_module modules/mod_ssl.so

AND ADD BELOW:

LoadModule php5_module "C:/Apache/php/php5apache2.dll"

FIND:

DirectoryIndex index.html index.html.var

CHANGE INTO:

DirectoryIndex index.html index.html.var index.php

FIND:

AddType application/x-gzip .gz .tgz

AND ADD BELOW:

AddType application/x-httpd-php .php

ADD TO BOTTOM OF FILE:
PHPIniDir "C:/Apache/php"

SAVE
CLOSE

RENAME

C:\Apache\php\php.ini-recommended.ini TO php.ini

OPEN php.ini

FIND:

;extension=php_mbstring.dll

Remove the semi-colum, so you'll get

extension=php_mbstring.dll

FIND:

;extension=php_mysql.dll

CHANGE INTO:

extension=php_mysqli.dll

FIND:

;mbstring.internal_encoding = EUC-JP

AND ADD BELOW:

mbstring.internal_encoding = UTF-8

SAVE
CLOSE

Goto your php extension folder
C:\Apache\php\ext\

Copy the follwing files:

php_mbstring.dll
php_mysqli.dll

Paste these in your Apache bin folder
C:\Apache\Apache2\bin\

Goto your phpfolder
C:\Apache\php\

And copy the file libmysql.dll

Paste that one also in your Apache bin folder
C:\Apache\Apache2\bin\

MySQL and (optional) PhpMyAdmin:

RUN CMD
(Start->Run->cmd)

ENTER:

cd Apache\mysql\bin

ENTER:

mysqladmin -u root password rootpass

Change rootpass to whatever you want.

If you want to use phpmyadmin download it here:
[phpmyadmin.net...]

Extract it into C:\Apache\Apache2\htdocs\
Rename it to pma

Open the phpmyadmin config file.
C:\Apache\Apache2\htdocs\pma\config.inc

FIND:
$cfg['Servers'][$i]['user']

Enter root there

FIND BELOW:
$cfg['Servers'][$i]['password']

Enter rootpass there (or the password you entered while using cmd)

Now start Apache and have fun!

Unworthy

2:43 pm on Sep 15, 2005 (gmt 0)

10+ Year Member



I forgot to tell:

If you're going to use MySql in php, you MUST copy this dll aswell to your Apache\bin folder:

php_mysql.dll

And you must also add it in the php.ini

extension=php_mysql.dll

henry0

4:13 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcone to WebMasterWorld!
That one works
look in our

Library
[webmasterworld.com]

Sorry won't be able to support it for a while: Now going for teeth extractions :)

Unworthy

4:54 pm on Sep 15, 2005 (gmt 0)

10+ Year Member



I've seen that one, but it didn't work out for some people i've referred to that one.

I'll give it a try and if it works, sorry for this post.

jatar_k

5:02 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I walked through the one henry did when I did an install and it worked, though I use a little different conf so there were extra things.

I did run into some problems at some point and used this
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]

wanted to try all these install threads we had

I found henry's worked well but for my particular needs I found coop's more poignant and I take nothing away from henry's high quality contribution. I can't remember what the specific issue I had was.

I also used docs more as well, as much as tutorials are great, they never can give all the info. I need many specific things. I think mysql was the only thing that I just slapped in, php and apache both got a more in depth config, some from memory, some from docs and some from those threads. Actually perl was just a drop in too, there were only apache changes to make.

actually I spent part of yesterday and then this morning reworking my local config, not too bad, moved a bunch of stuff around and set up some extras as most of my installation was in default dirs and things.

had a morning filled with regedit'y goodness, always a treat. ;)