Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem installing php with apache 2 on Windows box

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I have installed Apache2.0.48, php, and mysql on a windows box for training purposes. I am trying to get the php and apache to "talk" to one another.

Everytime I edit httpd.conf, I add the line necessary to get php to run as an apache module:
LoadModule php4_module "c:/php/php4apache2.dll"

Whenever I do, I get this message when I try to restart or start the Apache service:
"The requested operation has failed" with a more explicit error:
cannot load c:/php/php4apache2.dll into server: the specified proceedure could not be found.

I know the dll is there, I made sure of it, along with php.exe, and php4ts.dll. I tried finding information on the web to nop avail. I am wondering if anyone has a fix or knows what I can do to fix this.

I appreciate your help!

Thanks in advance!


Rninja

smlogo.gif

 
Hi,

U need to copy dll's (i think not all but php-4ts.dll at least) to windows/winnt dirctory.
The default location of ur windows/winnt directory shd be in c:.ie(c:\winnt).



--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Hello
i am also new to adding php to a webserver
seems that apache2 there is alot of confusion seeing its not a production release for almost all add ins

but what i found out is this to get it up and running
the idea to load the php-4ts.dll into the system folder can work it actually didnt work for me not sure exactly why
but all that apache needs is that the php-4ts.dll be copied not cut and paste a copy of loaded into the sapi folder in the php folder
then a few lines of changed code on the php.ini and the httpd.conf for apache and your done
to test it out create a file called phpinfo.php
make sure its not phpinfo.php.txt
in this file type <?phpinfo()?> save it to your htdocs folder or root doc folder for apache and open it up it should display a screen of info on the services you have up and running for php and apache and a few other things

the install instructions are vauge at best in the php folder
for newbs like me it really was not self explanitory

alot of info init some of it i actually found contradicting statments on the web

this was a good link to get help from i found i hope this works for you if you have the httpd.conf file changed and the php.ini file chaged already looks like maybe all you need to do is copy that file into the sapi folder

i know the instrcutions say put in into the system root and so on
seems to be some security risks in doing so
the above mentioned avenue i told you will work and is suggested by some sites

It is a unfortunate thing that as a consumer you are treated as well lets be polite cattle. Companies need to change there attitudes on how they deal with there clients more honesty and transparency from there tech departments to there executives
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top