Solved

Apache service stops when viewing dompdf examples

Posted on 2008-10-24
3
1,022 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

867 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

19 Experts available now in Live!

Get 1:1 Help Now