|
|
Question : While running cgi/perl scripts the file is opening for download not executing the perl/cgi script
|
|
Hi, I have cgi/perl script while invoking it through html it is downloading, it not executing the cgi/perl script?I am doing a mini search engine? The html file name is searchengine.html and perl script name search.pl In the apache error_log file i find the following error message?
find: ./proc/7960/task/7960/fd: Permission denied find: ./proc/7960/fd: Permission denied find: ./proc/8303/task/8303/fd: Permission denied find: ./proc/8303/fd: Permission denied find: ./.mozilla: Permission denied find: ./.kde: Permission denied ....
I have 1.placed the search.pl in cgi-bin directory 2.shebang has been written correctly 3.Search.pl have execute permissions 4.and have changed the owner of search.pl to root.
Help required
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
|
Searchengine
|
Open in New Window
Select All
|
Answer : While running cgi/perl scripts the file is opening for download not executing the perl/cgi script
|
|
From the command line do
dos2unix search.pl
Then check it by doing
./search.pl
|
|
|
|