Forum Moderators: coopster
However; when viewing a simple phpinfo type file, all it responds is "<?php phpinfo();?>" instead of the list of php settings.
I had downloaded php-4.3.5-installer and after installing for apache restarted my computer, and although the person helping me setup everything said it should work now, it does not.
Am I missing something? Am I neglecting to _do_ something with the installed php? I really am clueless on this whole smeel. If anything conisder talking as if I never have php installed in the first place.
i have php with apache running on windows xp. i had to add following lines to the httpd.conf in the apache dir.
LoadModule php4_module d:/develop/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
(note replace d:/develop/php/sapi/ with your folder structure)
hope this helps
barn
well with the filepath change you noted I had to make; my addin would be like:
LoadModule php4_module c:\PHP\sapi\php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
I tried adding THAT (nothing more nothing less) inside the file, around line 43. And I got this when trying to launch Apache.exe :
---
Syntax error on line 43 of c:/program files/apache group/apache/conf/httpd.conf
Cannot load c:/php/sapi/php4apache.dll into server: (126) The specified module could not be found:
---
Then a message at the bottem saying to fix the problem and a small 30 second or so counter till the window would close.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
I also treid adding it in different places, makes no difference either so long as its not in a <Directory /> region.
EDIT: Well alright, I just found my PHP book from the closet *makes note to clean there* . . I found quite frankly exactly what barn_de had said, but I now better understand it, this is the module setting which I also could try the Action setting. *as the book says it: *
Action application/x-httpd-php4 "/php/php.exe"
I added the line as it should be, and although there are no error messages it does not change anything as far as my phpinfo file.
I doubt it would make a difference but I am going to attempt to reinstall the PHP and then restart, if I dont make another edit to my post here consider it a failed attempt.
Something I horribly shoulda realized. This comes from the PHP install.txt file:
! NOTE!
Whereever you load php4apache.dll from, php4apache.dll also
needs the php4ts.dll also included in the PHP4 distribution.
php4apache.dll depends on php4ts.dll which is loaded as soon as
Apache loads php4apache.dll. If php4ts.dll can't be found, you
usually get an error like (also see the "Problems?" section at
the end of the file):
---
This entire time Ive been trying barn_de 's method; all I had to do was add one more line pointing out the location of php4ts.dll.
---
Its working now and already I'm determaining how to fix my project :) . . thanks all for your time.