![]() |
||||||||||||||
|
||||||||||||||
blade2k
» articles & tutorialsInstalling PHP4 on Windows 98
by losl Since Windows 98 doesn't have services, you cannot run Apache "correctly," however you can open up apache.exe and have it listen, BUT that only works IF you keep the window open. For those of us who can't keep windows open, Microsoft released a web server for use on Windows 98 called Personal Web Server, Here after refered to as PWS. The easiest way to get PWS is to have the windows 98 install CD. If you don't have it then you have a major problem. You can try to use the Windows NT 4.0 Option pack to try to install it, but I really have no idea if it works or not on 98. http://www.microsoft.com/ntserver/nts/downloads/recommended/NT4OptPk/default.asp, I would guess you would say you have 95 (I think). So now that we are well along the way installing PWS, it will ask us where you want your "document root" to be. The document root is where we store all of the files our server to serve up. I suggest C:serverwww but you can make it whatever you want, just keep in mind I will be refering to the location of the document root as C:serverwww. Okay so, now we are going to install php. You will want the larger of the 2 PHP files (the one without an installer) in BINARY format (Don't Get the SOURCE), I really suggest getting PHP4 instead of PHP5 since mysql is a chore to enable in php5. Once you get the zip downloaded extract it to C:serverphp (PHP.exe should lie in c:serverphp). There will be two "ini" files call php.ini-dist and php.ini-optimized. Rename php.ini-dist to php.ini and open it with notepad. Find the line that starts "extension_dir = " and change the path there to be "C:serverphpextensions", find the line ";extenstion=php_gd2.dll" and uncomment it by deleting the ";". Save the file and copy the ini to C:windows. Then copy php4ts.dll and ALL the files in dlls directory to C:windowssystem Open notepad again and make a file that looks like this: REGEDIT 4 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map] ".php"="C:\server\php\sapi\php4isapi.dll" Save this file as "PWS-php.reg" and then double click the file in explorer. When prompted if you want to merge the registry choose yes. Also, IF the file doesn't work you can download a file just like it from a bundle for the book Begining PHP4 from www.wrox.com (I highly suggest this book!) Now you need to launch the Personal Web Manager (Part of PWS) It should be under Start->Programs->Accesories-Internet Tools->Personal Web Server->Personal Web Manager. Once that is launched, click the advanced button on the left side. Select the first line in the box that appears "<Home>" and click edit properties and check the execute box (if it isn't already) Hopefully PWS is now installed on your system. Enjoy. |
|
|||||||||||||
|
©2002-2008 blade2k.net - parsed in 0.002 seconds - view active users
[16010 members][newest member: Markaz]
Active Users (1)[ cima55 ]
|
||||||||||||||