Re: Apache showing Perl code
It seams to be your configuration problem on your apache. Make sure this on your httpd.conf: Options FollowSymLinks +ExecCGI AddHandler cgi-script cgi pl AllowOverride None Willy "Edwin D. Vinas" <[EMAIL PROTECTED]To: "B.J. Faught" <[EMAIL PROTECTED]>, .gov.ph> <[EMAIL PROTECTED]> cc: 03/06/2003 05:09 Subject: Re: Apache showing Perl code AM Hi, Usually, a perl script when not set to "chmod +x" or as executable file will just be treated as an ordinary text file. This may be the reason why you get the text file instead of executing the commands inside the file. Please make sure you: "chmod +x your_script.pl" Then try to execute first using the command line. If it doesn't work in the command line, it won't surely work in the web browser. best regards, --edwin - If Americans have atomic bombs & the Internet... Filipinos are very far behind to catch up in any field. -Edwin D. ViƱas [EMAIL PROTECTED] http://www.geocities.com/edwin_vinas Science Research Specialist I PREGINET Project Advanced Science and Technology Institute UP Technopark Complex, CP Garcia Ave, Diliman, Quezon City Philippines - This communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, please note that any review, retransmission, dissemination, copying or other use of, or taking of any action in reliance upon, this information by you or by persons or entities other than the intended recipient is prohibited. - Original Message - From: "B.J. Faught" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 5:40 PM Subject: Apache showing Perl code > I just installed Apache and mod_perl, but for some reason when I execute > scripts through my Apache server it shows all of the Perl code: > > #!C:/Perl/bin/Perl.exe > print "Content-type: text/html\n\n"; > > foreach $var (sort(keys(%ENV))) { > $val = $ENV{$var}; > $val =~ s|\n|\\n|g; > $val =~ s|"|\\"|g; > print "${var}=\"${val}\"\n"; > } > > I got the path found on the first line from an example Perl script > (printenv.pl) that came with the latest version of the Apache server. > > Could anybody give me a hand with a suggestion or two? > >
Re: mod_perl books (Was: RE: Trouble with sysread in modperl)
Hi Hui Liu You can start from http://perl.apache.org/docs/2.0/user/intro/start_fast.pdf instead of reading the very thick books. You can google to find out example codes as well. Gook Luck, Huili Liu Larry Leszczynski <[EMAIL PROTECTED]To: "Liu, Hui (GXS)" <[EMAIL PROTECTED]> >cc: mod_perl list <[EMAIL PROTECTED]> Subject: mod_perl books (Was: RE: Trouble with sysread in modperl) 03/04/2003 03:40 PM Please respond to Larry Leszczynski Hi Hui Liu - > Larry, > > Thank you. I wonder which Mod_perl cook book you are referring to and > where can we get them? I am very interested in details of recipe 3.8. > This is our first time to port our perl scripts to Apache (we are > using Apache:PerRun mode), and we are still learning. The best overall online resource is the mod_perl web site at: http://perl.apache.org/ Books related to mod_perl, including the "mod_perl Developer's Cookbook", are listed at: http://perl.apache.org/docs/offsite/books.html Larry Leszczynski [EMAIL PROTECTED]
Re: Server side programming PHP Vs CGI Vs modPerl
Devi, There are many reasons for you to select one of them such as - if you are looking for an easy way to present your contents, try PHP. - if you are an expert on Perl/CGI, of course, you would like use Perl/CGI - if you are put more attention on traffic/speed, you can try Mod_perl. - Again, selecting your favorite programming language depends on what you need on your project, what's your favorite and how much cost allowed, etc. Hope it helpful, Willy programming skill "Devi .M" <[EMAIL PROTECTED]To: <[EMAIL PROTECTED]> o.in>cc: Subject: Server side programming PHP Vs CGI Vs modPerl 02/13/2003 12:40 AM Hello All, We have a server running in a Linux machine, now we would like to present the data in a browser using HTML interface. Can anyone suggest me which is the best one (CGI or PHP or modperl) to develop for web programming and also their advantages and differences to choose them as the best Thanks in advance, Devi.
Re: mysql question
Theoretically, It is not. See 4.3.1 GRANT and REVOKE Syntax GRANT priv_type [(column_list)] [, priv_type [(column_list)] ...] ON {tbl_name | * | *.* | db_name.*} TO user_name [IDENTIFIED BY 'password'] [, user_name [IDENTIFIED BY 'password'] ...] [WITH GRANT OPTION] Willy "Martin Moss" ternet.com> cc: Subject: mysql question 01/23/2003 09:10 AM slightly off topic, but is it possible to grant permissions to a user on multiple tables in one sql statement in mysql? >From mysql.com:- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP -> ON bankaccount.* -> TO custom@localhost -> IDENTIFIED BY 'stupid'; can I do this ON bankaccount.*,user.*,customer.* Marty
Re: Identifying memory leaks
check Apache::leak that will help you to track mod_perl memory leak. Willy "Charles" eak.com> cc: Subject: Identifying memory leaks 11/26/2002 02:28 PM A Linux machine running Apache/2.0.35 (Unix) mod_perl/1.99_05-dev Perl/v5.6.1 mysql 4.0.1 uses increasing "used" memory (according "/usr/bin/free"), eventually resuting in all memory being consumed. Memory usage drops somewhat after a reboot of apache and mysql, but not completely. If a reference does not go out of scope between sessions, that memory will not be garbage collected. I would like to test for these types of difficulties. Questions: Are there tools to track total (all threads/processes) mod_perl, apache, mysql memory usage? What is the normal behavior for a module which connects (via a global) to a database in terms of mysql processes started?
Re: Server Parsed .shtml files...
Better choice is add .shtml to server-parsed. See below: # # To use server-parsed HTML files # AddType text/html .shtml .html .htm AddHandler server-parsed .shtml .html .htm Willy simran cc: Subject: Server Parsed .shtml files... 11/14/2002 03:50 AM Hi All, I have a auth protected area for the apache server: Aka, the location /auth is password protected by Perl*Handlers and usually i only write other PerlHandlers that do things under that location. However, i need to put a .shtml file into that diretory (it is also a normal directory under the document root). Putting .html files there is no problem, they display fine, however, .shtml files do not get parsed when in that directory (they work fine from everywhere else on the server). I assume this is because under that directory, SetHandler is set to perl-script and not server-parsed? Is there a way i can use the "Files" directive (or any other way) to get the server to parse .shtml files in that directory? simran.