Pagina 1 van 1

Apache + PHP + MySQL (English tutorial)

Geplaatst: 22 dec 2003, 11:45
door DeMolT
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)
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
(BTW ik hoef geen gezeik zoals dat er al een tutorial is.... als je nix bijzonders hebt te melden laat et dan!)

Re: Apache + PHP + MySQL (English tutorial)

Geplaatst: 22 dec 2003, 14:25
door WebSiteNet
DeMolT schreef:(BTW ik hoef geen gezeik zoals dat er al een tutorial
is.... als je nix bijzonders hebt te melden laat et dan!)
Rustig maar hoor. alleen een vraagje aan je.

Zou je het willen vertalen en in de kb posten :D ?
Het is een goed artikel.

Geplaatst: 24 dec 2003, 19:34
door DeMolT
thnx ik zal em wel een x vertalen
hoewel er al veel versies zijn voor apache 2 en dit er 1 voor apache 1 is(beter volgens mij)

Geplaatst: 25 dec 2003, 13:10
door FlorisD
DeMolT schreef:thnx ik zal em wel een x vertalen
hoewel er al veel versies zijn voor apache 2 en dit er 1 voor apache 1 is(beter volgens mij)
Ja, apache 1 is beter icm phpBB 2.0.x. Als phpBB 2.2 uitkomt werkt Apache 2 wel beter samen met phpBB en zou je die dus ook kunnen gebruiken.

Geplaatst: 09 jan 2004, 21:26
door webstab
mijn apache werkt nmr :cry:

Geplaatst: 12 jan 2004, 16:18
door WebSiteNet
Wat is er dan fout? (handig om te weten :roll: )

Geplaatst: 17 jan 2004, 17:34
door webstab
eerst had ik PHP TRAID geinstalleerd en alles werkte. maar dan na een tijdje,werkte het niet meer,ik heb heel php traid met apache eraf gesmeten en alles trg geinstalleerd en alles lukt enkel kan ik geen verbinding maken met http://localhost. Hoe komt dit?

Geplaatst: 11 nov 2004, 10:25
door ElbertF
webstab schreef:eerst had ik PHP TRAID geinstalleerd en alles werkte. maar dan na een tijdje,werkte het niet meer,ik heb heel php traid met apache eraf gesmeten en alles trg geinstalleerd en alles lukt enkel kan ik geen verbinding maken met http://localhost. Hoe komt dit?
Sorry om een oud topic weer naar boven te halen, maar ik heb precies hetzelfde probleem! Kan iemand alsnog een antwoord op geven?

Geplaatst: 12 nov 2004, 00:26
door ElbertF
bump

Geplaatst: 13 nov 2004, 15:09
door WebSiteNet
Heb je de installatie helemaal gedaan? Ook httpd.conf en heb je php.ini ook naar de goede map verplaatst?

Geplaatst: 13 nov 2004, 15:11
door Mandrake Linux
sory hoor
maar waarom is het bij windows toch zo een gekloot
bij linux is het
uprmi apache
urpmi mod_php
urpmi mod_mysql
service httpd2 start
EN HOPPPAAA
klaar


probeer eens met easyphp
die doet het wel en is heel makkelijk dienbaar :)

Geplaatst: 13 nov 2004, 15:18
door Bas
"Mandrake Linux", dat is alleen bij RPM-ondersteunende distributies...

Maar met Debian kan zoiets ook...

(en ik ben zelf geen linux gebruiker :shock:
[offtopic=half]
Maar ReactOS lijkt me wel cool, Apache/Win32 zal er ook op kunnen draaien, NTFS moet nog ontwikkeld worden... En de TCP/IP stack ook :x
[/offtopic]
)

Geplaatst: 13 nov 2004, 15:34
door Mandrake Linux
oim effe op topic te gaan
debian heeft een app-get functie
is zeer handig
maar ik vindt mandrkae het fijnst :D
vnadaar mun nick naam :D