Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Install PHP on Windows Server 2008 32-Bit with IIS7

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Install PHP on Windows Server 2008 32-Bit with IIS7

Postby ericrovtar » Thu May 17, 2012 9:29 am

Hi!

I'm trying to install PHP on our public Web Server (Windows Server 2008 32-bit). I was told by a friend to make sure I do a manual install because running the Web Installer will mess up IIS, which is what I'm trying to avoid.

To start, I thought I would attempt doing this on our development server, which is running 2008 R2 64-bit. Even though I was told Microsoft Web Platform would work on this machine, I wanted to do it manually to simulate what I would need to do on the public server.

I found PHP's official documentation (http://php.net/manual/en/install.windows.iis7.php) and followed each step: Unpacked the PHP files to C:\php and configured php.ini. But when I go to test if PHP works from the command prompt, I type in "php -info" and get "Could not open input file: o".

So I figured that I had missed something, deleted my edited php.ini file and extracted a fresh copy, but I'm still getting the same error.

I tried Googling the error, but found little help. I'm hoping someone might have some advice?

Any help would be greatly appreciated.

Thanks!

-Eric
ericrovtar
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu May 17, 2012 8:16 am

Re: Install PHP on Windows Server 2008 32-Bit with IIS7

Postby macek » Fri May 18, 2012 1:47 am

If you are trying to run PHP from command line, do you have PHP.exe in "path"? (Run command line and enter: "path" command) If not you must enter the whole path to PHP.exe file as in:

http://www.php.net/manual/en/install.wi ... ndline.php
User avatar
macek
php-forum Active User
php-forum Active User
 
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am

Re: Install PHP on Windows Server 2008 32-Bit with IIS7

Postby ericrovtar » Fri May 18, 2012 4:32 am

Well I'm in the PHP folder (C:\php) and typed "php -info". To the best of my knowledge, that should work because php.exe is in that folder. Is that a wrong assumption?
ericrovtar
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu May 17, 2012 8:16 am

Re: Install PHP on Windows Server 2008 32-Bit with IIS7

Postby schwarzenneger » Thu Oct 11, 2012 12:17 am

Use the correct syntax of the command using the short version:

Code: Select all
php -i


or the long version:

Code: Select all
php --info


"php -info" will work on some versions of PHP but not with the recent versions.
schwarzenneger
New php-forum User
New php-forum User
 
Posts: 3
Joined: Thu Oct 11, 2012 12:11 am

Re: Install PHP on Windows Server 2008 32-Bit with IIS7

Postby seandisanti » Thu Oct 11, 2012 8:20 am

yeah, judging by your error output, i'd guess that -inf specifies an input file, and -info (instead of --info) is trying to open non-existent file "o"
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 787
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.