Previous Thread
Next Thread
Print Thread
Rate Thread
#104225 07/17/2001 8:34 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Could someone help me install PHP4 on my server? I really don't understand how to do it so if anyone could help me that would be great!


[BTW] Sorry Mark, didn't notice where I posted it.

Sponsored Links
#104226 07/18/2001 2:07 PM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
What kind of server are you installing it on?

I can do WindowsNT and Win2K reasonably well. You'll want to download a distribution from http://www.php4win.de and unzip it into a directory named C:PHP (assuming C is your primary hard drive partition).

Inside of your PHP directory, there should be a file called php4ts.dll. Copy this .dll into your C:WINNTSystem32 directory. Now open up the dlls subdirectory and copy all of the files from here to your C:WINNTSystem32 directory as well. If Windows squaks that you've already got a file by that name there, then keep your old one--don't overwrite it with the newly downloaded files.

Back in our PHP directory there should be a file called php.ini. Copy it into C:WINNT, and open it with notepad. Do a search for "extension_dir" and you should see something similar to this:
Code
code:
Make sure that this path is the correct path to the extensions directory (should be C:PHPextensions) of the unzipped PHP4 installation. Feel free to browse through the extensions below that and enable whichever ones you think you might want to use.

Now start up IIS, go to the web site you want to have PHP running on, and right click it. Click on Properties. Go to the ISAPI filters tab. Click the Add button, and create a new filter called PHP. The Executable file should be "C:PHPsapiphp4isapi.dll" if you've put PHP in the same directory that I said earlier.

Now go to the Home Directory tab and click Configuration. Click the Add button and specify the same path as we did for the ISAPI filter (C:PHPsapiphp4isapi.dll) in the executable field. The extension will be .php.

Now you'll need to completely start IIS. The best way to do this is the command prompt. Bring one up and enter the following commands:

Code
code:

If this all went right, then you now have PHP4 installed.

To test your installation, make a script called phpinfo.php and put the following into it:
Code
code:
Put this on your webserver and run it from a browser. If you get a nifty page with a bunch of stuff about PHP on it, then you've succesfully installed PHP. If not, then you'll need to go back and try again.

#104227 07/18/2001 10:03 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
No, it is on an actual server nothing with C: drives and stuff.

#104228 07/20/2001 2:15 PM
Joined: Jan 2000
Posts: 41
Member
Member
Offline
Joined: Jan 2000
Posts: 41
What do you mean by 'actual server'? Windows 2000 with IIS is an 'actual server.'

#104229 07/20/2001 2:49 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
I really don't understand much about installing on my server. All I know is that it isn't on my computer. I could ask my host what it all is but I know it has nothing to do with C: or C:WinNT.

Sponsored Links
#104230 07/20/2001 2:56 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Ahh, I think it has something to do with UNIX.

#104231 07/20/2001 3:15 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
I guess my host just updated to php4. Thanks anyways.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)