correct configuration dompdf 0.5.2 or 0.6.x on wamp server 2.x

472 views
Skip to first unread message

nicola brescia

unread,
Jul 22, 2013, 1:22:07 PM7/22/13
to dom...@googlegroups.com

hi, i have a problem in configuring dompdf on wampserver, I tried different versions of dompdf (0.5.2 and 0.6.0) on different versions wampserver 2 ...... but I could not get to my solution, if I go in the examples shows me the html but if you want to see the pdf file I get this error: Not Found
The requested URL / \ / dompdf.php was not found on this server.
how can I solve my problem?, thank you!

BrianS

unread,
Jul 22, 2013, 2:00:52 PM7/22/13
to dom...@googlegroups.com
You seem to be having a configuration problem. The URL appears to be missing parts necessary to get the appropriate path to the dompdf.php file. Did you make any changes to dompdf_config.inc.php or dompdf_custom_config.inc.php? If you copy the link for the PDF instead of follow it what does it show? Can you post that link here? Finally, do you get any PHP errors?

BrianS

unread,
Jul 22, 2013, 4:20:54 PM7/22/13
to dom...@googlegroups.com
I don't know of any reason why dompdf wouldn't be compatible with WAMP as pre-configured, unless you're missing some necessary PHP modules, or WAMP is excluding a server variable the configuration or example script needs.. You can check dompdf/www/setup.php (under 0.6.0) for a summary of your installation.

Regardless, it doesn't look like dompdf even has a chance to render a document. The link to dompdf.php from the example page is coming back 404. This could looks like a configuration problem since the link to dompdf.php is determined with this line of code:

$dompdf = dirname(dirname($_SERVER["PHP_SELF"]));
if ( $dompdf == '/' || $dompdf == '\\') {
  $dompdf = '';
}

$dompdf .= "/dompdf.php?base_path=" . rawurlencode("www/test/");

Again, it might help to see the link that your web browser is trying to access. Right-click the link, choose copy link location (or whatever text your browser uses) and post the link back here so we can see it.

Or if the server is accessible online post a link to it.



On Mon, Jul 22, 2013 at 3:39 PM, nicola brescia wrote:
at the time of use dompdf 0.5.2 wampserver 2.2a, php 5.3.13, when I go to the examples in html format makes me display correctly, when I click on the item pdf I get the following message: Not Found

The requested URL / \ / dompdf.php was not found on this server.
from the research I'm doing seems that the library as well as pre-configured dompdf is not compatible with wampserver, or should I make some changes to the php code or do I have to enable some allowed


Il giorno lunedì 22 luglio 2013 20:00:52 UTC+2, BrianS ha scritto:
You seem to be having a configuration problem. The URL appears to be missing parts necessary to get the appropriate path to the dompdf.php file. Did you make any changes to dompdf_config.inc.php or dompdf_custom_config.inc.php? If you copy the link for the PDF instead of follow it what does it show? Can you post that link here? Finally, do you get any PHP errors?


On Monday, July 22, 2013 1:22:07 PM UTC-4, nicola brescia wrote:

nicola brescia

unread,
Jul 22, 2013, 4:33:22 PM7/22/13
to dom...@googlegroups.com
thank you for the speed of the responses, as I understand it this is the link that I have to send:
http://localhost/%5C/dompdf.php?base_path=www%2Ftest%2F&input_file=anchor_link.html

BrianS

unread,
Jul 22, 2013, 5:48:03 PM7/22/13
to dom...@googlegroups.com
That's what I wanted to know. It looks like something's going wrong determining the path to dompdf.php. The only variable component of that code is what's returned by
$_SERVER["PHP_SELF"]

If you echo that variable from a php script what do you get?

nicola brescia

unread,
Jul 22, 2013, 6:12:30 PM7/22/13
to dom...@googlegroups.com

nicola brescia

unread,
Jul 22, 2013, 6:13:20 PM7/22/13
to dom...@googlegroups.com

I'm sorry, I do not know how to make echo.

Il giorno lunedì 22 luglio 2013 23:48:03 UTC+2, BrianS ha scritto:

nicola brescia

unread,
Jul 23, 2013, 5:17:58 AM7/23/13
to dom...@googlegroups.com
I solved the problem was created by the fact that I copied the folder in the folder wamp dompdf and overlapped the www folder, I had to copy the contents of the folder in the www folder of wampserver dompdf, thanks dispodibilità cm ² of helping me, the next :)


Il giorno lunedì 22 luglio 2013 23:48:03 UTC+2, BrianS ha scritto:
Reply all
Reply to author
Forward
0 new messages