You can see the file permissions for a directory or file with "ls -l" in the unix terminal
This page explains how to read the output better than I can here:
http://www.dartmouth.edu/~rc/help/faq/permissions.html

The web server runs as a dedicated user, usually "apache" (at least on the two CentOS machines I just checked)

If a directory isn't owned by that user, it can write to it only if the directory is writable to all users.

In the example below, only the directory called "Reports" can be writable by the web server (assuming it can read the directories above it to find it)

ls -l html

total 3560
drwxrwxr-x  6 dotan prd    4096 Sep 30 17:18 css
drwxrwxr-x  5 dotan prd   12288 Sep 30 16:29 images
-rw-rw-r--  1 dotan prd  320750 Jan 16  2011 jalviewApplet.jar
drwxrwxrwx  2 dotan prd    4096 Aug 28 18:14 Reports



On 10/07/2013 01:41 PM, Svetlana Degtiar wrote:

Hi Again,

 

How can I check if the directories are writable by the web server?

 

Thanks,

Sveta.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Dotan Dimet
Sent: Sunday, October 06, 2013 6:26 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Apache::ASP::Session=HASH problem

 

Hi Sveta,

Looking at the code for Apache::ASP::Session (because it doesn't have much documentation...), I see it wants to use a DBM file to save the state. There are a bunch of config variables described in the documentation for Apache::ASP for managing session and state (the Apache::ASP::Session class delegated to an Apache::ASP::State class for storing stuff).

So, the standard web debugging questions apply:
- what's your config?
- are the files/directories writable by the web server?
- did you restart the web server after changing the config?

Hope this helps,
  Dotan


On 10/06/2013 05:21 PM, Svetlana Degtiar wrote:

 

Hi,

 

Sure, something simple.

 

$Session-> {"test"} ="test1";

Print STDERR  Dumper ($Session);

 

Prints : $VAR1 = bless( {}, 'Apache::ASP::Session' );

 

Sveta.

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Gabor Szabo
Sent: Sunday, October 06, 2013 4:47 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Apache::ASP::Session=HASH problem

 

Hi Sveta,

 

nice to see you here!

 

Maybe someone will already have an idea based on this information,

but if not,  could you please send a minimal example that you expect to

work but does not?

 

Gabor

 

On Sun, Oct 6, 2013 at 4:37 PM, Svetlana Degtiar

<[email protected]> wrote:

> Hi,

> 

> 

> 

> I have a small problem with Apache::ASP::Session maybe someone can help?

> 

> 

> 

> Perl 5.16

> 

> Centos 6.2

> 

> Trying to upgrade from perl 5.6…

> 

> 

> 

> After installing all needed modules,

> 

> I try to write key and value into the Session hash object.

> 

> The print shows no value, the hash is empty…

> 

> 

> 

> There is no error message, nothing just an empty hash.

> 

> What can it be? Any ideas?

> 

> 

> 

> Thanks,

> 

> Sveta.

> 

> 

> 

_______________________________________________

Perl mailing list

[email protected]

http://mail.perl.org.il/mailman/listinfo/perl




_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Email secured by Check Point



_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to