Solved

Apache service stops when viewing dompdf examples

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP & MySQL - Rounding Results from a Select Query 3 25
PHP Sessions in WordPress 8 31
php string detection problem 7 34
Showing random records from database 10 37
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 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