httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leander Jedamus <jeda...@Fh-Worms.de>
Subject Re: [users@httpd] Perl-script, UserDir and Internal Server Error
Date Mon, 12 May 2003 12:24:12 GMT
Hi!

Am Montag, 12. Mai 2003 14:08 schrieb Boyle Owen:
> >-----Original Message-----
>
> From: Leander Jedamus [mailto:jedamus@Fh-Worms.de]
>
> >> >I have a little problem here. Wenn I run a Perl-script in the
> >> >/cgi-bin-Directory of the server, everything is okay. When I
> >> >start the same script in the UserDir, it does not work. I get
> >> >an Internal Server Error. (error_log says
> >> >[client xxx.xxx.xxx.xxx] Premature end of script headers: xxx.pl)
> >>
> >> What happens if you try to execute
> >> /home/bwl/jedamus/Publicite/cgi-bin/xxx.pl
> >> from the command line?
> >
> >This does work for both users jedamus and apache.
>
> Are you certain of the following statements:
>
> - diff /export/www/WORMS/cgi-bin/xxx.pl
> /home/bwl/jedamus/Publicite/cgi-bin/xxx.pl returns no differences. -
> /export/www/WORMS/cgi-bin/xxx.pl works from command line
> - /home/bwl/jedamus/Publicite/cgi-bin/xxx.pl from works from the command
> line - http://your-server/cgi-bin/xxx.pl works
> - http://your-server/~jedamus/cgi-bin/xxx.pl fails with 500.
>
> If so, you need to activate the ScriptLog. Check docs for details for
> details, but basically;
>
> - as user apache: cd logs, touch script_log
> - ScriptLog logs/script_log
> - restart apache, hit the error, check the log.

The script_log says:
%request
Host: www.fh-worms.de
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
Accept-Language: de, en-us;q=0.50
Accept-Encoding: gzip, deflate, compress;q=0.9
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive
%response

What's that? Why is there no response???

Thanks,
Leander Jedamus

>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>
> >Thanks,
> >Leander Jedamus
> >
> >> Rgds,
> >> Owen Boyle
> >> Disclaimer: Any disclaimer attached to this message may be ignored.
> >>
> >> >The Rights for user jedamus in the directory
> >> >/home/bwl/jedamus/Publicite/cgi-bin
> >> >are:
> >> >drwx--x--x   2 jedamus  student      512 May  5 16:42 .
> >> >drwxr-xr-x   5 jedamus  student     2048 May  5 16:32 ..
> >> >-rwxr-xr-x   1 jedamus  student    11425 May  5 16:20 xxx.pl
> >> >
> >> >I can execute this script as user apache (which is the uid for
> >> >the httpd) in the console, not from /~jedamus/cgi-bin/xxx.pl.
> >> >
> >> >Here the interesting parts from httpd.conf:
> >> >----8<----8<----8<----8<----8<----8<----8<----8<----8<----
> >> >DocumentRoot "/export/www/WORMS/doc"
> >> >...
> >> ><Directory />
> >> >    AddHandler server-parsed .html
> >> >    Options FollowSymLinks
> >> >    AllowOverride All
> >> ></Directory>
> >> >...
> >> ><Directory "/export/www/WORMS/doc">
> >> >    AddHandler server-parsed .html
> >> >    Options Indexes FollowSymLinks MultiViews +Includes
> >> >    AllowOverride All
> >> >    Order allow,deny
> >> >    Allow from all
> >> ></Directory>
> >> >...
> >> ><Directory /home>
> >> >    Options ExecCGI FollowSymLinks
> >> >    AllowOverride All
> >> ></Directory>
> >> >...
> >> >UserDir Publicite
> >> >...
> >> ><Directory /home/*/cgi-bin>
> >> >  Options ExecCGI
> >> >  SetHandler cgi-script
> >> ></Directory>
> >> >...
> >> >ScriptAlias /cgi-bin/ "/export/www/WORMS/cgi-bin/"
> >> >    <Directory "/export/www/WORMS/cgi-bin">
> >> >        AllowOverride None
> >> >        Options ExecCGI FollowSymLinks
> >> >        Order allow,deny
> >> >        Allow from all
> >> >    </Directory>
> >> >...
> >> >AddHandler cgi-script .cgi .pl .sh
> >> >----8<----8<----8<----8<----8<----8<----8<----8<----8<----
> >> >
> >> >
> >> >Can anybody help me, please?
> >> >
> >> >Thanks in advance
> >> >Leander Jedamus
> >> >
> >> >--
> >> >Leander Jedamus
> >> >Presse- und Öffentlichkeitsarbeit
> >> >FH Worms
> >> >Erenburger Str. 19
> >> >67549 Worms
> >> >+49 6241 509-172
> >>
> >>---------------------------------------------------------------------
> >>
> >> >The official User-To-User support forum of the Apache HTTP
> >> >Server Project.
> >> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> >For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >> This message is for the named person's use only. It may contain
> >> confidential, proprietary or legally privileged information. No
> >> confidentiality or privilege is waived or lost by any
> >
> >mistransmission.
> >
> >> If you receive this message in error, please notify the
> >
> >sender urgently
> >
> >> and then immediately delete the message and any copies of it
> >
> >from your
> >
> >> system. Please also immediately destroy any hardcopies of
> >
> >the message.
> >
> >> You must not, directly or indirectly, use, disclose,
> >
> >distribute, print,
> >
> >> or copy any part of this message if you are not the intended
> >
> >recipient.
> >
> >> The sender's company reserves the right to monitor all e-mail
> >> communications through their networks. Any views expressed in this
> >> message are those of the individual sender, except where the message
> >> states otherwise and the sender is authorised to state them to be the
> >> views of the sender's company.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP
> >
> >Server Project.
> >
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >
> >--
> >Leander Jedamus
> >Presse- und Öffentlichkeitsarbeit
> >FH Worms
> >Erenburger Str. 19
> >67549 Worms
> >+49 6241 509-172
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP
> >Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
Leander Jedamus
Presse- und Öffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message