 |
|
 |
|
Next: Redirect if SSL is disabled
|
| Author |
Message |
External

Since: Oct 22, 2003 Posts: 8
|
(Msg. 1) Posted: Mon Nov 10, 2003 2:37 pm
Post subject: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi Everyone,
I am having trouble running perl scripts from my user directories.
Here is my userdir setup in my httpd.conf file
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
I have ExecCGI in there, but for some reason I can even run a simple
perl script such as the following
#!/usr/bin/perl
print <<"DOC";
content-type: text/html\n\n
print <html>\n
print <h1>Hello World</h1>\n
print </html>\n
DOC
Anyone have any ideas why? >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
External

Since: Nov 10, 2003 Posts: 5
|
(Msg. 2) Posted: Mon Nov 10, 2003 2:57 pm
Post subject: Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Materialised" <materialised RemoveThis @privacy.net> wrote in message
news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
> Hi Everyone,
>
> I am having trouble running perl scripts from my user directories.
> Here is my userdir setup in my httpd.conf file
>
> UserDir public_html
>
> <Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit Indexes
> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
> <Limit GET POST OPTIONS PROPFIND>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order deny,allow
> Deny from all
> </LimitExcept>
> </Directory>
>
> I have ExecCGI in there, but for some reason I can even run a simple
> perl script such as the following
>
> #!/usr/bin/perl
>
>
> print <<"DOC";
> content-type: text/html\n\n
> print <html>\n
> print <h1>Hello World</h1>\n
> print </html>\n
>
>
> DOC
Why are you putting print and \n in a here doc? That should be;
print <<DOC;
Content-type: text/html
<html>
<h1>Hello World</h1>
</html>
DOC
A newline in a heredoc is a literal newline, you don't need to add \n, and
the "print"'s are certainly not necessary.
You may be able to run that script now, I don't know, you didn't tell us
what kind of error you were getting.
--
Brian Wakem<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
External

Since: Oct 22, 2003 Posts: 8
|
(Msg. 3) Posted: Mon Nov 10, 2003 3:10 pm
Post subject: Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Brian Wakem wrote:
> "Materialised" <materialised.RemoveThis@privacy.net> wrote in message
> news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
>
>>Hi Everyone,
>>
>>I am having trouble running perl scripts from my user directories.
>>Here is my userdir setup in my httpd.conf file
>>
>>UserDir public_html
>>
>><Directory /home/*/public_html>
>> AllowOverride FileInfo AuthConfig Limit Indexes
>> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
>> <Limit GET POST OPTIONS PROPFIND>
>> Order allow,deny
>> Allow from all
>> </Limit>
>> <LimitExcept GET POST OPTIONS PROPFIND>
>> Order deny,allow
>> Deny from all
>> </LimitExcept>
>></Directory>
>>
>>I have ExecCGI in there, but for some reason I can even run a simple
>>perl script such as the following
>>
>>#!/usr/bin/perl
>>
>>
>>print <<"DOC";
>>content-type: text/html\n\n
>>print <html>\n
>>print <h1>Hello World</h1>\n
>>print </html>\n
>>
>>
>>DOC
>
>
>
> Why are you putting print and \n in a here doc? That should be;
>
> print <<DOC;
> Content-type: text/html
>
>
> <html>
> <h1>Hello World</h1>
> </html>
> DOC
>
> A newline in a heredoc is a literal newline, you don't need to add \n, and
> the "print"'s are certainly not necessary.
>
> You may be able to run that script now, I don't know, you didn't tell us
> what kind of error you were getting.
>
The error im getting is
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, root.RemoveThis@purehacker.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Server
All permissions are setup correctly though.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
External

Since: Nov 10, 2003 Posts: 5
|
(Msg. 4) Posted: Mon Nov 10, 2003 3:31 pm
Post subject: Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Materialised" <materialised DeleteThis @privacy.net> wrote in message
news:bonv8q$1glnsd$1@ID-204621.news.uni-berlin.de...
> Brian Wakem wrote:
> > "Materialised" <materialised DeleteThis @privacy.net> wrote in message
> > news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
> >
> >>Hi Everyone,
> >>
> >>I am having trouble running perl scripts from my user directories.
> >>Here is my userdir setup in my httpd.conf file
> >>
> >>UserDir public_html
> >>
> >><Directory /home/*/public_html>
> >> AllowOverride FileInfo AuthConfig Limit Indexes
> >> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
> >> <Limit GET POST OPTIONS PROPFIND>
> >> Order allow,deny
> >> Allow from all
> >> </Limit>
> >> <LimitExcept GET POST OPTIONS PROPFIND>
> >> Order deny,allow
> >> Deny from all
> >> </LimitExcept>
> >></Directory>
> >>
> >>I have ExecCGI in there, but for some reason I can even run a simple
> >>perl script such as the following
> >>
> >>#!/usr/bin/perl
> >>
> >>
> >>print <<"DOC";
> >>content-type: text/html\n\n
> >>print <html>\n
> >>print <h1>Hello World</h1>\n
> >>print </html>\n
> >>
> >>
> >>DOC
> >
> >
> >
> > Why are you putting print and \n in a here doc? That should be;
> >
> > print <<DOC;
> > Content-type: text/html
> >
> >
> > <html>
> > <h1>Hello World</h1>
> > </html>
> > DOC
> >
> > A newline in a heredoc is a literal newline, you don't need to add \n,
and
> > the "print"'s are certainly not necessary.
> >
> > You may be able to run that script now, I don't know, you didn't tell us
> > what kind of error you were getting.
> >
> The error im getting is
>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator, root DeleteThis @purehacker.com and inform
> them of the time the error occurred, and anything you might have done
> that may have caused the error.
>
> More information about this error may be available in the server error
log.
> Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Server
>
> All permissions are setup correctly though.
Change the script as I suggested, you are not printing a proper header which
will cause the Internal Sever Error message that you are seeing.
--
Brian Wakem<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
External

