Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Starting over  (Read 4497 times)

0 Members and 1 Guest are viewing this topic.

Dilbert

    Topic Starter
  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Starting over
    « on: June 27, 2006, 12:33:42 PM »
    OK, I may have lost all my PHP/MySQL/Apache work, but after a while of discouragemant I'm willing to try again. Unfortuneately, the help thread I opened last time is gone (not just the Ex-Member bug, it's GONE) so I have to start from scratch. Here's what I've done so far:

    Downloaded Apache (latest version)
    Downloaded PHP (latest version)
    Downloaded MySQL (latest version)

    As per the install.txt, I've added this to the httpd.conf:

    Quote
    LoadModule php5_module "C:\PHP\php5apache2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "C:/PHP"

    I have also enabled the MySQL extension.

    Before I messed around with PHP Apache worked fine. Now, when I try to start Apache I get an error saying that it can't find php5apache2.dll. This happens no matter where I put this .dll file (I tried putting it in the Apache folder and changing the path in httpd.conf, but no luck). How do I fix this?
    "The geek shall inherit the Earth."

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Starting over
    « Reply #1 on: June 27, 2006, 02:24:45 PM »
    You're mixing backward and forward slashes - is there a reason for that?
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    Dilbert

      Topic Starter
    • Moderator


    • Egghead

    • Welcome to ComputerHope!
    • Thanked: 44
      Re: Starting over
      « Reply #2 on: June 27, 2006, 04:47:16 PM »
      Yeah: The heat wave is adversely affecting me. I changed the last line to C:\PHP, but I still can't start Apache.
      "The geek shall inherit the Earth."

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Starting over
      « Reply #3 on: June 28, 2006, 01:11:46 AM »
      Try "php5apache2_2.dll".  ;)
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      T-Chai

      • Guest
      Re: Starting over
      « Reply #4 on: June 28, 2006, 05:21:27 PM »
      Try Downloading wamp
      windows
      Apache
      Mysql
      PHP
      These packetes is really recomended than downloading seperatly
      « Last Edit: June 28, 2006, 05:22:49 PM by T-Chai »

      Dilbert

        Topic Starter
      • Moderator


      • Egghead

      • Welcome to ComputerHope!
      • Thanked: 44
        Re: Starting over
        « Reply #5 on: June 28, 2006, 08:28:54 PM »
        I've got Apache, PHP and MySQL. My problem is that it won't load the php5apache2.dll file. ;)

        And rob, I did try copying the file to php5apache2.dll and editing the httpd.conf to reflect this, but I still get the following error:

        httpd.exe: Syntax error on line 486 of C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf: Cannot load C:\PHP\php5apache2.dll into server: The specified module cannot be found.
        "The geek shall inherit the Earth."

        Rob Pomeroy



          Prodigy

        • Systems Architect
        • Thanked: 124
          • Me
        • Experience: Expert
        • OS: Other
        Re: Starting over
        « Reply #6 on: June 29, 2006, 01:46:04 AM »
        Okay - put things back to their original names and locations (in case the DLL self-checks); ensure you've got that underscore present in the file and the conf; check that the PHP folder can be read by the web server process.  Then lets carry on from there.
        Only able to visit the forums sporadically, sorry.

        Geek & Dummy - honest news, reviews and howtos

        Dilbert

          Topic Starter
        • Moderator


        • Egghead

        • Welcome to ComputerHope!
        • Thanked: 44
          Re: Starting over
          « Reply #7 on: July 07, 2006, 02:09:21 PM »
          OK, here's what I have done:

          1. Deleted C:\PHP

          2. Extracted the copy I kept in My downloads back to C:\PHP

          3. Copied php.ini from C:\WINDOWS (Where I had copied it to originally) back to C:\PHP.

          4. As per the instructions in install.txt, I have made sure the last lines of httpd.conf reads:

          # For PHP 5 do something like this:
          LoadModule php5_module "c:/php/php5apache2.dll"
          AddType application/x-httpd-php .php

          # configure the path to php.ini
          PHPIniDir "C:/php"

          I still cannot start the service. :-/

          EDIT: I am attaching my C:\PHP\php.ini file and my httpd.conf file. Please tell me how I can configure this differently, if it's possible.
          « Last Edit: July 07, 2006, 02:11:30 PM by Timothy_Bennett »
          "The geek shall inherit the Earth."