![]() |
unable to check htaccess file... - 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: unable to check htaccess file... (/showthread.php?tid=255) Pages:
1
2
|
RewriteEngine not allowed here... - EricBJ - 02-17-2011 New user here. Just installed LetoDMS v2.0.2 Fixed "Invalid command RewriteEngine". I'm able to login with default admin username and password. Attempted to add a new user and received "500 Internal Server Error". Apache logs show... "[Wed Feb 16 16:21:50 2011] [alert] [client 192.168.2.215] /var/www/letoDMS-2.0.2/op/.htaccess: RewriteEngine not allowed here, referer: http://192.168.2.10/letoDMS-2.0.2/out/out.UsrMgr.php" What should I do? Thanks, Eric RE: RewriteEngine not allowed here... - administrator - 02-17-2011 (02-17-2011, 06:41 AM)EricBJ Wrote: New user here. thanks for using LetoDMS please post your letodms setting.inc.php file . plus mysql and php version on here. thanks LetoDMS team. RE: RewriteEngine not allowed here... - EricBJ - 02-17-2011 (02-17-2011, 05:02 PM)administrator Wrote:(02-17-2011, 06:41 AM)EricBJ Wrote: New user here. Setting.inc.php as requested... <?php // MyDMS. Document Management System // Copyright © 2002-2005 Markus Westphal // Copyright © 2006-2008 Malcolm Cowe // Copyright © 2010 Matteo Lucarelli // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. class Settings { // Name of site -- used in the page titles. Default: MyDMS var $_siteName = "letoDMS"; // Message to display at the bottom of every page. var $_footNote = "letoDMS free document management system - www.letodms.com"; // if true the disclaimer message the lang.inc files will be print on the bottom of the page var $_printDisclaimer = true; // 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 want anybody to login as guest, set the following line to true // note: guest login should be used only in a trusted environment var $_enableGuestLogin = true; // 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 = true; // 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/letoDMS-2.0.2/"; // 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 = "/letoDMS-2.0.2/"; // Where the uploaded files are stored (best to choose a directory that // is not accessible through your web-server) var $_contentDir = "/mymounts/d2p1/letodata/"; // To work around limitations in the underlying file system, 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. 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 (USE ONLY LOWER CASE CHARACTERS) //var $_viewOnlineFileTypes = array(); var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg"); // enable/disable converting of files var $_enableConverting = false; // default style (name of a subfolder in folder "styles") var $_theme = "clean"; // Workaround for page titles that go over more than 2 lines. var $_titleDisplayHack = true; // enable/disable automatic email notification var $_enableEmail = true; // enable/disable group and user view for all users var $_enableUsersView = true; // false to don't list administrator as reviewer/approver var $_enableAdminRevApp = false; // the name of the versioning info file created by the backup tool var $_versioningFileName = "versioning_info.txt"; // set false to disable log system var $_logFileEnable = true; // the log file rotation (h=hourly, d=daily, m=monthly) var $_logFileRotation = "m"; // enable users images var $_enableUserImage = false; // enable calendar var $_enableCalendar = true; // calendar default view ("w" for week,"m" for month,"y" for year) var $_calendarDefaultView = "y"; // first day of the week (0=sunday, 6=saturday) var $_firstDayOfWeek = 0; // false to don't show the folder tree side panel var $_enableFolderTree = true; // 0 to start with tree hidden // 1 to start with tree shown and first level expanded // 2 to start with tree shown fully expanded var $_expandFolderTree = 1; // if true user cannot edit his own profile var $_disableSelfEdit = false; // if enabled admin can login only by specified IP addres // leave ampty to avoid the control // NOTE: works only with local autentication (no LDAP) var $_adminIP = ""; // -------------------------------- Database-Setup -------------------------------------------- //Path to adodb var $_ADOdbPath = "/var/www/letoDMS-2.0.2/adodb/"; //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 = "letodms"; //username for database-access var $_dbUser = "letodms"; //password for database-access var $_dbPass = "1234567890"; // -------------------------------- LDAP Authentication Setup -------------------------------------------- /* new code by Doudoux - TO BE TESTED */ // var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com // var $_ldapPort = 389; // Optional. // var $_ldapBaseDN = ""; // var $_ldapAccountDomainName = ""; // var $_ldapType = 1; // 0 = Generic LDAP ; 1 = Microsoft LDAP /* old code */ // 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(); ?> MySQL version - 5.0.51 PHP version - 5.2.6.dfsg.1-1+lenny9 Thanks, Eric RE: RewriteEngine not allowed here... - administrator - 02-18-2011 (02-17-2011, 05:40 PM)EricBJ Wrote:(02-17-2011, 05:02 PM)administrator Wrote:(02-17-2011, 06:41 AM)EricBJ Wrote: New user here. hi thanks for using LetoDMS we checked your setting looks good . but seems like its your server, We would suggest you to reinstall it again or double check to make sure mod_rewrite module in apache is enabled. Thanks LetoDMS team. RE: RewriteEngine not allowed here... - EricBJ - 02-18-2011 (02-18-2011, 04:54 AM)administrator Wrote:(02-17-2011, 05:40 PM)EricBJ Wrote:(02-17-2011, 05:02 PM)administrator Wrote:(02-17-2011, 06:41 AM)EricBJ Wrote: New user here. I did discover that the mod_rewrite module wasn't enabled when I installed LetoDMS, but it is now. Does it make a difference that it wasn't enabled before the install? Thanks, Eric RE: RewriteEngine not allowed here... - EricBJ - 02-20-2011 I did discover that the mod_rewrite module wasn't enabled when I installed LetoDMS, but it is now. Does it make a difference that it wasn't enabled before the install? Thanks, Eric RE: RewriteEngine not allowed here... - administrator - 02-24-2011 (02-20-2011, 10:42 AM)EricBJ Wrote: I did discover that the mod_rewrite module wasn't enabled when I installed LetoDMS, but it is now. hi i would suggest you to reinstall it again see if the problem resolves thanks LetoDMS team. unable to check htaccess file... - EricBJ - 02-25-2011 Administrator recommended that I try a new install, so I am... I believe I covered all the steps in the README file. Attempted to access letoDMS gives me this error... Warning: include(inc/inc.Settings.php) [function.include]: failed to open stream: Permission denied in /var/www/letoDMS-2.0.2/index.php on line 20 Warning: include() [function.include]: Failed opening 'inc/inc.Settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-2.0.2/index.php on line 20 Warning: Cannot modify header information - headers already sent by (output started at /var/www/letoDMS-2.0.2/index.php:20) in /var/www/letoDMS-2.0.2/index.php on line 22 I then looked in the Apache logs and they said this... (13)Permission denied: /var/www/letoDMS-2.0.2/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable Help me understand what it is trying to tell me so I can then go about fixing it... Thanks, Eric RE: unable to check htaccess file... - administrator - 02-25-2011 (02-25-2011, 05:39 AM)EricBJ Wrote: Administrator recommended that I try a new install, so I am... hi if you look at the what php is saying to you you can understand it . " Warning: include(inc/inc.Settings.php) [function.include]: failed to open stream: Permission denied in /var/www/letoDMS-2.0.2/index.php on line 20" like this line tells you you don't have permission in /var/www/letodms-2.02 so double check your permission second one "Warning: include() [function.include]: Failed opening 'inc/inc.Settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-2.0.2/index.php on line 20" this failed to open because it can't open the first one so you would need to double check the permission so letodms can access it Thanks LetoDMS team. p.s please don't create a brand new thread if its the same problem please reply here. Thanks RE: unable to check htaccess file... - EricBJ - 02-25-2011 First of all, sorry didn't realize it was the same problem... To make sure there was permission to get to everything in the /letoDMS-2.0.2/, I changed permissions to 777 on every file and folder. Now I get a similar error message to before... [Fri Feb 25 00:41:21 2011] [alert] [client 192.168.2.215] /var/www/letoDMS-2.0.2/op/.htaccess: RewriteEngine not allowed here, referer: http://192.168.2.10/letoDMS-2.0.2/out/out.Login.php?referuri=%2FletoDMS-2.0.2%2Fout%2Fout.ViewFolder.php I know that mod_rewrite module is enabled. Is Apache not allowing RewriteEngine or is it the .htaccess file no allowing RewriteEngine? ..and does the problem seem to be with the folder or the referer? Please forgive if these are really dumb questions, I'm just trying to get it straight in my head what is going on here... Thanks, Eric |