473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I know that PHP is running

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?

Jul 17 '05 #1
2 3911
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!
Jul 17 '05 #2
Dear Anonymous.

I manually installed PHP as per instructions. The installer version
didn't include APACHE. Come to think of it, the problem may have
something to do with php.ini. The recommended version is there. Another
thing is that PHP.NET's documentation says something about the
4.3.9-Win32 package unzipping to a folder under C:/php What it does is
upon extracting create a folder under C: php4.3.9-Win32.

Perhaps I should try Apache 2.0 and PHP 5?

Thanks

Anonymous wrote:
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!

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Johnson Bruno | last post by:
Hi, I need to know whether a process is running or not on Windows 2000 from a java program.Please guide me. Thanks and regards Bruno
2
by: Juan Manuel Alegrķa B. | last post by:
Hi, I need to know if an application is running because I want just one instance of this application. So I'll execute it only if it is not running. Thanks so much.
2
by: Jim H | last post by:
I have an app that connects to Outlook and syncs up some contacts form a Paradox database. How do I know if I should call MyOutlookAppObject.Quit()? If I call quit from my app while I already have...
5
by: DaWoE | last post by:
Hi all, I have create an method that takes a while to process so my website times out. I used a thread to make sure the page doesn't times out. The methode that i use to the processing is...
14
by: active | last post by:
In VB6 I used to check the app file and if it was VB6 I knew I was in the IDE. I suppose I could figure out how to do the same on dotnet but I wonder if there isn't a better way to determine if...
4
by: Juan Manuel Alegrķa B. | last post by:
Hi, I need to know if an application is running because I want just one instance of this application. So I'll execute it only if it is not running. Thanks so much.
5
by: Mark | last post by:
Is there a straight-forward way to know when an app is running in the VS IDE (versus the EXE) ?? Thanks
15
by: Pucca | last post by:
I'm getting an error when I tried to use this BerConverter class in my C# code. Even though the Interent doc says that it runs on Win2000 sp4, I just thgouth I'll double check. Does anyone know...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
7
by: devnew | last post by:
hi i am trying to create a cache of digitized values of around 100 image files in a folder..In my program i would like to know from time to time if a new image has been added or removed from the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.