Page 1 of 1

apache php mysql windows 2000

Posted: Sat Jun 11, 2005 11:46 pm
by Sculpture
Hello,

I am trying to configure Apache and PHP on an old toshiba satellite pro for demonstration purposes. After trying many versions of the three servers I settled on Apache 1.3.33, PHP 4.3.11 and MySQL 4.1.12a.

I should point out that I have Windows service pack 4 installed. Scouring the web and text books has narrowed down a page with a simple solution, http://www.mjmwired.net/resources/mjm-a ... dows.shtml , which I followed to the letter, as best I could. There is one part where I was instructed to:
Copy php.ini-dist as php.ini from the \php\ directory to your Windows directory: \windows (for 9x/Me/XP) or \winnt (for NT4/2000). Note the name change.
I have done a search on the computer and there is no such file. I also did a search in text and found that the install document has a reference to it, as do the .exe installer itself and the php.ini file.

When I try to re-start the Apache server I get an error message:
Can not load c:/program files/php/sapi/php4_apache.dll into server: <126> specified module could not be found:
I am well out of my depth and would welcome any assistance.

Thanks

Posted: Sun Jun 12, 2005 3:31 am
by anjanesh
You must have downloaded the windows exe version of php installtion.
Download the zip version - thats around 7MB.
That'll have all the files.

Same download

Posted: Sun Jun 12, 2005 9:13 pm
by Sculpture
Thank you Anjanesh Lekshminarayanan,

unfortunately that is the one I downloaded. Very confusing.

Posted: Mon Jun 13, 2005 5:17 am
by timvw
If i'm not mistaken you also need to copy some php_ts.lib or files like that to your %win% or %win%/system32 directory...

I haven't installed on win98 for ages, but i do remember that i got it to work :)

Posted: Mon Jun 13, 2005 6:10 am
by Sculpture
Thanks for your replies,

I have changed the PHP version to 4.3.10-Win32 and started again with the examples on http://mjmwired.net/resources/mjm-apache-windows.shtml and now the error has gone away. But! when I test a document named (test.php) with

Code: Select all

<?php phpinfo(); ?>
I get the page with the short line of code instead of the PHP server details.

Again, thank you for helping.

Posted: Mon Jun 13, 2005 8:30 am
by anjanesh
Add these 2 lines somewhere in httpd.conf file in Apache\conf folder and restart Apache.
Apache 2

Code: Select all

LoadModule php4_module &quote;c:/php/php4apache2.dll&quote;
AddType application/x-httpd-php .php
Apache 1

Code: Select all

LoadModule php4_module &quote;C:/php/php4apache.dll&quote;
AddModule mod_php4.c
AddType application/x-httpd-php .php

Posted: Mon Jun 13, 2005 6:40 pm
by Sculpture
Thank you once again Anjanesh Lekshminarayanan,

I am using version 1.3 Apache and already had installed lines 1 and 3 config document but Line 2, (AddModule mod_php4.c), has now been inserted.

Still the same result occurs when tested.

When I un-zipped the current PHP applicaton I merely inserted it into a folder in the "program files" directory, should I have run an installer?

Thanks again.

Posted: Mon Jun 13, 2005 8:38 pm
by Trenchant
If the system you are using is only for demonstration uses(for a website or something similar) then I would suggest using a program that installs them all for you. There are programs that you simply fill in your information and it installs apache, php, mysql and phpmyadmin all in one swing with less chances of errors.

The one I have used in the past is AppServ. http://www.appservnetwork.com I think it is

You might wanna give that a try.

Posted: Mon Jun 13, 2005 11:53 pm
by anjanesh
I hope you have changed the paths in the conf file.
If you extracted the php zip contents to C:\Program Files\php then
change

Code: Select all

LoadModule php4_module &quote;C:/php/php4apache.dll&quote;
to

Code: Select all

LoadModule php4_module &quote;C:/Program Files/php/php4apache.dll&quote;
And as timvw has said, And make sure you have the file php4ts.dll copied to C:\Windows\System32 or C:\WINNT\System32

And your php files should be in C:\Program Files\Apache Group\Apache\httdocs\ folder

Posted: Wed Jun 15, 2005 9:16 pm
by Sculpture
Thank you all for your help, it is most appreciated. Particularly Anjanesh Lekshminarayanan. I intend to investigate your solution further when I get the time. For the time being I am going to go with the Web Dummy idea, which works immediately. Although I am having problems with authentication. MySQL is suggesting that I upgrade.

Thank you all again.

Steve Lawrie.