Since: Oct 22, 2003 Posts: 8
|
(Msg. 5) Posted: Mon Nov 10, 2003 5:56 pm
Post subject: Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Brian Wakem wrote:
> "Materialised" <materialised.DeleteThis@privacy.net> wrote in message
> news:bonv8q$1glnsd$1@ID-204621.news.uni-berlin.de...
>
>>Brian Wakem wrote:
>>
>>>"Materialised" <materialised.DeleteThis@privacy.net> wrote in message
>>>news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
>>>
>>>
>>>>Hi Everyone,
>>>>
>>>>I am having trouble running perl scripts from my user directories.
>>>>Here is my userdir setup in my httpd.conf file
>>>>
>>>>UserDir public_html
>>>>
>>>><Directory /home/*/public_html>
>>>> AllowOverride FileInfo AuthConfig Limit Indexes
>>>> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
>>>> <Limit GET POST OPTIONS PROPFIND>
>>>> Order allow,deny
>>>> Allow from all
>>>> </Limit>
>>>> <LimitExcept GET POST OPTIONS PROPFIND>
>>>> Order deny,allow
>>>> Deny from all
>>>> </LimitExcept>
>>>></Directory>
>>>>
>>>>I have ExecCGI in there, but for some reason I can even run a simple
>>>>perl script such as the following
>>>>
>>>>#!/usr/bin/perl
>>>>
>>>>
>>>>print <<"DOC";
>>>>content-type: text/html\n\n
>>>>print <html>\n
>>>>print <h1>Hello World</h1>\n
>>>>print </html>\n
>>>>
>>>>
>>>>DOC
>>>
>>>
>>>
>>>Why are you putting print and \n in a here doc? That should be;
>>>
>>>print <<DOC;
>>>Content-type: text/html
>>>
>>>
>>><html>
>>><h1>Hello World</h1>
>>></html>
>>>DOC
>>>
>>>A newline in a heredoc is a literal newline, you don't need to add \n,
>
> and
>
>>>the "print"'s are certainly not necessary.
>>>
>>>You may be able to run that script now, I don't know, you didn't tell us
>>>what kind of error you were getting.
>>>
>>
>>The error im getting is
>>
>>Internal Server Error
>>
>>The server encountered an internal error or misconfiguration and was
>>unable to complete your request.
>>
>>Please contact the server administrator, root.DeleteThis@purehacker.com and inform
>>them of the time the error occurred, and anything you might have done
>>that may have caused the error.
>>
>>More information about this error may be available in the server error
>
> log.
>
>>Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Server
>>
>>All permissions are setup correctly though.
>
>
>
> Change the script as I suggested, you are not printing a proper header which
> will cause the Internal Sever Error message that you are seeing.
>
I did change as you suggested, and that was the error message I got.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
External

Since: Nov 10, 2003 Posts: 5
|
(Msg. 6) Posted: Mon Nov 10, 2003 6:11 pm
Post subject: Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Materialised" <materialised.DeleteThis@privacy.net> wrote in message
news:boo8v7$1gncm4$2@ID-204621.news.uni-berlin.de...
> Brian Wakem wrote:
> > "Materialised" <materialised.DeleteThis@privacy.net> wrote in message
> > news:bonv8q$1glnsd$1@ID-204621.news.uni-berlin.de...
> >
> >>Brian Wakem wrote:
> >>
> >>>"Materialised" <materialised.DeleteThis@privacy.net> wrote in message
> >>>news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
> >>>
> >>>
> >>>>Hi Everyone,
> >>>>
> >>>>I am having trouble running perl scripts from my user directories.
> >>>>Here is my userdir setup in my httpd.conf file
> >>>>
> >>>>UserDir public_html
> >>>>
> >>>><Directory /home/*/public_html>
> >>>> AllowOverride FileInfo AuthConfig Limit Indexes
> >>>> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
> >>>> <Limit GET POST OPTIONS PROPFIND>
> >>>> Order allow,deny
> >>>> Allow from all
> >>>> </Limit>
> >>>> <LimitExcept GET POST OPTIONS PROPFIND>
> >>>> Order deny,allow
> >>>> Deny from all
> >>>> </LimitExcept>
> >>>></Directory>
> >>>>
> >>>>I have ExecCGI in there, but for some reason I can even run a simple
> >>>>perl script such as the following
> >>>>
> >>>>#!/usr/bin/perl
> >>>>
> >>>>
> >>>>print <<"DOC";
> >>>>content-type: text/html\n\n
> >>>>print <html>\n
> >>>>print <h1>Hello World</h1>\n
> >>>>print </html>\n
> >>>>
> >>>>
> >>>>DOC
> >>>
> >>>
> >>>
> >>>Why are you putting print and \n in a here doc? That should be;
> >>>
> >>>print <<DOC;
> >>>Content-type: text/html
> >>>
> >>>
> >>><html>
> >>><h1>Hello World</h1>
> >>></html>
> >>>DOC
> >>>
> >>>A newline in a heredoc is a literal newline, you don't need to add \n,
> >
> > and
> >
> >>>the "print"'s are certainly not necessary.
> >>>
> >>>You may be able to run that script now, I don't know, you didn't tell
us
> >>>what kind of error you were getting.
> >>>
> >>
> >>The error im getting is
> >>
> >>Internal Server Error
> >>
> >>The server encountered an internal error or misconfiguration and was
> >>unable to complete your request.
> >>
> >>Please contact the server administrator, root.DeleteThis@purehacker.com and inform
> >>them of the time the error occurred, and anything you might have done
> >>that may have caused the error.
> >>
> >>More information about this error may be available in the server error
> >
> > log.
> >
> >>Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Server
> >>
> >>All permissions are setup correctly though.
> >
> >
> >
> > Change the script as I suggested, you are not printing a proper header
which
> > will cause the Internal Sever Error message that you are seeing.
> >
> I did change as you suggested, and that was the error message I got.
>
The next step is to look in Apache's error_log - that should give you a good
idea of what's going on.
--
Brian Wakem<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 |
|
| Back to top |
|
 |  |
| Related Topics: | Mod_perl returning perl scripts! - Hi, I'm using Apache with Mod_Perl configured. Perl scripts prepare wml cards to return to a request. This works fine if requests come from mobile phones. However, if I type the url into my web browser pointing to a perl script then the script get sent....
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...
unix > Apache > Tomcat - I am installing tomcat on a solaris9 box runnign apache.... I placed the following command in the startup.sh script JAVA_HOME="/usr/local/j2sdk1.4.1_05"; export JAVA_HOME; To make sure that the JAVA_HOME variable is set to the correct locatio...
Apache (unix) + mod_ssl + mod_gzip not compressing anything - Hi. I have been trying to get mod_gzip and mod_ssl to work together on Apache. I have been able to get mod_gzip to compress stuff if I am not useing ssl. I can also get mod_ssl to work, but then the ssl is working, then nothing gets compressed. (I..
apache 2.0.47 and perl/cgi - Hello, I have installed apache 2.0.47 on my linux red hat 9.0. ../configure --prefix=/etc/httpd --enable-rewrite=shared --enable-speling=shared --enable-cgi=shared --enable-alias=shared but the cgi script not work..... Bye, Massimiliano |
|
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
|
|
|
|
 |
|
|