Installing DotProject On Linux
Installing DotProject On Linux
After you have checked that the web server is correctly configured, point your browser to dotproject/install. (Depending on where you put your files you may need to provide a different path). Make sure you include your server details. For example, if you are installing on http://mydomain.com/ and you have unpacked in your public_html directory, the URL to use would be http://mydomain.com/dotproject/install/ [1][2] If all is well you should be in the dotProject Installer. [edit]
You can safely leave the other options clear. Select the upgrade db & write cfg button. If all is well the next screen will display the progress as dotProject is installed. The most common problem at this stage is incorrect database details. If this is the case, go back and enter the correct details before proceeding. [edit]
2.6 Step Six - Login with Default User Name and Password
When you click on the Login and Configure the dotProject System Environment link, you will be asked to login. The default login is: User Name: admin Password: passwd [edit]
IMPORTANT NOTE for people upgrading to 2.1.4 and ABOVE. As of 2.1.4 dotProject provides table prefixing in the database. There is NO upgrade path from previous systems that were installed without table prefixes to table prefixed environments. If you are upgrading from a version previous to 2.1.4 and ABOVE ensure that you CLEAR the Table Prefix field in the upgrade screen. (For experienced database administrators you can manually change the table names in the database BEFORE upgrading.) [edit]
3.1 Backing Up
Before Upgrading an existing system BACKUP. EVERYTHING Backup your data and SQL schema Backup your dotProject software installation Make sure you can restore from your backups
If you are using phpMyAdmin, use the Export option to export both data and schema of the database. If you are using command line tools use mysqldump, which by default backs up both data and schema. Use mysqldump --help for information on its usage.[6] Make sure you also backup the files in your dotproject installation. This includes code and uploaded files (in the files directory). There is no way to retrieve these from the database backup if you manage to delete them from the filesystem. Make sure before you proceed that you can read the backups, and that you have some method of getting them back into the system. It is no good having a backup that you cannot restore in the event of a problem. [edit]
3.2 config.php
The installation package does not include a config.php file by design.
If there is a config.php file in your dotProject hierarchy then it will assume that it is an upgrade and advise you accordingly. Logic now also checks the contents of the config file and the connectivity to the database. It also makes some basic checks on the database to see if people have done a manual upload of the dotproject.sql file as well. [edit]
Does the config.php file exist? o If Y, does the dbhost variable exist? o If Y, can the database be contacted? o If Y, does the database have the phpGACL tables and are they fully populated?
If the config.php file exists we assume an upgrade[7] If the phpGACL tables exist but aren't populated it is an install. If they don't exist it is an update (pre 2.x installs didn't have these, so we assume we are upgrading from a previous version). [edit]
5
4 Security Considerations
[edit]
4.1 register_globals
Running dotProject with register_globals turned on is a known security risk and we do not recommend / support or consider it as an option. Your installer will check for and report if you have register_globals turned on in your php installation. register_globals ON has been deprecated since php4.1.0 and been set to OFF by default since php4.2.0
For more information on the KNOWN security flaws in the use of register_globals on please refer to the myriad of php reference materials. For your dotProject installation to be optimised REGISTER_GLOBALS should be turned OFF. If you are using other applications that go against recommendations and have REGISTER_GLOBALS turned on - then use a .htaccess file or take it up with the other applications. [edit]
Once that's in place all requests for http://your.project.site/ will be redirected to http'''s'''://your.project.site/ [edit]
6 LDAP Authentication
dotProject can be configured to use LDAP bind Authentication as an alternative to authenticating from the SQL database. The LDAP Authentication feature was introduced in v2.0 [edit]
6.1 Configuration
In order for LDAP Authentication to work you will need to set up these system configuration variables: auth_method ldap_host ldap_port Set this to "ldap" to use your LDAP server for authentication of dotProject users. The hostname or IP address of the LDAP Server to contact for authentication (defaults to localhost). The port number of the LDAP service, in most cases you should leave this as the default (port 389). The version of the LDAP protocol to use. OpenLDAP installs as default with support for LDAP Version 3, although you might have to change this to version 2 for other directory systems. If you are not sure just leave the default value (version 3), you can come back later to change this value if you get a protocol error while trying to login. The base DN to search for Users of dotproject, this varies depending on your LDAP installation - this is also used in the LDAP bind authentication process. The filter used for finding an LDAP entry. This will also vary depending on your LDAP installation, the default assumes each user will have a posixAccount object class from the NIS schema (default is "(uid=%USERNAME%)"). Use the string %USERNAME% to denote where the username parameter should be applied.
ldap_version
ldap_base_dn
ldap_user_filter
The Full DN of the user you want to bind as for searching. The user must ldap_search_user have permission to search your users directory. Note: Recently changed to Full DN ldap_search_pass The Password of the LDAP search user. ldap_allow_login (Allow standard logins) - Allow SQL users to login, in addition to the LDAP system (Recommended).
Once these system configuration variables are correct, LDAP users will be able to login. By default, they will be given the permissions of the role "Anonymous". If you wish your users to have greater access to the system, you will have to add access permissions or user roles via the User Admin module. [edit]
- set the LDAP host to: dc.dotproject.com - set the Base DN to: cn=Users,dc=dotproject,dc=com - this indicates that the system should search the Users folder for valid users. - set the user filter to: (sAMAccountName=%USERNAME%) - this will be the same for all Active Directory installations. - set the LDAP search user and password: You could set this to a user with the administrator role but its safer to make an ldapsearch user with only the permissions required to read the users folder. - set allow standard login on - this is recommended so that if your directory system fails, you can still login to dotproject. [edit] 6.2.1 Note from Contributor sebmind on Original Wiki The configuration that works best with active directory, especially if you have multiple OUs in your directory tree: Host: "ldaps://dc.somedomain.com" Port: "3269" Base DN: "dc=somedomain,dc=com" Filter: "(sAMAccountName=%USERNAME%)" Works for me using AD 2000. Nice work, dotproject! [edit] 6.2.2 Note from Contributor snosty on Original Wiki The filter "(sAMAccountName=NaV)" does not work in 2.01, however, "(sAMAccountName=%USERNAME%)" does. [edit]
8 Footnotes
1. ? If you get an error page, or a directory listing, then your web server does not support index.php as a valid directory index. Contact your web server support staff to resolve this, as dotProject will not work without it. 2. ? If you get a page that starts with a copyright notice, then your web server does not support PHP files. Again, you will need to get this resolved before you can continue. 3. ? The installer will create a database if you have checked the Create Database box AND the MySQL user you have nominated has sufficient permission within MySQL to do so. If the user does not have permission it will fail. If the database already exists (ie you have used some other means of creating it) you do not need to check the Create Database box. 4. ? Not the web server user, the ftp user, the dotProject admin login or your own login name (UNLESS you know that you have permission, within MySQL) to generate a database 5. ? Obviously you need to do a lot more than this if your server is accessible to the outside world. One source of information for securing PHP applications is http://au3.php.net/manual/en/security.php BUT DO NOT RELY ON JUST ONE SOURCE - use your own initiative to sort out your own security environment 6. ? Please note that the use of either environment is outside the scope of dotProject and you should consult the relevant authorities for details 7. ? In other words do not create on which has nothing / incorrect details in it and expect a new installation to work 8. ? As of 2.0.1 the backup module has been upgraded and incorporated into dotProject. This is a new implementation however and you should NOT trust it - make sure that you have an alternative backup available until such time as this module has been extensively tested and used. Categories: Install Manually | Manual Install | Installation | Install New System | Install - Unpack Files | Install - Running the Installer | Install - Check and Start Installation | Install - Database Settings | Database Before Installation | Install - Config.php | Default User Name and Password | User Name and Password on Installation | Installation User Name and Password | Install Security | Upgrade an Existing System | Upgrade an Existing System - Backup | Upgrade an Existing System - config.php | Upgrade an Existing System - Unpack Files | Upgrade an Existing System - Running the Installer | Upgrade an Existing System - Check and Start | Upgrade an Existing System - Upgrade Options | Upgrade an Existing System - Run Installer | Upgrade an Existing System - Security | Security | SSL | LDAP
Search
General
Quick Lookups
Installation
FAQs/Errors etc
User Manual
System Administration
Programmer Info
Add on Modules
Recent changes
11
Conversion Toolbox
UNFINISHED
What links here Related changes Upload file Special pages Printable version Permanent link
Skin by Peter This page was last modified 02:11, 15 January 2011. This page has been accessed 155,933 times. Content is available under Copyright. Privacy policy About DotProjectWiki Disclaimers
12