Welcome to Sign in | Join | Help
in
Home Forums Photos Downloads

Installing PHP on a VPS plan

Last post 03-13-2008, 9:40 AM by itechcs. 3 replies.
Sort Posts: Previous Next
  •  03-07-2008, 6:14 PM 1417

    Installing PHP on a VPS plan

    Has anyone else attempted to get PHP running on one of the VPS accounts? UltimaHosts doesn't install it by default because they've had trouble doing it, so I'm left to figuring this out on my own.

    After a little bit of research, I actually have it up and running. However, I'm having some trouble getting it to connect to a MySQL database because I apparently don't have that extension working correctly yet. If anyone else had tried this I'm interested in knowing what you did.

    Filed under: , ,
  •  03-09-2008, 9:45 PM 1418 in reply to 1417

    Re: Installing PHP on a VPS plan

    I have the same problem as you (wanting to get PHP to run on the VPS) and was wondering if you could post the steps you took to get it running.  Thanks!
  •  03-12-2008, 8:53 PM 1428 in reply to 1418

    Re: Installing PHP on a VPS plan

    Sorry for the delay. Apparently email notifications aren't working for these forums.

    As for installing PHP, there's a lot of resources out there on installing PHP on 64-bit Windows. The fact the VPSs run the 64-bit version of Windows is the issue. PHP is a 32-bit program and, by default, our IIS can't run 32-bit processes.

    After about 3 days of trial and error, I finally got PHP working (for the most part). I tried dozens of different things, but I think I know which ones actually worked:

    • I suggest reading through and following this summary: http://www.iisadmin.co.uk/?p=14. You'll see the trick is to run the command that allows 32-bit processes to run. That's the key. It mentions the simple command you can run to enable it.
    • The other trick that isn't mentioned is it seems the most recent version of PHP for Windows (5.2.5) has some issues. I got a lot of weird errors in my PHP pages when I installed it, so I recommend going back a few versions to 5.2.1.
    • I downloaded the Windows Installer to my VPS and then just ran through it. I chose to install the IIS ISAPI version and then selected the extensions I wanted (like MySQL, etc). After that, I restarted IIS and loaded up a test page and it worked.

    Again, out of all the failed attempts, these are the ones that worked for me. Hopefully, if a few more people have success, UltimaHosts will offer PHP as an option like other hosts.

     

  •  03-13-2008, 9:40 AM 1434 in reply to 1428

    Re: Installing PHP on a VPS plan

    FYI, I believe email notifications are working now.
    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems