Installation - F A Q

Q: Everything went perfect bu I can't log in with root/root.
Or: I created a new user but I cannot login with his combination! A: Look into the config: if the variable $login_kurz
=0, use the last name (field 'nachname' in the database)
=1 use the short name (kurz)
=2 use the login name (loginname)
together with the password.

Q: I have downloaded the zip file and extracted but where is this config file?
A: Did you already run setup.php? this will install PHProjekt on your system and write the configuration file.

Q: After choosing the setup type (installation), language and db type on the first screen, I don't see any words on the next screen!
A: The script fails to include the file for the chosen language.
Extend the include pathes for the variable 'include_path' in the php.ini.
(or leave the value blank)
Another hint from an user: the variable magic_quotes_gpc in the php.ini must be set to 'on'

Q: The setup is done but it tells me that it still misses the file config.inc.php
A: The webserver did not have the right to write this file at the end of the setup routine. chmod 777 for the directory, delete all tables and try again.

Q: I want to use the ldap access. What do I have to do?
A: First of all you have to have the ldap extensions of PHP activated. Then the checkbox in the setup appears. After this oyu have to:
- Activate LDAP by setting the LDAP-field in setup.php to 1.
- Edit ldapconf.php according to your needs.
(You can create as many ldap-configurations as you want to, you just have to copy the configuration array and increase its index number by one -e. g. change the index to '2' for the 2nd configuration).
-Create your new users by choosing 'create user' in the admin module.
You have to select one LDAP-configuration and to enter user-data that can't be retrieved via LDAP. The loginname has to be equivalent to the LDAP uid
(you can change this in ldapconf.php by changing the 'uid'-field to the field you want to, but this has not been tested).

Q: Warning: OCIStmtExecute: ORA-00910: specified length too long for its datatype in lib.inc.php on line 95
A: PHProjekt does not support oracle version 7 or lower.

Q: I want to use the full mail client, but I cannot find him!
A: You have to have the imap extensions of php activated. Then you get the option to choose the installation of the full mail client in the setup.

Q: How can I include own modules?
A: This is quite easy: take the folder with all files (including an 'index.php') and place it into the folder 'addons' in the PHProjekt root directory. The name of you folder will appear in the navigation bar.

Q: Warning: MySQL Connection Failed: Can't connect to MySQL server on '10.100.1.4' (111) in /www/htdocs/phprojekt/setup.php on line 117
A: Your webserver can't establish a connection to the mysql database
Reasons: the database or the connection to it is down or broken, or you have the wrong parameters.

Q: Fatal error: Call to undefined function: ocilogon() in /usr/local/httpd/htdocs/phprojekt/setup.php on line 119
A: Your actual PHP does not support oracle. Solution: Linux: compile your PHP --with-oci8, Windows: get php_oci8.dll - and don't forget to uncomment the respective line in the php.ini

Q: After the login screen I get several screens, each with the login dialog :-(
(also named: 'four login screens')
A: Because of security reasons You have to enable cookies.

Q: Does PHProjekt work with PHP3?
A: No way, sorry :-(

Q: Warning: crypt() is not supported in this PHP build in lib.inc.php on line 174
A: You have a windows PHP version which does not support the command crypt. -> take PHP version 4.0.4 or higher, but not 4.0.5

Q: Warning: Wrong parameter count for session_register() in lib.inc.php on line 114
A: That's a bug in early PHP4 versions. -> use a PHP4 version 4.0.2 or higher

Q: Setup will always show me the first screen, I can't continue!
A: Have a look into the php.ini: the variables 'register_globals' and 'allow_call_time_pass_reference' must be set to 'on'.

Q: I have installed PHProjekt, but how do I get the lanugages set?
A: Go to the admin page to the 'modify user' screen: you can choose the language in the last select box.

Q: Warning: open(/tmpsess_8e3f13497b89881b4f71e6beecadd6d3, O_RDWR) failed: m (2) in c:/phproject/admin.php on line 1
A: The path where your sessions are stored is not set properly. Edit the variable session.save_path in the php.ini

Q: I cannot up- and download files! The system tells me:
SAFE MODE Restriction in effect. The script whose uid is 911 is not allowed to access /var/tmp/gfd8sa owned by uid 3 in /www/htdocs/phprojekt/dateien.inc.php on line 25
A: Your system does not allow that the webserver copies files from the tmp directory to the file dreictory specified in the config. -> ask your provider to turn off the safe_mode.

Q: My chat doesn't work!
A: The reason could be that your webserver does not have the privilege to write files in this folder. Try 'chmod -R 777 'your phprojekt directory'. Do it only if you know what you are doing, or rather best contact your sysadmin or provider to fix this.

Q: At the installation appear the following error messages:
user@linux:~/phprojekt-2.4 > setup.php
./setup.php: ?: File or list not found
./setup.php: //##: File or list not found
./setup.php: line 6: syntax error near unexpected token `:-)'
A: Since PHProjekt is a PHP4 tool, it does not work from the command line.
You have to extract the files into a directory of your webserver and call the script setup.php via your browser.

Q: What should I prepare for an installation with postgres?
A: 1. create a database: createdb phprojekt This msut be done as user postgres (su - postgres)
If this fails, it's very likely that postgres is not running properly. (/etc/rc.d/postgres restart for postgres restart)

2. create a user which also have an UNIX account, he must be identical