I am having problems with FC2 apache and Perl.
I ran strace -f -e stat,stat64,open httpd
and these errors for perl came up. How do I fix?
stat64("/etc/httpd/conf.d/perl.conf", {st_mode=S_IFREG|0644, st_size=1827, ...}) = 0 open("/etc/httpd/conf.d/perl.conf", O_RDONLY) = 4 open("/etc/httpd/modules/mod_perl.so", O_RDONLY) = 5 open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686/libperl.so" , O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libperl.so", O_RDONLY) = 5 open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
Thank you Brian --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brian McDonald wrote:
open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libperl.so", O_RDONLY) = 5 open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
None of this is a problem. This is just the dynamic linker doing its work.
- -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
Does any one have any ideas why I cannot run Perl scripts under apache. The Perl script runs fine at the command line.
TY Brian
-----Original Message----- From: Ulrich Drepper [mailto:drepper@redhat.com] Sent: Monday, November 08, 2004 9:23 AM To: bmcd@hawk.igs.net; For users of Fedora Core releases Subject: Re: Perl errors
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brian McDonald wrote:
open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/tls", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/i686", 0xfeeeceb0) = -1 ENOENT (No such file or directory) open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libperl.so", O_RDONLY) = 5 open("/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
None of this is a problem. This is just the dynamic linker doing its work.
- -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
----- Original Message ----- From: "Brian McDonald" bmcd@hawk.igs.net To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Monday, November 08, 2004 6:34 AM Subject: RE: Perl errors
Does any one have any ideas why I cannot run Perl scripts under apache. The Perl script runs fine at the command line.
TY Brian
I am interested in this one too for FC2. Executes fine at the CLI but Apache won't touch it other than displaying the target script instead of executing it. I've tried httpd.conf directives and .htaccess setting +ExecCGI to no avail...must be some little permissions switch but I cannot seem to trace it...anyone have a suggestion?
-Eucke
Am Mo, den 08.11.2004 schrieb Eucke Warren um 19:04:
Does any one have any ideas why I cannot run Perl scripts under apache. The Perl script runs fine at the command line.
Brian
Is that still the broken Perl code you posted in the other thread?
#!/usr/bin/perl use strict; use warnings; print "What is your username? "; my $username; $username = <STDIN>; chomp($username); print "Hello, $username.\n";
That does not work.
I am interested in this one too for FC2. Executes fine at the CLI but Apache won't touch it other than displaying the target script instead of executing it. I've tried httpd.conf directives and .htaccess setting +ExecCGI to no avail...must be some little permissions switch but I cannot seem to trace it...anyone have a suggestion?
-Eucke
Does no Perl work or your own code? without providing any useful information (like code or which public available program you try to use and the according error_log entries) no real answer can be given. And what specific Apache configuration do you use? The cgi scripts are displayed as source implies a broken httpd.conf setup.
Alexander
I am interested in this one too for FC2. Executes fine at the CLI but Apache won't touch it other than displaying the target script instead of executing it. I've tried httpd.conf directives and .htaccess setting +ExecCGI to no avail...must be some little permissions switch but I
cannot
seem to trace it...anyone have a suggestion?
-Eucke
Does no Perl work or your own code? without providing any useful information (like code or which public available program you try to use and the according error_log entries) no real answer can be given. And what specific Apache configuration do you use? The cgi scripts are displayed as source implies a broken httpd.conf setup.
Alexander
Alexander, if I place the script I am chasing under the /var/www/cgi-bin and do a symbolic link Apache will definitely execute the script and it works. Even doing a <Directory> container for the directory I want to execute perl scripts in does not work so it seems like am AllowOveride somewhere is killing CGI execution in any directory but /var/www/cgi-bin. I will continue chasing there...but suggestions are gladly received. ;-)
Brian, try doing what I did...place the script in /var/www/cgi-bin, adjust the permissions and ownership as needed and Sym Link it to where you want it in where your pages are served from. I bet it will work...I'd bet we're chasing the same issue here.
-Eucke
I'm sure the original OP has already done this, but since I've been bitten by this a few times I thought I'd mention it - after making changes to httpd.conf don't forget to restart the webserver before trying your page again :)
Hardy Merrill
--- Eucke Warren euckew@sierraelectronics.com wrote:
I am interested in this one too for FC2.
Executes fine at the CLI but
Apache won't touch it other than displaying the
target script instead of
executing it. I've tried httpd.conf directives
and .htaccess setting
+ExecCGI to no avail...must be some little
permissions switch but I cannot
seem to trace it...anyone have a suggestion?
-Eucke
Does no Perl work or your own code? without
providing any useful
information (like code or which public available
program you try to use
and the according error_log entries) no real
answer can be given. And
what specific Apache configuration do you use? The
cgi scripts are
displayed as source implies a broken httpd.conf
setup.
Alexander
Alexander, if I place the script I am chasing under the /var/www/cgi-bin and do a symbolic link Apache will definitely execute the script and it works. Even doing a <Directory> container for the directory I want to execute perl scripts in does not work so it seems like am AllowOveride somewhere is killing CGI execution in any directory but /var/www/cgi-bin. I will continue chasing there...but suggestions are gladly received. ;-)
Brian, try doing what I did...place the script in /var/www/cgi-bin, adjust the permissions and ownership as needed and Sym Link it to where you want it in where your pages are served from. I bet it will work...I'd bet we're chasing the same issue here.
-Eucke
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
Am Mo, den 08.11.2004 schrieb Eucke Warren um 19:44:
Alexander, if I place the script I am chasing under the /var/www/cgi-bin and do a symbolic link Apache will definitely execute the script and it works. Even doing a <Directory> container for the directory I want to execute perl scripts in does not work so it seems like am AllowOveride somewhere is killing CGI execution in any directory but /var/www/cgi-bin. I will continue chasing there...but suggestions are gladly received. ;-)
-Eucke
Yes, it sounds like a misconfiguration. Please see
http://httpd.apache.org/docs-2.0/howto/cgi.html
for details about CGI setup with Apache2. If you have specific questions feel free to ask. I think in your case you want something like
<Directory /path/to/somedir> Options +ExecCGI </Directory>
Alexander
On Mon, 8 Nov 2004 10:04:30 -0800, Eucke Warren euckew@sierraelectronics.com wrote:
----- Original Message ----- From: "Brian McDonald" bmcd@hawk.igs.net To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Monday, November 08, 2004 6:34 AM Subject: RE: Perl errors
Does any one have any ideas why I cannot run Perl scripts under apache. The Perl script runs fine at the command line.
TY Brian
I am interested in this one too for FC2. Executes fine at the CLI but Apache won't touch it other than displaying the target script instead of executing it. I've tried httpd.conf directives and .htaccess setting +ExecCGI to no avail...must be some little permissions switch but I cannot seem to trace it...anyone have a suggestion?
-Eucke
It sounds like there might be some configuration errors, and possibly some file location/permission problems. Post your config w/o comments, and we might be able to give a little more directed solution.
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list