# perl image1 Content-Type: text/html; charset=ISO-8859-1 Test image # #### # cat image1 #!/usr/bin/perl; use strict; use CGI ':standard'; use CGI::Carp 'fatalsToBrowser'; my $file = "/cgi-bin/PTF//WP_20140410_19_01_49_Pro.jpg"; print header, start_html('Test'), img({-src=>$file,-alt=>'image'}), end_html; # #### [Wed Apr 30 10:29:34 2014] [error] [client 10.142.205.193] (2)No such file or directory: exec of '/var/www/cgi-bin/PTF/image1' failed [Wed Apr 30 10:29:34 2014] [error] [client 10.142.205.193] Premature end of script headers: image1