PDA

View Full Version : INSTALLING PHP FOR APACHE ON WIN-95/98


Tosk
26-11-2000, 04:07
------------------------------------------------------------
Date 26 Nov, 2000
Purpose Notes for installation of Apache & PHP on Win32
Author SLAYER78 (feel free to write to me at
E-Mail tosk@talk21.com)
Versions The software versions this install readme doc
refers to:
1. Apache 1.3.12 -- http://httpd.apache.org/dist/
2. PHP 4 Win -- 4.02, get it from http://www.php4win.de
The version I am talking about was compiled on on
8 Aug, 2000
3. Also download the manual.zip from http://www.php.net
------------------------------------------------------------


R E C O M M E N D E D S E Q U E N C E O F I N S T A L L A T I O N:

1. Apache (Just run the file apache_1_3_12_win32.exe) -- from http://www.apache.org

By default, the Win32 binary installation for Apache will install Apache web
server into the folder "C:\Program Files\Apache Group\Apache" if the default
drive is C:, for instance. It is recommended to change this path to
something more straight-forward such as "C:\Apache" during the installation
process. Spaces in the names of folders sometimes lead to problems.


2. PHP (Unzip the php-4.0.2-Win32.zip file and follow instructions in the
README.TXT file)

3. Manual (Unzip the php-4-manual.zip file and view manual.htm). A few quick
steps are needed for PHP4 to be configured with Apache, and these are described in the manual. The procedure that worked for me, where I install
PHP as a module, is described below.

P H P I N S T A L L P R O C E D U R E ETC.
The one that works for me.

- Install Apache 1.3.12 into c:\Apache

- Create a subfolder called "mod_php4" in the modules folder of Apache
c:\Apache\modules\mod_php4

- Extract (unzip) all PHP4-Files (from http://www.php4win.de) into
c:\Apache\modules\mod_php4

- Edit php.ini in c:\Apache\modules\mod_php4 --
Change the line "extension=php_gd.dll" to ";extension=php_gd.dll"
This is to disable the GD module as it not very stable

- Copy php.ini c:\windows\system32, or to C:\windows

- Edit the file c:\Apache\conf\httpd.conf to include the following lines:


#---------------------------------------------------------
# THE PHP DIRECTORY STUFF
#---------------------------------------------------------
LoadModule php4_module modules/mod_php4/sapi/php4apache.dll
AddType application/x-httpd-php .php4 .php .phtml
AddType application/x-httpd-php-source .phps


OK, all files are setup up, now for the services:
I have added two Path to the Path-Enviroment

c:\Apache\modules and
c:\Apache\modules\mod_php4

- In Windows NT/2k, just right click on MY COMPUTER and look for "ENVIRONMENT"
- In Windows 9x, START-->RUN-->SYSEDIT, and modify the autoexec.bat to add these paths


HEHE!!!!!

Gwil Da Skank Of TA
26-11-2000, 21:03
Hmm, could just use Linux ( Mandrake for me ) like I do and its piece of piss

W00t!

Gwil Da Skank Of TA
26-11-2000, 21:04
it didnt censor p*ss?

cyKey
26-11-2000, 23:34
get PHPTriad for Win32. It's got Apache, MySQL & PHP and it installs and configures the whole lot. Its far easier than installing Linux on a partition. Oh its free. I just cant remember were i got it. try http://www.hotscripts.com and search for it, maybe?

[Edited by cyKey on 26-11-2000 at 10:50 PM]

Godin
27-11-2000, 20:32
or you could just setup PHP properly in Apache instead of using the module :) but that takes a little more work in the httpd.conf file

Gwil Da Skank Of TA
28-11-2000, 00:57
installing linux on a partition hard? what distro you usin m8?

cyKey
28-11-2000, 01:07
installin linux aint that hard these days, but compared to using PHPTriad it is, since this is one exe that u run and it installs PHP, MySQL, Apache and configures them all to work together and...installs PHP MySQL Admin which is great. Far easier than having to install the whole of Linux and such.

Gwil Da Skank Of TA
28-11-2000, 21:14
Hmmm, I know installing RedHat and Mandrake isnt hard - not sure about Debian tho....

anyone else using a linux distro on here?

WildWayz
01-12-2000, 13:30
I've used Mandrake (for beginners), Redhat and SuSE.
Redhat and SuSE are more geared towards the normal linux lover whereas Mandrake is for Linux n00bies

--WildWayz

Godin
01-12-2000, 13:38
SuSE is a heckuva lot more user friendly these days, I'm about the only one on my degree course who knew about linux before but they are surviving Linux labs. Mind you, they still havent worked out how I was shutting PC's down in the Remote access lab :)... but thats what they get for having the same root password on all the machines in the lab :)

Ah, wot fun.

Gwil Da Skank Of TA
01-12-2000, 23:29
lol true, true.