Supplemental to the "modular mode of Apache installation of PHP4 under Windows 9x/nt"

Source: Internet
Author: User
Tags copy mysql php file php and
Author: Tony Reeves ()
Publish Date: 08/19 14:40
Some days ago, it was I who wrote this article!
Originally I wanted to offer some help to friends who had just been in touch with PHP and used win9x/nt,
For their early establishment of a small debugging environment to do a little bit of their own modest strength.
But do not want to, their level too, the article is not comprehensive enough to write, and so many friends into
Trouble.
A lot of people ask me why I have such a mistake.
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 here
~~~~~~~~~~~~~~~~~~~~~~
1. The Readme.txt document included in Mod_php4-4.0.1-pl2.zip is very clear.
First, add your PHP4 directory path to your path. Is it absolutely important to
Plus what? If you copy the Php4ts.dll file to the
C:\\Windows\\System directory below, then this step, you can omit. otherwise it
The error presented above will appear.
Many friends did not add paths to the path, nor did they copy php4ts.dll this
File to the%system% directory below. So there is the error above.
Maybe someone will ask, "Add the path to the road?" How to add it? I'm in Phpinfo ()
That is, PHP4 's configuration file saw the value of path, only c:\\windows;
C:\\windows\\system;c:\\mysql\\bin\\;c:\\apache
There is no setting option for this path in httpd.conf!
It's simple, you just add a word to the Autoexec.bat.
Path=%path%;c:\\php4;c:\\mysql\\bin\\;c:\\apache;
We can get it done. Restart your computer and open the PHP4 profile look! Isn't it
In the inside?
Because I consider that when installing PHP4 in CGI mode, we must all have Php4ts.dll
Copy to%system% below, so did not mention, cause inconvenience to everybody, also please see Quantity!
2. Just mod_php4.dll this file, I don't know how strong your idea of renewal is,
Anyway, I'm using the latest version ...
Here I would like to remind you that the Mod_php4.dll version of this file, if and your PHP4
Not the same, then there will be the above error. You copy different versions of Mod_php4.dll files
Under the modules equals nothing!
3. You did not copy Mod_php4.dll to the modules directory, although this may seem
Stupid, but please don't be too confident, your head is smart and dizzy. or to modules.
Take a look down!

This is the answer to this question, I believe there are other reasons, if I find, I will tell you.
And a friend asked me why PHP4 installed as the Apache module, the Apache startup speed instead
It's getting slow!
This does not conflict with what I have said in the article, I mean in the article, PHP File execution efficiency,
Rather than the speed of Apache.
PHP4 installed as Apache module, when Apache starts, it is necessary to load mod_php4.dll files.
The start-up speed will be slow!!
Apache should also start at the same speed as php_*. DLL file about that open php.ini and put all you don't
The required Php4_***.dll files are commented out!
; Extension=php4_*.dll
This will speed up the start!
Because when it starts, these files are also loaded.

I was also asked why PHP4 installed as Apache module, and the software in the machine conflict,
For example, can not do Windows lookup operation, can not use editplus, God, sin!
I really can not think of what this is the reason, you or kill antivirus to say it first!
Tony Reeves


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.