httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Haron <unixfr...@comcast.net>
Subject Re: [users@httpd] Permissions Problem
Date Mon, 26 Jan 2004 04:12:42 GMT

On Sunday, January 25, 2004, at 09:08 PM, BAO RuiXian wrote:

>
>
> Chuck Haron wrote:
>
>>
>>> There seems no more additional information in the log entries. Have 
>>> you tried to run your cgi script from the command line? On your 
>>> server, change to directory /srv/www/cgi-bin/, then type 'su root' 
>>> to be root, then type 'su apache' or 'su nobody' (dependent on your 
>>> configuration, if you are not sure, you can find it from your 
>>> httpd.conf after the directive User). Now you are the web user, type 
>>> './spellchecker.pl' to see what happens.
>>>
> It seems okay running from the command line. Again, can  you tell in 
> what user you run it, nobody, apache, root, or something else? Better, 
> you can send the output of the command 'ls -l spellchecker.pl'.
>

The User directive in httpd.conf is set to wwwrun.

ls output is: -rwxr-xr-x    1 root     root         3.9K Jan 25 17:29 
spellchecker.pl

> Best
>
> Bao
>
>>
>> I get the following when I run ./spellchecker.pl:
>> Content-type: text/html
>>
>> <html>
>> <head>
>> <link rel="stylesheet" type="text/css" 
>> href="/speller/spellerStyle.css"/>
>> <script src="/speller/wordWindow.js"></script>
>> <script>
>> var suggs = new Array();
>> var words = new Array();
>> var textinputs = new Array();
>> var error;
>> Error: No word lists can be found for the language "en_US".
>> error = 'System error: Aspell program execution failed (`aspell -a 
>> --lang=en_US< /tmp/cAwzRfcnsW/3DPT2LlxkH`)';
>> var wordWindowObj = new wordWindow();
>> wordWindowObj.originalSpellings = words;
>> wordWindowObj.suggestions = suggs;
>> wordWindowObj.textInputs = textinputs;
>>
>> function init_spell() {
>>         // check if any error occured during server-side processing
>>         if( error ) {
>>                 alert( error );
>>         } else {
>>                 // call the init_spell() function in the parent 
>> frameset
>>                 if (parent.frames.length) {
>>                         parent.init_spell( wordWindowObj );
>>                 } else {
>>                         error = "This page was loaded outside of a 
>> frameset. ";
>>                         error += "It might not display properly";
>>                         alert( error );
>>                 }
>>         }
>> }
>>
>> </script>
>>
>> </head>
>> <body onLoad="init_spell();">
>>
>> <script>
>> wordWindowObj.writeBody();
>> </script>
>>
>> </body>
>> </html>
>>
>>> Best
>>>
>>> Bao
>>>
>>>>
>>>> Some log entries:
>>>>
>>>> error_log
>>>> [Sun Jan 25 17:58:44 2004] [error] [client 172.31.3.2] client 
>>>> denied by server configuration: /srv/www/cgi-bin/spellchecker.pl
>>>>
>>>> access_log
>>>> 172.31.3.2 - - [25/Jan/2004:17:58:44 -0700] "POST 
>>>> /cgi-bin/spellchecker.pl HTTP/1.1" 403 312
>>>>
>>>>
>>>>     Best
>>>>
>>>>     Bao
>>>>
>>>>
>>>>         Apache/1.3.26 Server at sloxmail.cognitive.com Port 80
>>>>         ---
>>>>
>>>>         httpd.conf contains following
>>>>         ---
>>>>         <Directory "/srv/www/cgi-bin">
>>>>         AllowOverride None
>>>>         Options None
>>>>         Order allow,deny
>>>>         Allow from all
>>>>         </Directory>
>>>>         ---
>>>>
>>>>         System permissons on '/srv/www/cgi-bin' and
>>>>         '/srv/www/cgi-bin/spellchecker.pl' are set to 755.
>>>>
>>>>
>>
>
>
> ---------------------------------------------------------------------
> 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