apache php mysql windows 2000

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Sculpture
Forum Commoner
Posts: 41
Joined: Sat Jun 11, 2005 6:57 pm
Location: Australia
Contact:

apache php mysql windows 2000

Post 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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
User avatar
Sculpture
Forum Commoner
Posts: 41
Joined: Sat Jun 11, 2005 6:57 pm
Location: Australia
Contact:

Same download

Post by Sculpture »

Thank you Anjanesh Lekshminarayanan,

unfortunately that is the one I downloaded. Very confusing.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 :)
User avatar
Sculpture
Forum Commoner
Posts: 41
Joined: Sat Jun 11, 2005 6:57 pm
Location: Australia
Contact:

Post 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.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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
User avatar
Sculpture
Forum Commoner
Posts: 41
Joined: Sat Jun 11, 2005 6:57 pm
Location: Australia
Contact:

Post 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.
User avatar
Trenchant
Forum Contributor
Posts: 291
Joined: Mon Nov 29, 2004 6:04 pm
Location: Web Dummy IS

Post 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.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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
User avatar
Sculpture
Forum Commoner
Posts: 41
Joined: Sat Jun 11, 2005 6:57 pm
Location: Australia
Contact:

Post 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.
Post Reply