Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorsito
     
    Hi everyone,

    I am trying to follow the booklink tutorial but am now stuck right after the section on scaffolding. Basically I am seeing this error when I try to access author and book models:

    "--->Please change file/dir permissions or enable FTP file handling by setting the following on your config/development.php file"

    I am running everything on a local Ubuntu machine, and the files are installed in the following locations.

    /home/user/php-framework/akelos <-- the files I downloaded from akelos.org using svn
    /home/booklink

    Userdir and RewriteBase are correctly enabled, so the URL to access booklink is http://localhost/~user/booklink/

    I have tried to create a development.php in /home/booklink/config (by the way, should this be /home/booklink/config/environments instead because I can see another development.php in there?), but what is the correct syntax for this? E.g. ftp://user:pass@localhost/home/user/php-framework/akelos?

    Any help is greatly appreciated!

    Thanks!
    • CommentAuthorKaste
     

    yes it should be config/environments/development.php

    most probably akelos tries to write to your booklink/tmp dir. maybe to put some compiled views in it. before trying ftp, have you checked your file-permissions?

    • CommentAuthorsito
     
    Hi Kaste,

    By "file permissions" did you mean doing what was mentioned in step 3 here?

    http://wiki.akelos.org/gettingstarted

    I was actually under the impression that as a general rule it's not a good idea to make entire folders writeable (g+w), hence the attempt to use ftp. Perhaps you can point me to some documentation/discussion on how to create a secure Akelos application? Thanks!

    ps. By the way, I did change the permissions and things do work after that.
    • CommentAuthorKaste
     

    only the tmp-dir under the root should be writable. circa since commit ~550.

    • CommentAuthorKaste
     

    ++ root/log

    ++ root/test/tmp