Author |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Fri 23 May '08 17:20 Post subject: Unhandled win32 exception error in httpd.exe file in apache |
|
|
URGENT HELP
Hi all
installed apache 2.2.8 its installed properly and configured with php 5.2.6 properly bye editing the httpd.config file.
But when i start apache server it starts properly but when i try to shutdown(stop) the server its gives error in httpd.exe file with different code.As i have installed asp.net framework on my machine it give above error and ask to open httpd.exe file for dbugging in VS.net. wat can be the problem. If i run simple html files it works properly. It gives error for "unhandled win32 exception error in httpd.exe file (error code)" this error code is always different.
Is there problem with skype. I have skype on my machine. i wil uninstall it. But i have stopped that service and made it manual from services.msc.
I will be thankful for this urgent help.
i need it for my project. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 26 May '08 13:47 Post subject: |
|
|
Where did you download your apache? Can you copy that part from your error log please? |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Tue 27 May '08 22:20 Post subject: |
|
|
hi thanks for the reply James. I dl apache from its site. And the above error is not there in error logfile. I will give u the entries in the log file hope u can find anything out of it. But my feeling is its problem with WinXp. Actually it dot give error in error log file. He just gives a window and thats it.
i m trying to install new copy of XP, by formatting it again. So lets see it work or not
Still if u find any specific solution i will be thankful.
bye
Below are the entries in the error log file
[Tue May 27 21:12:38 2008] [notice] Child 3640: Child process is running
[Tue May 27 21:12:38 2008] [notice] Child 3640: Acquired the start mutex.
[Tue May 27 21:12:38 2008] [notice] Child 3640: Starting 64 worker threads.
[Tue May 27 21:12:38 2008] [notice] Child 3640: Starting thread to listen on port 80.
[Tue May 27 21:12:52 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue May 27 21:12:52 2008] [notice] Child 3640: Exit event signaled. Child process is ending.
[Tue May 27 21:12:53 2008] [notice] Child 3640: Released the start mutex
[Tue May 27 21:12:54 2008] [notice] Child 3640: All worker threads have exited.
[Tue May 27 21:12:56 2008] [notice] Parent: Child process exited successfully. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 27 May '08 23:27 Post subject: |
|
|
That error log shows me that apache has no errors. I recomment you not to install VS.NET. Sometimes the debugger causes more errors than it helps.
If you don't get a working solution you may take a look at this thread
http://www.apachelounge.com/viewtopic.php?t=2394
if you still have a question please post here again! |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 0:16 Post subject: |
|
|
hi James, as per ur recomendation i uninstalled the VS.net but still the problem is same, its giving same error, but just give "just in time debugging" type of error. Is it a problem due to malware or spywear.
i think my installation of apache and php is ok. i think i should unstall windowxp and do fresh installation without VS.net. Wat you suggest. i will the thread that u gave to me
thanks once again. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 0:23 Post subject: |
|
|
While uninstalling MS .net framework 2.0. It asked me question
"unhandled error in win32 file httpd.exe this application should be closed closed before uninstall"
So there might be the problem, i uninstalled it but problem is same. So i will try to uninstall apache and reinstall it and will try it again . |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 0:28 Post subject: |
|
|
hi i tried to uninstall apache and installed again, but restult same.
dont know wat the solution. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 1:43 Post subject: |
|
|
hi. i uninstalled and reinstalled apache and tried and surprisingly i wrote the info prog
<html>
<body>
<?php
phpinfo();
?>
</body>
</html>
and tried to access thru local host. And it worked but i saw all things properly installed php,apache, and mysql but still its showing that error. ITs allowing me to scroll down and see the page and as i click ok button of the error the server crashes and gets disconnected. Now wat can be the problem. Same time its now allowing any other program to run properly. if i try to run any php file other than above code it show output for just html tags. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 28 May '08 13:00 Post subject: |
|
|
ok! Now apache works! That great! Now for PHP please read
Basic PHP Troubleshooting
if you still have a question please ask again. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 13:45 Post subject: |
|
|
hi
thanks for reply.
The thing is that apache is working as normal, when i uninstall php then apache works as normal. Even i install php it strarts properly but at the time of shutdown of server it gives error or when i run the php script.#
If i read my previous problem. IT shows the phpinfo(); properly when i run that file thru localhost but show that same error.(when php is installed) i can scroll down and read but when i click ok button of error message server shutdown.
When i install php the file php-cgi.exe is always missing. Is it related to this problem.
http://www.php.net/downloads.php
from the above link i download windows binary
"md5: 94e551037e7c9c056f90179f351c0560" 6 may 2008
and if i dl the zip file above this it has the php-cgi.exe file
the installer i dl dont have that file and few other files as well.
so is it possible for u to check that plz. I will be really thankful to u.
I tried to install WAMP server (bundle of W,A,M,P) with phpmyadmin.
it works fine.
i dont want to use that.
plz clearify the above points.
many thanks in advance
is there any link on this forum for php then i will dl that link and will try to install that.
or for both apache and php |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 14:29 Post subject: |
|
|
hi
this is my httpd.config file. The link u gave i dl that and i will have to just unzip it to php folder or is there any other way to install and configur as i have not done this type of installation. sorry for this annoying question.
LoadModule php5_module "E:/program files/php/php5apache2_2.dll"
AddType application/x-httpd-php .php .html
PHPIniDir "E:/program files/php/"
Action Application/x-httpd-php "/php/php-cgi.exe"
i hope this is the one u wanted or the whole file |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 28 May '08 17:25 Post subject: |
|
|
remove the last line. You can only run as module or cgi.
only
Code: |
LoadModule php5_module "E:/program files/php/php5apache2_2.dll"
AddType application/x-httpd-php .php .html
PHPIniDir "E:/program files/php/"
|
|
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Wed 28 May '08 18:46 Post subject: |
|
|
hi i m sad with this problem.
The problem is still there.
i dont know what to do
even the lines u send me doent work properly
i think i should give up.
can u tell me any other way i can use this thing
i dont want to use WAMP server with phpmyadmin.
so plz tell me any other alternative solution for this
million thanks for ur nice help
is that problem due to any virus, but i checked no virus or anything in machine. or any thing with windows. But if i remove php apache works very nicely. its problem with the files that i have in php.
Or its anything to do with firewall stuff. I am really getting annoyed as i m stucked up at start how can i proceed further
and most imp when?????????
is there any chance that i can configure with Dreamweaver 8 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Thu 29 May '08 13:05 Post subject: |
|
|
thanks for the link.
I will do that but i think i have lots of other problems with my computer so i fell i will format the c: and reinstall it everything again and will follow ur steps so i pray after that it works fine. else tell me any other sw for using php and configuring with apache.
i will do that and will let u know
thanks for the help. |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Fri 30 May '08 2:29 Post subject: |
|
|
hey james i am happy for the link u send me and i tried and i feel it worked
i cant belive it its working. now i wil try something on it and let u know its really working or not
ok bye
thank million time for the help if i have problem as usual will post again to give u trouble
bye |
|
Back to top |
|
peacemaker
Joined: 23 May 2008 Posts: 80
|
Posted: Fri 30 May '08 2:31 Post subject: |
|
|
hey james i am happy for the link u send me and i tried and i feel it worked
i cant belive it its working. now i wil try something on it and let u know its really working or not
ok bye
thank million time for the help
most important thing is that i have not formatted the hard drive still its working fine.
now other problem is html files containing php code is not displaying, its showing only html code so plz tell me how to show that code.
Ex:----
file name info.html
<html>
<body>
<?php
<h1> This is php info file </h1>
phpinfo();
?>
</body>
</html>
if run on localhost show only <h1><h1> text. and rest page is blank
thanks for any advice on this. or every file i will have to save with .php extension or is there any solution |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 30 May '08 16:16 Post subject: |
|
|
There is an error in that PHP code.
Code: |
<html>
<body>
<?php
echo '<h1> This is php info file </h1>';
phpinfo();
?>
</body>
</html>
|
Are you sure that this file has the extension .html and not .htm? Your apache is so configured that it parses .php and .html
so you may add .htm as well
AddType application/x-httpd-php .php .html .htm
Don't for get to restart apache.
Do .php files work? |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Sun 01 Jun '08 20:53 Post subject: |
|
|
No please don't use AddType, use AddHandler instead.
AddHandler Directive
Description: Maps the filename extensions to the specified handler
AddType Directive
Description: Maps the given filename extensions onto the specified content type |
|
Back to top |
|