Solved

Apache service stops when viewing dompdf examples

Posted on 2008-10-24
3
1,025 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

756 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