Installing Apache2, PHP 5.0.5, MYSQL 4.1

Status
Not open for further replies.

Unworthy

Beta member
Messages
2
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 http://httpd.apache.org/download.cgi
Download php from http://www.php.net/downloads.php (5.0.5)
Download MySQL from http://dev.mysql.com/downloads/mysql/4.1.html (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_mysql.dll
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_mysql.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:
http://www.phpmyadmin.net/home_page/downloads.php

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!
 
Yeah they are, you can see that at the download pages i included if there's something new.
 
Status
Not open for further replies.
Back
Top Bottom