Thanks for the suggestion..!! I managed to run the cgi script on my server by configuring the file
(1./etc/apache2/sites-enabled/000-default.conf 2./etc/apache2/apache2.conf) . However, still am not able to generate a figure. Instead, a blank layout is shown.I know that it is something related to file pointing the figure.Kindly suggest me.
anikng
Some information,
My html file is in var/www/html folder. CGI script is under usr/lib/cgi-bin (i use this path to the configuration file for cgi configuration).
<!DOCTYPE html>
<html>
<body>
<h3> <center>TRANSCRIPTION FACTOR FAMILY</center></h3>
<form action="http://localhost/cgi-bin/test.cgi" method="GET">
<input type="submit" value="NAC">
</form>
</body>
</html>
#!/usr/bin/perl
use CGI;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
$q=new CGI;
print "Content-type: text/html\n\n";
@field=$q->param();
$name=$q->param("value");
print<<"OUTPUT";
<html>
<head>
<title>TRANSCRIPTION FACTOR DATABASE </title>
</head>
<body>
<img src="file:///var/www/html/index.jpeg" height="42
+0" width="420">
<br><br><br><br><br>
<center><table border=0>
<tr><td>
</td></tr>
</table></center>
</body>
</html>
OUTPUT
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.