LetoDMS Community Forum
error uploading files - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: error uploading files (/showthread.php?tid=5)

Pages: 1 2


RE: error uploading files - administrator - 01-28-2010

can you please post your config file please

Thanks

LetoDMS


RE: error uploading files - akae - 01-28-2010

Of course!


Code:
class Settings
{
        // Name of site -- used in the page titles. Default: MyDMS
        var $_siteName = "InsideProject";

        // Message to display at the bottom of every page.
        var $_footNote = "";

        // Default page on login. Defaults to out/out.ViewFolder.php
        var $_siteDefaultPage = "";

        //IDs of admin-user, guest-user and root-folder (no need to change)
        var $_adminID = 1;
        var $_guestID = 2;
        var $_rootFolderID = 1;

        //If you don't want anybody to login as guest, set the following line to false
        var $_enableGuestLogin = false;

        // Restricted access: only allow users to log in if they have an entry in
        // the local database (irrespective of successful authentication with LDAP).
        var $_restricted = false;

        // Strict form checking. If set to true, then all fields in the form will
        // be checked for a value. If set to false, then (most) comments and
        // keyword fields become optional. Comments are always required when
        // submitting a review or overriding document status.
        var $_strictFormCheck = false;

        //path to where mydms is located
        var $_rootDir = "/var/www/vhosts/insideproject.eu/httpdocs/mydms/";

        // The relative path in the URL, after the domain part. Do not include the
        // http:// prefix or the web host name. e.g. If the full URL is
        // http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
        // If the URL is http://www.example.com/, set $_httpRoot = "/".
        var $_httpRoot = "/mydms/";

        // Where the uploaded files are stored (best to choose a directory that
        // is not accessible through your web-server)
        var $_contentDir = "/insideproject.eu/httpdocs/mydms/content/";

        // To work around limitations in the underlying file system, and to
        // preserve backwards compatibility, a new directory structure has been
        // devised that exists within the content directory ($_contentDir). This
        // requires a base directory from which to begin. Usually leave this to the
        // default setting, 1048576, but can be any number or string that does not
        // already exist within $_contentDir.
        //
        // To continue using the old directory structure, set $_useLegacyDir = true;
        var $_useLegacyDir=false;
        var $_contentOffsetDir = "1048576";
        // Maximum number of sub-directories per parent directory. Default: 32700.
        var $_maxDirID = 32700;

        //default language (name of a subfolder in folder "languages")
        var $_language = "English";

        //users are notified about document-changes that took place within the last $_updateNotifyTime seconds
        var $_updateNotifyTime = 86400; //means 24 hours

        //files with one of the following endings can be viewed online
        var $_viewOnlineFileTypes = array(".txt", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg");

        //enable/disable converting of files
        var $_enableConverting = true;

        //default style (name of a subfolder in folder "styles")
        var $_theme = "blue";
        // Workaround for page titles that go over more than 2 lines.
        var $_titleDisplayHack = true;

        // -------------------------------- Database-Setup --------------------------------------------

        //Path to adodb
        var $_ADOdbPath = "/var/www/vhosts/insideproject.eu/httpdocs/mydms/adodb5/";

        //DB-Driver used by adodb (see adodb-readme)
        var $_dbDriver = "mysql";

        //DB-Server
        var $_dbHostname = "localhost";

        //database where the tables for mydms are stored (optional - see adodb-readme)
        var $_dbDatabase = "mydb";

        //username for database-access
        var $_dbUser = "myuser";

        //password for database-access
        var $_dbPass = "mypassword";

        // -------------------------------- LDAP Authentication Setup --------------------------------------------

        // var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
        // var $_ldapPort = 389; // Optional.
        // var $_ldapBaseDN = "";

        function Settings()
        {
                //files with one of the following endings will be converted with the given commands
                //for windows users
                //$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
                //                                                               ".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
                //                                                               ".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
                // For linux users
                 $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
        }
}
$settings = new Settings();
?>

The var $_contentDir is just as you said, and that solved the open_basedir error, but there is a new one creating a new dir. There are other PHP apps running on that server with no trouble,


RE: error uploading files - administrator - 01-28-2010

var $_rootDir = "/var/www/vhosts/insideproject.eu/httpdocs/mydms/";

Do it like this :

var $_rootDir = "/insideproject.eu/httpdocs/mydms/";

see if that gives you a error msg

thanks

LetoDMS


RE: error uploading files - akae - 01-28-2010

Lots of errors before trying to upload a file.I.E. Login.php shows:
Code:
Error getting Text: user_login (English)    
Error getting Text: password (English)    
Error getting Text: language (English)    
Error getting Text: theme (English)



RE: error uploading files - administrator - 01-29-2010

(01-28-2010, 05:06 PM)akae Wrote: Lots of errors before trying to upload a file.I.E. Login.php shows:
Code:
Error getting Text: user_login (English)    
Error getting Text: password (English)    
Error getting Text: language (English)    
Error getting Text: theme (English)

hey Akae

did you setup the database in Mysql ? if you didn't please follow this instructions from here :

http://www.letodms.com/module.php?modname=content&cid=6

thanks

LetoDMS


RE: error uploading files - akae - 01-29-2010

Of course!
Database is working well. In case it was not properly configured I wouldn't be able to login or create users, would I?
You are being very helpful, but I think the problem is located at PHPs that write the directory structure where uploaded files are placed, and we should focus in that problem.
I think I'm finally looking for another DMS, but I'm trying to solve this problem with letoDMS to improve it, because in my opinion is a simple and useful software.
I'm not a PHP leet, so I cannot audit that code in order to find mistakes or another ways to write files, but maybe I can help with this problem...
I have full root access to the server, I have followed all the instructions, but I have never faced this kind of troubles with writting access and PHP.
Please, reply if you have any new idea!!! I'll be pleased to solve this.


RE: error uploading files - administrator - 01-29-2010

i think you should reinstall LetoDMS in my idea.

Thanks

LetoDMS.