Installing Apache2, PHP 5.0.5, MYSQL 4.1

Sumber: http://www.webmasterworld.com/forum88/10118.htm

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_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:
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!

Satu Tanggapan to “Installing Apache2, PHP 5.0.5, MYSQL 4.1”

  1. oko Says:

    bisanya copy paste

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


%d blogger menyukai ini: