We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Why won't Apache work?
Topic Started: Mar 16 2005, 11:49 AM (248 Views)
Dennis
Member
[ *  *  *  *  *  *  * ]
I'm trying to install PHP 4.3.10 as an Apache 2 Module.

I edit the httpd.conf file, and add the following to it:

Quote:
 
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"


That's what the PHP docs said to do. I save that, then try starting Apache. It always tells me that it cannot be found. I tried putting it everywhere I can, but it never works. Any ideas why?
Offline Profile Quote Post Goto Top
 
Stefan
Member Avatar
Mew?
[ *  *  *  *  *  *  * ]
Maybe if you add the PHP directory to your Path environment variable?
It could be that the directory (and because of that, the DLL) isn't in the search path.
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
errr... English please?

How would I fix that?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
You should copy that php4apache DLL over to your Apache root directory IIRC. Unless you want to go boinking with paths (which are in Control Panel > System > Advanced > Environment Variables).
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
So.. instead of C:/php/sapi, I'd do c:/apache/php4apache2.dll?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
No, take out the fully qualified path. I'll go poke up my httpd.conf when I get home, k?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Mmkay, I fully renig what I said before.

Code:
 
LoadModule php5_module "c:/php/php5apache2.dll"

Shows you how long it's been since I set up PHP.
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
And then you should add C:\PHP to your PATH.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply