Apache + PHP + MySQL (English tutorial)
Geplaatst: 22 dec 2003, 11:45
Als je mensen in je lijst hebt staan die alleen engelstalig spreken en die tog ook Apache willen heb ik een tutorial in engels gemaakt(ik heb er namelijk zelf wel een aantal. (Voor windows XP)
(BTW ik hoef geen gezeik zoals dat er al een tutorial is.... als je nix bijzonders hebt te melden laat et dan!)Hello this is a tutorial in english how to install Apache server with MySQL and PHP.
<APACHE>
First you have to download it (offcourse) I'll give you a link for windows version:
http://apache.essentkabel.com/httpd/bin ... no_src.exe
Accept the agreement(else you can't install it).
I always install it under C:\server\Apache\.
The program asks:
- Network domain: your internet IP (when you have a Router you have to ask someone who knows how to configure a router).
{If you use a local IP it will change all the time and the server will be very instable so you need to have a static IP.}
- Server Name: The same as Network Domain.
-Administrator's Email-Adress: Your own email adress.
Install it for all users(when it asks for it only win xp).
Now finish this and open httpd.conf with Notepad or Wordpad.
start->all programs->apache http server->configure apache server->Edit the Apache httpd.conf Configuration File.
Search (CTRL + F):
DocumentRoot "c:/server/apache/htdocs"
change it in
DocumentRoot "c:/server/files"
(You have to make a folder named files in the folder server offcourse)
Then search for:
<Directory "C:/server/apache/htdocs">
change it in
<Directory "C:/server/files">
Then search:
index.html
Place:
DirectoryIndex index.htm
under it.
The Server is ready now for HTML sites.
(PHP in apache)
I first configure the httpd.conf because you are probably still in that file.
Search for:
DirectoryIndex index.html
Under it place:
DirectoryIndex index.php
Now go to the last sentence and place:
LoadModule php4_module c:/server/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Now save/close the file.
<PHP>
First you have to download it from the site http://www.php.net or go to:
http://nl3.php.net/get/php-4.3.4-Win32. ... net/mirror
to download the version which will work.
Unzip it in the server folder:
c:\server\php\
(make a folder called php and copy all the files in there)
Now you have to copy paste some things.
First rename php.ini-recommended into php.ini.
Open it and search for smtp and change localhost in your providers smtp server example (@home smtp server):
mail.home.nl
Close/save it.
Copy paste it to the windows folder (Normally C:\windows\).
Now go to c:\server\php\dlls\ copy all dll files (all files in the folder) and paste them in the system32 folder(Normally C:\windows\system32\).
Now copy paste php4ts.dll and php4apache.dll to the system folder(Normally C:\windows\system\) now php has to work restart your server and make a file called index.php with the following text:
<?php
echo:"Hello World";
?>
Now go to your server(your IP adress you filled in at the install form) when you did everything good it should only show Hello World.
<MySQL>
This is the easiest part go to http://www.mysql.org and download MySQL or go to:
http://www.mysql.com/get/Downloads/MySQ ... ftp/mysql/
Install it under the folder c:\server\mysql\ now reboot your PC.
When you are back in Windows go to c:\server\mysql\bin\ and open the file winmysqladmin.exe the program will ask you to insert a username and password fill in your stuff and you are ready with all!
Have much fun!!!!
Greetz SZ