Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Apache won't start with PHP-configured httpd.conf file

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Apache won't start with PHP-configured httpd.conf file

Postby audiolizard » Mon Oct 14, 2002 4:15 pm

I'm trying to do the "Build your own Database Driven Website using PHP & MySQL" tutorial by Kevin Yank located here:
http://www.webmasterbase.com/article.php?aid=228&pid=0

I've installed mySQL 3.23.52, PHP 4.2.3, and Apache 2.0.43 on my WinXP Home computer. The Apache server is working fine. However, when I add the following lines to httpd.conf as directed in the tutorial Apache will not restart.

LoadModule php4_module c:/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps

Apache gives an error saying, "The requested operation has failed!". As soon as I comment those lines, Apache starts fine again. I verified that the module path is correct. I checked my log file, and it tells me the following:

[Mon Oct 14 16:55:15 2002] [notice] Parent: Created child process 1400
[Mon Oct 14 16:55:15 2002] [notice] Child 1400: Child process is running
[Mon Oct 14 16:55:15 2002] [notice] Child 1400: Acquired the start mutex.
[Mon Oct 14 16:55:15 2002] [notice] Child 1400: Starting 250 worker threads.
[Mon Oct 14 16:57:57 2002] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Oct 14 16:57:57 2002] [notice] Child 1400: Exit event signaled. Child process is ending.
[Mon Oct 14 16:57:57 2002] [warn] (720995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
[Mon Oct 14 16:57:58 2002] [notice] Child 1400: Released the start mutex
[Mon Oct 14 16:57:59 2002] [notice] Child 1400: Waiting for 250 worker threads to exit.
[Mon Oct 14 16:57:59 2002] [notice] Child 1400: All worker threads have exited.
[Mon Oct 14 16:57:59 2002] [notice] Child 1400: Child process is exiting

I'm not sure what to do at this point. Please dont tell me to RTFM. I just want to get this development environment setup temporarily so I can learn a little PHP before buying a webhost. If anybody could point me in the right direction, I'd really appreciate it. Until then I'll keep banging my head against the wall trying to figure it out.
audiolizard
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Oct 14, 2002 2:58 pm

Postby audiolizard » Mon Oct 14, 2002 8:46 pm

I found the solution although I still don't understand it. Either Apache released a version that wasn't compatible with the latest PHP or vice versa. One would think they would test this software before releasing it.
Anyway, the solution is here:

http://www.phpbuilder.com/board/showthr ... d=10212445
audiolizard
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Oct 14, 2002 2:58 pm


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.