Save Stack Problem

Jan Schenkel janschenkel at yahoo.com
Tue Aug 3 16:18:15 EDT 2004


--- Kenji Kojima <index at kenjikojima.com> wrote:
> Brian,
> Thanks, your advices.
> 
> It does not work on Mac OSX, but works on Windows.
> 
> I made a new stack and put it into the
> CGI-Executables folder. And 
> tried CGI script, but did not work.
> How can I make grant write access to the
> CGI-Executables folder? I 
> wanted to make a address book which was written from
> Web browser.
> 
> I installed same CGI script and a stack onto Windows
> XP and Apache 2 
> server.
> I changed only one line that was:
> #! C:/Apache Group/apache2/bin/revolution.exe
> And did not set permissions of the stack.
> It worked.
> 
> I want to use Mac OSX, because Windows server is not
> mine.
> Can anybody explain why I cannot save a stack on Mac
> OSX?
> 
> Thanks,
> --
> Kenji Kojima
> 

Hi Kenji,

It is probably working on Windows because Windows is
not as strict as MacOSX when it comes to permissions.

The reason it fails at the point of making a backup
file, is that when the engine saves a stack, it first
makes a copy of the original stack, so that if
corruption occurs, you can retrieve your last saved
version from thart backup file.
But if the engine doesn't have the right to write
files in the directory where the stack resides, it
cannot create the backup.

It is strongly recommended not to give write access to
(a folder in) the cgi-excecutables folder. It is best
to keep the data stack in a separate folder that isn't
shared with the rest of the world, and set the right
owner and permissions.

You cazn do this from the Finder using the 'Get Info'
item in the 'File' menu. In this window you will see a
section 'Owner & Privileges' where you can change the
owner (if you happen to be the administrator of the
machine)

If my memory serves me well, you'll want to set the
owner to the internal 'www' user, which is what the
web server process Apache is running as.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the use-livecode mailing list