RE: [PHP-WIN] How to install PhP in Windows

From: Date: Fri, 20 Oct 2000 14:03:29 +0000
Subject: RE: [PHP-WIN] How to install PhP in Windows
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3411@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Heres a small guide: 1. Download the following packages: apache 1.3.12 win32 binary from http://www.apache.org php4.0.2 for win32 [2000-08-30] from http://www.php4win.de latest mysql win32 binary from http://www.mysql.com 2. create the following directory structure: +---Intranet | +---httpd | | +---modules | | | \---mod_php4 | +---root | | \your.domain.here | \---sqld 3. - Install Apache 1.3.12 into c:\intranet\httpd - Install MySQL into c:\intranet\sqld - Extract the All PHP4-Files into c:\intranet\httpd\modules\mod_php4 --> no subdirectorys there 4. edit php.ini in c:\intranet\httpd\modules\mod_php4 - change the line "extension=php_gd.dll" to ";extension=php_gd.dll" this module is not so stable ;) - copy php.ini c:\winnt\system32 5. edit the file c:\intranet\httpd\conf\httpd.conf - add the line "LoadModule php4_module modules/mod_php4/php4apache.dll", after where all the LoadModule entrys are. Warning: the other modules are all disabled, leave this ... until your are familiar with this. - search and replace "c:/intranet/httpd/htdocs" with "c:/intranet/root" - on line 276 +/- 5 Lines you must the following changes: Options All AllowOverride All Order allow,deny Allow from all Warning: these are very low security settings ... only for development - search for the line with "DirectoryIndex" and change it ... DirectoryIndex index.html index.php3 index.php4 default.htm default.html - serach for line with "x-httpd" and change/append the two lines: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php .php4 .php 6. Now setup mysql - copy c:\intranet\sqld\my-example.cnf c:\my.cnf - edit the file and change the line "basedir = c:/intranet/sqld/" 7. OK, all files are setup up, now for the services: I have added two Path to the Path-Enviroment c:\intranet\httpd\modules and c:\intranet\httpd\modules\mod_php4 run the cmd.exe cd intranet\httpd apache -n Apache -i cd intranet\sqld\bin mysqld --install 8. Now you can start the two services!! Juhe to verify if all is running smoothly create the file: c:\intranet\root\test.php4 with one line: <? phpinfo(); ?> 9. open up the browser enter url: http://localhost/test.php4 Hope the helps ... if here are some errors reply to the list or to my directly! CodeDuck - -----Original Message----- From: Allen B. Bellen [mailto:psycho@mailbox.bicol-u.edu.ph] Sent: Friday, October 20, 2000 2:34 PM To: php-windows@lists.php.net Subject: [PHP-WIN] How to install PhP in Windows Dear Friend, Hi! In behalf of my groupmates, I would like to seek help >from you on how to install or where could we find PhP in Windows. We really are a new PhP users and therefore very much unaquainted with it. We have chosen to use PhP as our language because the situation really requires us to do so. We are looking forward on the supports that you'll be extending to us. thank you....... allen (philippines) - -- Sent using NeoMail, a web-based e-mail client. http://neomail.sourceforge.net - -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -----BEGIN PGP SIGNATURE----- Version: PGP 7.0 iQEVAwUBOfBQEZXVxb9FcGeVAQGgmgf+I4v+vruVXJoHM0zm0GymdHYtL95TYzwM iCilT0JPP23BwQFS9txYF4IiKYpINhIWDRa4FB1moNlOHoDXC30bu8Y+9xfmu+oz 9hGAFfan/dK/3JE7v/ISA1sURu+AKTBP2hUV293vDAwGAgIeHJ2em86QjmZwZeO2 VTmw53ERV930ujG08nJJtmExPGtYv3IxE6pVrG1X6SreumdcPBuSUJxDc+oREG8E 9ixFWpgo9knqpwcZwPe99tdJCmRIT4Z/Iq+bUO00eHiZfh2p8tAlSV66rw72b8RM m4HGQ54t60IC/PnV01jKYMDXPtXdMliXi0vqIPqWhpl5svaweL+PAg== =coU9 -----END PGP SIGNATURE-----

« previous php.windows (#3411) next »