Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

perl scripts appear as text

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
CGI Won't Run Perl Script Using Exec - I am unable to get CGI to run a script using the exec command in the html code. It does not matter if the extension for the script (counter) is .cgi or .pl. This file is just a test for later use on a page. The following is the html code: ..

Executing perl code in apache - I have tried the AddType cgi-bin .pl and also added the directory and a name to the cgi-bin directive under the apache config but the perl code doesn't get executed, instead I get to see raw perl code in the browser. What do I need to do so apache..

Perl-5.8-win32-bin configuration problem - why the fail and return message asking me to set the top level directory for perl when i have already set one.

mod_perl vs. cgi, suid-perl (long) - hi, i'm in need of some help because i am a bit confused about some apache features i need or believe to need. actually, the problem is occuring to a friend of mine, he needs to execute scripts in a suid-user manner. a script in a /cgi-bin/ with 4755

Apache2, PHP, MySQL, SSL, Perl, mod_ssl, mod_deflate... - I have put together a site on build and setting up a server for both Windows and Linux. If anyone would like to help, or has comments, let me know.
Next:  Name based virtual host issues  
Author Message
pdconetwofour_

External


Since: Jul 02, 2003
Posts: 22



(Msg. 1) Posted: Sun Aug 03, 2003 11:53 pm
Post subject: perl scripts appear as text
Archived from groups: alt>apache>configuration (more info?)

Ive set up a virtual host which seems to work OK, except for links that are
to scripts that generate pages.
the script text is appearing rather than the generated page.
The bit of the virtualhost Directive
<VirtualHost *>
.....
DocumentRoot /home/test/public_html
ScriptAlias /cgi-bin/ /home/test/cgi-bin/
<Directory /home/test/cgi-bin/>
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
</VirtualHost>

tree structure is
-home-test-public_html
-cgi-bin
links from the webpages are /cgi-bin/script.pl

Not sure whether the problem is in the VirtualHost Directive or a wider
apache config problem

 >> Stay informed about: perl scripts appear as text 
Back to top
Login to vote
pdconetwofour_

External


Since: Jul 02, 2003
Posts: 22



(Msg. 2) Posted: Sun Aug 03, 2003 11:58 pm
Post subject: Re: perl scripts appear as text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

and I can run the scripts from a Console
ie perl is in the right place and the shebang line is OK

 >> Stay informed about: perl scripts appear as text 
Back to top
Login to vote
no_mail

External


Since: Jul 15, 2003
Posts: 26



(Msg. 3) Posted: Tue Aug 05, 2003 1:45 am
Post subject: Re: perl scripts appear as text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

p cooper wrote...
 > and I can run the scripts from a Console
 > ie perl is in the right place and the shebang line is OK
 >
 >
 >
Are your perl scripts written to output to a browser? When you output
perl to a browser the script must contain the line:
print "Content-type: text/html\n\n";<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: perl scripts appear as text 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]