SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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??

  3. #3
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Apologies... the system is 'Windows XP' not 'Windows 95'.

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  5. #5
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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 ( ) !

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  7. #7
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    KH,

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

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  9. #9
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  10. #10
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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.,
    Code:
    #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
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •