Frank Conte wrote:
I'm having a problem running a simple printer friendly script written in
PHP. I'm not sure whether the problem is with apache 1.3 or with the
scripts. I updated apache's config file httpd.conf to include the
directives for running PHP as a loaded module and as CGI as noted in the
documentation at php.net
# Add to the end of the LoadModule section
LoadModule php4_module "c:/php/sapi/php4apache.dll"
# Add to the end of the AddModule section
AddModule mod_php4.c
I did both and Apache doesn't like it. It can't compile it. It says that
the php4apache.dll cannot be loaded because it cannot be found.
I have adjusted the windows directory conventions to include forward
slashes and such but no luck.
I'm running XP with IIS off (naturally of course) and apache 1.3. Apache
works nicely on the XP. But I can't seem to get a simple php file to
work. Where do you think is the problem?
Might be a stupid question, but have you checked whether the file exists
at all?
If you installed php to a different directory than c:\php you have to
adapt the path.
And make sure to download and install the zipped version of php because
the installer version does not contain the server modules at all! See
the download page of php:
- cut here -
Windows Binaries
All Windows binaries can be used on Windows 98/Me and on Windows
NT/2000/XP/2003.
PHP 4.3.9 zip package [6,953Kb] - 22 Sep 2004
(CGI binary plus server API versions for Apache, Apache2 (experimental),
ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many
extensions included, packaged as zip)
md5: c4a4c349e729b339a27c72abe833c58d
PHP 4.3.9 installer [1,045Kb] - 22 Sep 2004
(CGI only, MySQL support built-in, packaged as Windows installer to
install and configure PHP, and automatically configure IIS, PWS and
Xitami, with manual configuration for other servers. N.B. no external
extensions included)
md5: 4a2af567ba607e40e4ca4e58adba5cc0
- cut here -
I'm using Apache 2.0.52 with PHP and SSL and everything works great on
XP.
Bye!