Reinstall Apache after deleting it

I recently installed “Apache: httpd-2.2.15-win32-x86-no ssl.msi” on win 95, it appeared ok and returned “It works”
I then proceded to install PHP5.2.13. Rather than explain my complete disaster I ended up delting both PHP and Apache via windows add/remove, not so clever but you live and learn.
Reinstalling Apache is reports reinstall ok but with a syntax error which approximates to:
Syntax error on line 509.
Cannot load php apache2.2.dll into server. Module cannot be found.
Be pleased for any help.
kev

Kevin,

I’m not as sharp as I should be with error logs but any problem after reinstalling would mean to me that you’ve not updated the httpd.conf file to link PHP in properly. E.g.,

#LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
#PHPIniDir "C:/Windows"

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Hmmmm, My PHP installation commented out my bits and added their (same) bits to my httpd.conf. Go figure. That (PHP install) should obviously be done AFTER installing Apache.

Regards,

DK

Hello DK.

The beer was ok. New problem.

I hopefully, to the best of my knowledge managed to get Apache2.2 installed but hit a bad patch after installing PHP 5.3.2

Error log after installing PHP 5.3.2

[Tue Jul 06 12:52:39 2010] [notice] Parent: Received restart signal – Restarting the server.
[Tue Jul 06 12:52:39 2010] [notice] Child 2472: Exit event signaled. Child process is ending.
[Tue Jul 06 12:52:39 2010] [notice] Apache/2.2.15 (Win32) configured – resuming normal operations
[Tue Jul 06 12:52:39 2010] [notice] Server built: Mar 4 2010 11:27:46
[Tue Jul 06 12:52:39 2010] [notice] Parent: Created child process 208
[Tue Jul 06 12:52:40 2010] [notice] Child 2472: Released the start mutex
[Tue Jul 06 12:52:41 2010] [notice] Child 2472: All worker threads have exited.
[Tue Jul 06 12:52:41 2010] [notice] Child 2472: Child process is exiting
[Tue Jul 06 12:54:30 2010] [crit] (OS 6)The handle is invalid. : master_main: create child process failed. Exiting.
[Tue Jul 06 12:54:30 2010] [notice] Parent: Forcing termination of child process 36

It looks as though I have to deal with the [crit] error, can you help?

KH,

I think that an UNINSTALL followed by a proper install will resolve the issue with the ISP - that’s in the installation process and should be completed correctly (127.0.0.1 if you’re using it ONLY for localhost - your computer - OR private network address - 192.168.x.x - for LAN access OR your STATIC IP ADDRESS from your host. From what you’ve shown, you’ve already taken care of any conflict with IIS on your box ( :tup: ) !

Regards,

DK

Morning DK.
I’ve come to the conclusion that to completely uninstall Apache and then reinstall it, apart from being a nightmare, is, for the totally uninitiated a time to contemplate buying a new computer.

We’ll try plan ‘B’ first. Seek out a first class programmer.

I’ve reinstalled Apache and haven’t yet installed PHP, one step at a time, and here are two error reports, one from immediately after the install and one from immediatlety after switching on the computer this morning

Error.log 25.June 2010, Immediatley after install.

Starting the Apache2.2 service
The Apache2.2 service is running. Ormine the server’s fully qualified domain name, using 192.168.2.37 for ServerName
[Fri Jun 25 13:50:49 2010] [notice] Apache/2.2.15 (Win32) configured – resuming normal operations
[Fri Jun 25 13:50:49 2010] [notice] Server built: Mar 4 2010 11:27:46
[Fri Jun 25 13:50:49 2010] [notice] Parent: Created child process 1040
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.2.37 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 192.168.2.37 for ServerName
[Fri Jun 25 13:50:49 2010] [notice] Child 1040: Child process is running
[Fri Jun 25 13:50:49 2010] [notice] Child 1040: Acquired the start mutex.
[Fri Jun 25 13:50:49 2010] [notice] Child 1040: Starting 64 worker threads.
[Fri Jun 25 13:50:49 2010] [notice] Child 1040: Starting thread to listen on port 80.

Checking with localhost returns “It Works”

This morning 26.June 2010
Error log 26 June 2010
[Sat Jun 26 07:31:50 2010] [warn] pid file C:/Apache2.2/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
[Sat Jun 26 07:31:50 2010] [notice] Apache/2.2.15 (Win32) configured – resuming normal operations
[Sat Jun 26 07:31:50 2010] [notice] Server built: Mar 4 2010 11:27:46
[Sat Jun 26 07:31:50 2010] [notice] Parent: Created child process 448
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
httpd.exe: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Jun 26 07:31:51 2010] [notice] Child 448: Child process is running
[Sat Jun 26 07:31:51 2010] [notice] Child 448: Acquired the start mutex.
[Sat Jun 26 07:31:51 2010] [notice] Child 448: Starting 64 worker threads.
[Sat Jun 26 07:31:51 2010] [notice] Child 448: Starting thread to listen on port 80.

Checking with localhost returns “It Works”

A few points… It looks as though I have to re-establish the server name, which for whatever it might be I would like the recommended “localhost”

I am using a wireless connection to my local ISP which is protected by them ( I have a feeling that might be part of the problem)

On a previous PHP install attempt I found that without a qualified domain name I couldn’t get PHP and Apache to work together.

There’s promotion in this for a successful mission.

Apologies… the system is ‘Windows XP’ not ‘Windows 95’.

Kevin,

Be careful and configure your server per the directions Kevin Yank uses in his book (FREE chapter is on installation (and configuration). HOWEVER, if you did not Uninstall properly, you may find that you still have the Apache service running! STOP it and then reinstalling should work.

Regards,

DK

If this is for testing, then I would recommend installing one of the packages that do it all for you, like XAMPP.

The big question is, why Windows 95??

KH,

Stay out of the sun - it’ll burn after you fall down and can’t get up! :lol:

Regards,

DK

Thanks very much DK. I’m away from my comp for a few days but as soon as I return I will see what I can do… probably cry, throw myself on the floor, then go out and drink a couple of cool beers in the sun.