Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoredward
     
    In the file config.php.txt, I include my config.php from the Editam install on my production server. The difference is that it contains some comments with the echo statement so that I can get output and find out what is being loaded and what is not.

    I had started a previous post but in the Editam google group. Please read it to get a bit of background with my problem: http://groups.google.com/group/editam/browse_thread/thread/c8bf063c3d8931e6

    I found out that the file config/config.php is not being loaded through the include_once statement. you can take a look at the attachment in this post . you can see 4.- was not included.

    It seems to be a permission problem. I don't want to have Editam edit files or write files through FTP. the ftp configuration is not working anyway, as I have tried to set it up but it didn't work. I wish to have Editam edit the files locally.

    My question is, what permissions must be set for the files being uploaded to the server? Also, is there a place where Editam configures the username:groupname that it runs as? I have checked the files on the server and they are set up with the username of the ftp account- this is correct. I can't figure out what else is stopping my installation from working, other than seeing that the config.php is not being included.

    I have worked with Editam in my local computer and everything is fine. The Apache server is setup as my local username. On the production server where I'm having problems with, I know that the Apache server runs as a different user than my ftp upload account. Could that be the problem? For example, let's say the production server is running as apache, and my uploads are uploaded with the username edward. Would that be a problem for Editam?

    I should also add that the Editam installation was uploaded to the production server into the httpdocs folder, which is the ROOTDOC.

    I have been trying to figure this out already for a week, but I can't solve it. Any help?

    Edit: it seems that the attachment button in the forum is not uploading files. I'll paste the contents on the google group post.
    •  
      CommentAuthorbermi
     

    Edward, sorry for not replying to your message on the mailing list before, I've been really busy lately.

    Editam as Akelos need to write to the different paths within your application. This will be consolidated into a single writable path so you don't have to CHMOD all your files.

    I had to time to go over the LARGE messages at the mailing list, but thee problem seems familiar/common, apache can't write files in the userspace.

    Akelos has a way to overcome this problem on shared hosting where you don't have control over user permissions and the server runs as a different user. Manipulating files via FTP.

    You just need to setup your FTP details in your config.php file like:

    $ftp_settings = 'ftp://user:pass@example/'; 
    

    if the user name includes an @ you will have to replace it with a +

    If Editam is not on the initial path, your will need to set it up like:

    $ftp_settings = 'ftp://user:pass@example/path/to/editam/'; 
    

    If I were you, I would try a fresh install without skipping the FTP step (retry until you get it right). It is crucial if do don't want to CHMOD all the directories before installing.

    Please remember that Editam is not recommended for production use yet, and unfortunately I don't have the time for providing support for it at its current stage.

    • CommentAuthoredward
     
    Hi bermi,

    Don't worry about not replying quick. I appreciate it that you can help me when you do have time.

    I went back to the server and I still can't get the ftp configuration working. I have tried different combinations. To make sure, I tried the same combinations on Transmit(ftp client) and it worked on Transmit, but still not on Editam. What I would like is to get some sort of debugging information on this step of configuration so that I can know exactly what the error is. At this moment, all I get is this:

    The installer could not create a test file at config/test_file.txt, so you should check if the user that is running the web server has enough privileges to write files inside the installation directory.

    How and where can I activate the debugging messages?

    Thanks bermi,
    • CommentAuthoredward
     
    I don't know if I'm wrong, but on /includes/editam/editam_setup.php around line 683, there is a statement $ftp_path = .... I don't see that ftp_path variable used for anything in that same function.
    •  
      CommentAuthorbermi
     

    $ftp_path is used 4 lines bellow its definition on define('AK_FTP_PATH', $ftp_path);

    Lets keep this Editam discussion on the ticket you started on the Editam trac ;)