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 11:48:58 GMT
Hi!

Am Montag, 12. Mai 2003 13:42 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)
>
> The fact that you get a 500 indicates that the program is executing, so
> the problem is probably not with the configuration of apache. Rather,
> there is something about the new location which the program doesn't
> like: Do you access any files using relative paths, for example? 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.

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


Mime
View raw message