SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Help! Apache cannot find PHP. I have error log info.

  1. #1
    SitePoint Member
    Join Date
    Apr 2012
    Location
    Kings County, CA, USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! Apache cannot find PHP. I have error log info.

    I have installed MySQL, Apache, and PHP according to the directions in Kevin Yank's book - Build Your Own Database Driven Web Site Using PHP & MySQL. The status bar of the Apache Service Monitor window does not show the version of PHP that I've got.

    Apache has a neat little option: an error log. In it, I found the following two messages:
    1. httpd.exe: Syntax error on line 492 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php5apache2_2.dll into server: The specified module could not be found.
    2. [Fri Mar 30 14:11:15 2012] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.

    With this, can you tell me how to correct my problem?

    Thank you.

    Roland
    geiger.roland@yahoo.com or I'll check the Inbox of this site.

  2. #2
    SitePoint Member
    Join Date
    Mar 2012
    Location
    Scottsdale, AZ
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where did you install PHP to on the server?

  3. #3
    Twitter: @TimIgoe silver trophy
    TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,023
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    It CAN find php, however it can't LOAD php. You are using Apache on Windows, which version of PHP did you download from php.net? There are a few that aren't compatible with Apache. http://windows.php.net/download/

    See the note in the left hand column, "If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP"

  4. #4
    SitePoint Member
    Join Date
    Apr 2012
    Location
    Kings County, CA, USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mike_GoDaddy View Post
    Where did you install PHP to on the server?
    I am loading everything on a laptop that I'm using to go back and forth to a college class. Specifically, I downloaded the PHP folder directly to the C: drive as Kevin Yank's book suggests. I thought that it should go into the Program Files folder of the C: drive, but that's not what his book said to do. I clicked on the PHP folder, and some of the files say php5 (php5.dll, php5apache2_2.dll, php5apache2.dll, and so on), and underneath they say 5.2.17.17, so I guess I have version 5.2. I clicked on the Zip link and extracted the files, but I'm not sure about Thread Safe. There was a newer version of PHP on their site, but that is not what Kevin's book said to use, so I went for the version he suggested.

    Apache Software Foundation folder is in Program Files folder of C: drive. It's version 2.2.

    I am just learning about MySQL, PHP, and Apache in a Server Side Scripting class. This stuff is a little foreign to me. I only know how to write basic HTML5, CSS, and JavaScript.

    Thank you.

  5. #5
    SitePoint Member
    Join Date
    Mar 2012
    Location
    Scottsdale, AZ
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may want to attempt to reinstall PHP from here.

  6. #6
    Twitter: @TimIgoe silver trophy
    TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,023
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by RGeiger View Post
    I am loading everything on a laptop that I'm using to go back and forth to a college class. Specifically, I downloaded the PHP folder directly to the C: drive as Kevin Yank's book suggests. I thought that it should go into the Program Files folder of the C: drive, but that's not what his book said to do. I clicked on the PHP folder, and some of the files say php5 (php5.dll, php5apache2_2.dll, php5apache2.dll, and so on), and underneath they say 5.2.17.17, so I guess I have version 5.2. I clicked on the Zip link and extracted the files, but I'm not sure about Thread Safe. There was a newer version of PHP on their site, but that is not what Kevin's book said to use, so I went for the version he suggested.

    Apache Software Foundation folder is in Program Files folder of C: drive. It's version 2.2.

    I am just learning about MySQL, PHP, and Apache in a Server Side Scripting class. This stuff is a little foreign to me. I only know how to write basic HTML5, CSS, and JavaScript.

    Thank you.
    Rathe than using the zip, try using the one with the installer - picking the right one from the windows php download list (the apache / VC6 build of 5.2)

  7. #7
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,314
    Mentioned
    15 Post(s)
    Tagged
    2 Thread(s)
    You do NOT want to install anything in a WAMP setup (Windows, Apache, MySQL, PHP with PHPMyAdmin) except MySQL in the Program Files directory. To do so would bring on immense headaches with the "protection" Windows affords that directory (you'll have to put-up with editing the Windows\system32\drivers\etc\hosts file as an administrator). Best to UNinstall everything and start over again ... and, yes, I learned this the hard way when converting to Win7.

    Regards,

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

  8. #8
    SitePoint Member
    Join Date
    Apr 2012
    Location
    Kings County, CA, USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thread Safe Question

    Quote Originally Posted by TimIgoe View Post
    Rathe than using the zip, try using the one with the installer - picking the right one from the windows php download list (the apache / VC6 build of 5.2)
    I'm going to take your advice. I was curious about what "thread safe" means.

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
  •