Solved

Apache service stops when viewing dompdf examples

Posted on 2008-10-24
3
1,019 Views
Last Modified: 2013-12-13
Hi All
 
I am trying to use dompdf on windows Vista 32. When i try to use the examples provided with dompdf my apache services stops with an error. See the error below:
 
The Apache service named reported the following error:
>>> [Fri Oct 24 14:23:31 2008] [notice] Disabled use of AcceptEx() WinSock2 API.  
 
I have tried added the following to my httpd.conf file but it still happens:
 
Win32DisableAcceptEx
 
If anybody has had this problem before i would really appreciate some help as the options for converting html to pdf in php is very limited.
 
Thanks
0
Comment
Question by:mwskuzzy
  • 2
3 Comments
 
LVL 16

Expert Comment

by:sh0e
ID: 22798785
AcceptEx is usually harmless.  Normally that should not cause your server to fail.
Do you have a firewall/antivirus?  Check that it's not causing problems with Apache.

Are you sure there aren't any other errors?
0
 

Author Comment

by:mwskuzzy
ID: 22799618
That is the only error. I have a firewall and antivirus but apache runs fine. This only happens when i try to convert html to pdf using dompdf.

There is another application error but it does not make much sense. This is the error:

Faulting application apache.exe, version 2.2.6.0, time stamp 0x46f2f454, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000005, fault offset 0x000659c3, process id 0x1744, application start time 0x01c935d353cec9ad.

Thanks
0
 
LVL 16

Accepted Solution

by:
sh0e earned 500 total points
ID: 22801948
I am not familiar with dompdf.

Did you follow all the directions for installing dompdf on windows?
Have you tried invoking dompdf directly?
http://www.digitaljunkies.ca/dompdf/usage.php#cli
Try using the class directly:
http://www.digitaljunkies.ca/dompdf/usage.php#class
Try saving it to a file:
http://www.digitaljunkies.ca/dompdf/faq.php#save
Set PHP's memory limit higher

Is there a specific point where it fails?
If it's really socket failure, perhaps it's the amount of data being streamed when you have to view the pdf?
Or perhaps there isn't enough memory? dompdf appparently requires a large amount of memory allocated to it.
What are your complete server specifications? PHP version, Apache version, other services running (IIS), etc
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now