Problem finding /usr/bin/perl

I am running a Red Hat Linux 7.3 server, with Perl 5.6 installed in /usr/bin/perl (I know this for a fact), and Apache 1.3 installed in /etc/httpd (I also know this for a fact).

I am trying to configure Apache to use the following command for mod_ssl:

Code:
SSLPassPhraseDialog exec:/usr/sbin/mykeys
The script at /usr/sbin/mykeys looks like this:
Code:
#!/usr/bin/perl

print "MY PRIVATE SSL KEY HERE";
However, when I restart Apache, I get the following error (in my Apache error.log file):
/bin/sh: /usr/sbin/mod_sslkey: /usr/bin/perl: bad interpreter: Permission denied
[Sun Feb 15 17:08:22 2004] [error] mod_ssl: Init: Pass phrase incorrect (OpenSSL library error follows)

Any ideas why Bash is not recognizing the path to perl?

 

 

 

 

Top