Author: Tony Reeves ()
Posting date: 08/19
I wrote this article a few days ago!
Originally, I wanted to provide some help to my friends who are new to PHP and who are using WIN9X/NT,
Do their best to build a small debugging environment as soon as possible.
But I don't want to. I am too good at writing a comprehensive article, which puts many friends
In trouble.
Many people ask me why such an error occurs?
Syntax error on line 4 of C:/apache/conf/mod_php4.conf:
Cannot load C:/apache/modules/mod_php4 into server:
There are several main reasons:
~~~~~~~~~~~~~~~~~~~~~~
1. The readme.txt file attached to mod_php4-4.0.1-pl2.zipis clear.
First, add your PHP4 directory PATH to your PATH. Is it necessary?
Plus? If you copy the php4ts. dll file
C: \ windows \ system directory, this step can be omitted. Otherwise
The preceding error occurs.
Many friends neither add the PATH to the PATH nor copy the php4ts. dll file.
File to the % SYSTEM % directory. So the above error occurs.
Someone may ask, add the PATH to the PATH? How to add it? I am in phpinfo ()
That is, the PATH value in the PHP4 configuration file is only c: \ windows;
C: \ windows \ system; c: \ mysql \ bin \; c: \ apache
Httpd. conf does not have any options for this PATH!
It's easy to add a sentence in autoexec. bat.
PATH = % PATH %; c: \ php4; c: \ mysql \ bin \; c: \ apache;
You can do it. Restart the computer and open the php4 configuration file! Is it true?
In it?
Because when I install PHP4 in CGI Mode, you must have already installed php4ts. dll
Copied to % system %, so we didn't mention it, causing inconvenience to everyone. Please refer to volume!
2. It is the mod_php4.dll file. I don't know how strong your idea of updating is,
In short, I use the latest version ......
Here I want to remind you that the version of the mod_php4.dll file, if it matches your PHP4
Different versions, the above error will also occur. You copy the mod_php4.dll files of different versions
Nothing is done under modules!
3. You didn't copy mod_php4.dll to the modules directory, although it looks a bit
Stupid, but please do not be too confident. When your head is smarter or dizzy, it's still time to go to modules.
Let's take a look! Feel at ease !!
The answer to this question is here. I believe there are other reasons. If I find it, I will tell you.
Another friend asked me why the startup speed of APACHE is slow after PHP 4 is installed as an apache module.
Slow down!
This is not in conflict with what I said in my article. In this article, I mean the efficiency of PHP File Execution,
Not APACHE speed.
PHP 4 is installed as an APACHE module. When APACHE is started, the mod_php4.dll file must be loaded.
The startup speed is definitely slow !!
APACHE startup speed should also be related to the PHP _ *. DLL file. Open PHP. INI and
Comment out all the required php4 _ ***. dll files!
; Extension = php4 _ *. dll
This will speed up startup!
Because these files are also to be loaded when it is started.
Some people also asked me why PHP4 conflicts with the software on the machine after being installed as an APACHE module,
For example, you cannot perform windows Search operations, and you cannot use editplus. God, it's a sin!
I really can't figure out why. You should first kill the virus!
Tony Reeves