Page 1 of 1

Need some php5 help in IIS 6

Posted: Fri Nov 04, 2005 6:15 pm
by Iccy (temp)
Yea i googled, yea i used other messageboards along with this post. I just know there is some real talent here which im hoping can help.


Hi. I am trying to get php5 to run on my win2003 server using IIS6. I seem to be having a problem getting it to function.

I used 2 tutorials now and this one was what i just used.

http://www.peterguy.com/php/install_IIS6.html

Ok. I Have downloaded the latest version of php and the extensions zip from http://www.php.net.

I have unzipped them to c:\php and c:\php\ext respectivly.
I changed the name of the php.ini accordingly.
I opened the php.ini and took out the ; for cgi.force_redirect in php.ini and set equal to 0.
I change the extension_dir = to extension_dir = "c:/php/ext" ( dont understand the / instead of \ but ok )
Then i copy and pasted the extension config from the article and pasted it over the exiting variables like so..

extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_cpdf.dll
extension=php_curl.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
;extension=php_exif.dll
extension=php_fdf.dll
extension=php_filepro.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_ifx.dll
extension=php_iisfunc.dll
extension=php_imap.dll
extension=php_interbase.dll
extension=php_java.dll
extension=php_ldap.dll
;extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mssql.dll
extension=php_msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_oracle.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_tidy.dll
extension=php_ffi.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
;extension=php_yaz.dll
extension=php_zip.dll


After which i opened up IIS Manager and added in the php exention entry and pointed it to c:\php\php5isapi.dll

I also added ;c:\php to the enviroment variable.





I cant get it to work. The best i have gotten is for it to connect to the local host then just sit there waiting. Not ever stoping, just waiting. localhost works, so the IIS is function properly. Im just at a complete lose where to go. Any help would be appreciated, thank you.

Posted: Fri Nov 04, 2005 6:17 pm
by PhoeniX
Use apache, it makes it easier :)

Re: Need some php5 help in IIS 6

Posted: Fri Nov 04, 2005 6:37 pm
by 4days
Iccy (temp) wrote:I change the extension_dir = to extension_dir = "c:/php/ext" ( dont understand the / instead of \ but ok )
wouldn't it be c:\php\ext for a win box? did you try that to see what happened?

and what pho said.

Posted: Fri Nov 04, 2005 7:41 pm
by Iccy (temp)
yea i tried that 4days. i didnt understand that either, but its what the tuts says to do. I tried it both ways and no go.

As far as using apache, im studying in the world of MS right now, so i am TRYING to keep it all MS for now. Im about gonna give up though cause something is stupidly wrong. Part that pisses me off is this jack ass at work got it up and running in one night, i even had him watch me this morning at work while i TS'd into the server and installed it all, exactly how he did it. Still doesnt work. :icon33:

Posted: Fri Nov 04, 2005 11:53 pm
by 4days
My browser just hangs when I try to open test.php
Did you uncomment any extensions in step 2.4? If an extension errors while loading, PHP throws up a dialog box to the console of the server displaying the name of the extension and the error. In order for PHP to continue processing (e.g., in order for the page to continue loading), you have to click the "OK" button on the dialog box.
I know, I know, pretty stoopid, but that's the way it is.
Go login to your server's console (not Terminal Services, the dialog doesn't show up there) and click "OK" to the 50 million dialogs that have popped up there (one for each time you frustratedly restarted IIS and tried to load the page again).
Then go re-comment out the troublesome extension(s) and try it again, this time keeping an eye on the server console.
Make sure you have the extensions in the order specified in 2.4; that order has been tested to load all the uncommented extensions w/out complaining.
Make sure you have downloaded and installed the "Collection of PECL modules for PHP 5.0.3" as described in step 1.1
you added the reg key so that php could find it's ini file?
and you tried this bit?

Re: Need some php5 help in IIS 6

Posted: Sat Nov 05, 2005 12:08 am
by glossy
4days wrote:
Iccy (temp) wrote:I change the extension_dir = to extension_dir = "c:/php/ext" ( dont understand the / instead of \ but ok )
wouldn't it be c:\php\ext for a win box? did you try that to see what happened?

and what pho said.
I imagine they could be safeguarding against \ being an escape character (plus it doesn't really matter which character you use in the end)

this might be a stupid question, but have you tried setting it up with just the php.ini-reccomended as php.ini, without any wierd adjustments ?

also (stupider question) make sure your php binaries are actually in c:\php, and your extensions are actually in c:\php\ext

Posted: Sat Nov 05, 2005 2:10 am
by mjrpes
Nevermind... reread your post.

Re: Need some php5 help in IIS 6

Posted: Sat Nov 05, 2005 2:12 am
by mjrpes
4days wrote:
Iccy (temp) wrote:I change the extension_dir = to extension_dir = "c:/php/ext" ( dont understand the / instead of \ but ok )
wouldn't it be c:\php\ext for a win box? did you try that to see what happened?

and what pho said.
Ah, this could be a point of error too. In my settings I have the extension dir set to "c:\\php\\ext".

Posted: Sat Nov 05, 2005 2:18 am
by mjrpes
The other thing is you need to completely restart IIS whenever you make a change to the php.ini. I was doing this often enough that I made a batch file containing the following:

net stop w3svc
net start w3svc

Posted: Sat Nov 05, 2005 4:06 am
by Iccy (temp)
well just fyi guys, thnx for the help, but i just dont have the time to mess with this now, got studies to do. Pick this up in 2 months :)

Posted: Sat Nov 05, 2005 10:54 am
by Iccy (temp)
you know, i was always a lil afraid of apache cause of the cfg files. I tried last night to get this working through apache and even though i failed i learned just how freaking easy apache is once you get past the initial learning phase. I got stuck with the php interface and ended up finding a really good php and IIS6 tutorial and trying it again and got it working. Your all going to laugh but it turns out i think my problem was permissions. I didnt fully read the error page, but last night i did and saw it said i was trying to run a cgi or isapi from a directory that wouldnt allow it. Havent found wher ein the default IIS website that this setting is that doesnt allow them, but when i created a new website and told it to allow scripts to run, bam, all set.


Now i just need to figure out how to get phpbb to work with the mysql server i have running and im golden.


Thnx a lot of the input though guys, people wonder why i still come to a quake3 forum, especialy with titles like " do you squeeze your dogs nut sack " or whatever it was. I keep telling them, they dont know :)

Posted: Sat Nov 05, 2005 3:08 pm
by glossy
it was "Do any of you squeeze the anal glands on your dog"

... and you're welcome :)