Asennus - F A Q

Q: Everything went perfect but 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 paths for the variable 'include_path' in the php.ini.
(or leave the value blank)
Another hint from a 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 you 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 your 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(/tmp\sess_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 directory 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: During the installation the following error messages appear:
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 must 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 who also has a UNIX account, he must be identical with the webserver (often wwwrun or nobody) - createuser wwwrun
Give him the privilege to create tables

3. now insert the fields below with db_name = phprojekt and db_user wwwrun, mostly no password required.

Q: I tried an installation with postegres keeping in mind the above hints and it still doesn't work!
A: A user reported that in his case the postgres installation itself was bad! After fixing this everything worked out fine ...

Q: Do you have any hints for the installation with oracle?
A: First the compiling:
cd apache
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
cd ../php
$ ./configure --with-apache=../apache --with-oci8=$ORACLE_HOME --enable-sigchild
make make install
cd ../apache # need to do it again..
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install
Second the configuring:
Set the following variables before you start your Apache (Useful to insert the into the /etc/init.d/httpd script or /usr/local/apache/bin/apachectl:)
ORACLE_HOME=/opt/orabin/oracle/OraHome1
NLS_LANG=HUNGARIAN_HUNGARY.EE8MSWIN1250 <- replace your country's settings!
ORACLE_SID=ORACLE
export ORACLE_HOME NLS_LANG ORACLE_SID
With these settings phprojekt should work on Oracle 8.x or higher.

Q: I'm trying to install with Postgres 7.1.2.
But I get this message: "Fatal error: call to undefined function pg_connect ..."
A: You forgot to compile PHP with postgres support!
So PHP cannot know this and the other pg commands.

Q: I have a MySQL-DB on my providers host which already has a table named users.
Is it possible to rename PHProjekt's table users to something else?
A: Unfortunately not :-(

Q: I am running suse 7.0, with apache and mod_php4, with mysql.
I created the blank database, got the permissions right, and ran setup.php.
I chose installation, and entered all my info, and what i got back was:
Sorry, it did not work!
Please fix it and restart the installation.

A: This message wants to tell you that your parameters are not set properly. The db access parameters are:
host: localhost
user: root
password: [no password]
database: [name of new blank db]

Q: After running the setup.php from the terminal line, I get errors like:
"Unexpected token on line 6" ... etc.
A: You need to have a working LAMP (or similar) configuration.
Place PHProjekt in a subdirectory of your e.g.htdocs dir
Then call the 'localhost' in your browser, search the PHProjekt dir and run setup.php

Q: After I run setup I get the next page with "Seems that You have a valid database connection!"
but after I submit I get errors, can't create table.
A: sorry but this check with the following message just covers a part of the conncetion test.
So it seems that it still cannot write the tables.
1. because no new database exists.
2. the webserver is not allowed to write tables into the db
3. the connection parameters are still not correct.

Q: Where can I find tutorials about installing a LAMP or WAMP system?
(LAMP means Linux/Apache/mysql/PHP and Wamp the same with Windoze)
A: This page here has a list about the available tutorials:
http://www.dynamic-webpages.de/07.installation.php

Q: When I try to upload a file, I get an error:
"Oops! Something went wrong ...
Please check whether the file exists in the target directory and the variable dat_rel in the config has the correct value
A: Please check whether this directory exists and make sure the webserver is allowed to copy the files from the tmp directory to this directory.
Typical values for the variables $dateien and $dat_rel are:
$dateien = "/usr/local/httpd/phprojekt/file"; and $dat_rel = "file"; for Linux or
$dateien = "c:\htdocs/phprojekt/file"; and $dat_rel = "file"; for windows
Some users reported that the donwload only worked after they changed the path in the variable $dat_rel from relative to absolute.

Q: The file module doesn't work at all!
None of the mentioned hints helps ...
A: Two users reported that they got the file module working after they updated to PHP 4.0.4 or higher.
Another user changed the copy function
copy($userfile, "$dateien/$filenewname");
with the function
move_uploaded_file($userfile, "$dateien/$filenewname");
Maybe this does the trick.

Q: I sent a mail via the mail module and I didn't get any error,
but the recipeint never received any mail. What happened?
A: PHProjekt uses the built-in mail() function of PHP which accesses the mailserver of your system (for Linux e.g. sendmail). Maybe this connection doesn't work.

Q: Do I really need an empty database to install phprojekt. Can't i use an existing one.
The tables don't interfere!
A: If you are sure that the tables which will be written do not have the same name as the existing tables, then you can use your existing database.

Q: I get the following errors after selecting modules:
An error ocurred while creating table: 'dateien'
...
An error ocurred while creating table: 'termine'
A: 1. You forgot to create a new, blank database
2. Your connection parameters do not work properly.
3. Your webserver does not have the right to create the tables

Q: After installation all works fine but on 'Project' the button 'New' does not exist!
A: Only users with 'chief' status (and from version 3.0 on admins as well) can crete new projects.

Q: I'm trying to configure the file system of PHProjekt.
The mysql server and the server with the PHProjekt files on it aren't the same.
Hence I can't configure the $dateien variable to correctly point to the file directory.
A: Right, this works only with relative local pathes, not with remote access.

Q: I have a WAMP configuration (with windows). How can I activate the mail module?
A: For windows you need a smtp server (e.g. hamster) to get the mail function of PHP running.

Q: Upload works perfect using Files smaller than aprox. 2MB. Using bigger files leads to an error message.
A: Raise the value of 'upload_max_filesize' and 'post_max_size' in the php.ini to the desired maximum upload size.

Q: Is there a way to limit the session time automatically?
A: Yes, raise the value of $session_time_limit in the config to the desired value [minutes]

Q: The installation on my oracle failed! the tables have been created but no default user
A: The reason could be that the triggers haven't been created. Please check whether the Server has the right to create triggers.

Q: [From the forum]Well there are a couple of days I try to setup the whole stuff, I am fed up with the same blank pages. What can I do?
A: I had a similar experience where I was able to use a new install of php4 and mysql to run other php scripts including Phpmyadmin, but Phprojekt would not establish a mysql connection. I got a lot of blank pages! The problem was solved by issuing a command in mysql granting global privileges to root: GRANT ALL ON *.* TO root;
It was weird because I was already able to access all the databases as root and also as another user without any password.

Q: There is a problem at the installation on an oracle db: none of the triggers in the database seems to work ! They all show as INVALID through the Schema Manager ...
A: Add 'declare' before 'BEGIN ... for each one of the triggers.

Q: I have a problem with email-Client and the file download. When I get an email with an attachment, I get a white screen when I try to open the attachment.
A: I had a similar problem with email attachments - the mail would appear with the name of the attachment , but clicking on the attachment produced an error along the lines of \' panic - file not found \' or something like that.
The problem was resolved by changing permissions on the attachment directory (under the phprojekt directory) to give read/write access by the webserver - in my case this is the user \'nobody\', group \'nogroup\'.

Q: The chat donīt send msg in the installed Version on my machine? any idea?
A: The webserver (UID \'httpd\' or \'nobody\' or so) needs to have write permissions for the file \'chat.txt\'.

Q: I make my installation without any problem. but when I use the demo version available on the web page, mail module has a lot of customization like write, read, leave on server, folders, etc., just like a complete web mail package.
In my installation in the mail module all I get is a simple form to send inmediate mail. What's wrong...?
A:
In order to run the full mail client, your php must have the imap extension of php active. Your php does not have this library included, so the setup routine offered you only the module to send mails :-(

Q: when I call the setup.php file from a browser I get the following error message:
Warning: Failed opening \'/usr/local/hec/setup.php\' for inclusion (include_path=\'.:/usr/share/php\') in Unknown on line 0
what is wrong, what can I do?
A: The script is not allowed to include any files. this is essential to the function of PHProjekt
-> Have a lookinto the php.ini weather the safe_mode is turned on or the variable include_path has a specific value (should be empty)

Q: I've downloaded the latest version of phprojekt from the ftp site and I'm attempting to set it up.
When I call setup.php from a browser I get "Document contains no data" in Netscape and a blank screen in IE.
A: I had \"session.save_handler = user\" in my php.ini so that the webserver could run apache. Commenting that out and setup ran through correctly.

Q: Everything is working except if you put a single quote in any of the fields I get Unclosed quotation mark before the character string ')'. error.
A: Please change in the php.ini magic_quotes_gpc to 'on'

Q: How can I upload different files with the same name in multiple directories?
A: Activate the filename encryption via setup/configure.


back