Author |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri 08 Aug '08 8:12 Post subject: php4_module problem |
|
|
Apache 2.2.9 does not seem to like me using PHP modules.
Using OS: Windows 2000 Pro
Code: |
# PHP4 Specific
# Does not work: Not found.
#LoadModule php4_module "C:/PHP/sapi/php4apache2.dll"
LoadFile "C:/PHP/php4ts.dll"
# Does not work: Not found
LoadModule php4_module "C:/PHP/php4apache2.dll"
PHPINIDir "C:/PHP/"
AddType application/x-httpd-php .php
|
As you can see, as soon as LoadModule php4_module is called, the whole thing stops working.
Help is appreciated. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 08 Aug '08 10:09 Post subject: |
|
|
PHP 4 does not run natively with Apache 2.2.x under Windows. Steffen compiled a PHP 4 version that runs with Apache 2.2.x You can find it on the download page.
It is recommend to update to PHP 5! |
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Fri 08 Aug '08 10:36 Post subject: |
|
|
* Note: I did actually get PHP4 working on Apache2.2 on Win2000, so I am not sure how to do it now. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 08 Aug '08 11:41 Post subject: |
|
|
LochieJ wrote: | so I am not sure how to do it now. |
?? What do you want to do? |
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Sat 09 Aug '08 1:21 Post subject: |
|
|
Set up PHP4 as a LoadModule and get it to start.
(It won't start ) |
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Sat 09 Aug '08 4:45 Post subject: |
|
|
Quote: | ... download page. |
Where? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Sat 09 Aug '08 9:40 Post subject: |
|
|
http://www.apachelounge.com/download/
php4apache2.dll-php4.4.x.zip
keep the rest of your files from PHP.net
How to install read the "Readme First.txt" in the downloaded zip. |
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Sun 10 Aug '08 0:50 Post subject: |
|
|
Fixed.
Settings -> Control Panel -> System -> Environment Variables :
* Added C:/PHP/
* Added C:/PHP/ext/ (for safety)
* Added C:/Program Files/Apache Software Foundation/Apache2.2/
Runs smoothly now.
*Note: How are you supposed to add sub-domains with VirtualHost?? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Mon 11 Aug '08 9:13 Post subject: |
|
|
Ok. VirtualHost is working now.
I'd like to automatically serve a file for download when a user connects.
Eg: http://10.1.1.70:443 with no proxy opens an octet stream file for download.
Thanks. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Mon 11 Aug '08 10:40 Post subject: |
|
|
Nope. Not working.
Using: Redirect permanent / "http://10.1.1.70:443/loader-1557859387.jar" |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Mon 11 Aug '08 14:11 Post subject: |
|
|
Shall that also working from outside your LAN? |
|
Back to top |
|
LochieJ
Joined: 08 Aug 2008 Posts: 8
|
Posted: Tue 12 Aug '08 3:36 Post subject: |
|
|
No. Local only (security / development only server). |
|
Back to top |
|