Installation Installation and Configuration of phpGroupWare has never been easier. Just point and click, yeah it's very easy. Since this is still a beta version we do expect some bugs. By carefully reading this document you can easly install phpGroupWare. Requirements You will need PHP compiled and installed on your system. You will also need MySQL or PostgreSQL setup. If you are planning on using the email system, you will need to have an IMAP server installed and IMAP support compiled into PHP. You can have it installed as an Apache module or command line version, the Apache module is preferred. We will assume that you are running on a Linux or other Unix system for these steps. Windows is supported, but there is no documentation for it currently. In order to check if you have php installed create the file with your favorite text editor named test.php in your webserver root directory: <? phpinfo(); ?> Then point your browser to http://yourserverroot/test.php. You should get a very detailed page describing various options in php. If you need to to compile php and apache the following links are good starting points: http://www.apachetoolbox.com A set of scripts to compile and install various modules with apache. http://www.linuxhelp.net/guides/ The Linux Apache MySQL PHP (LAMP) Guide v2 (latest as of this writing) http://www.devshed.com/Server_Side/PHP/SoothinglySeamless The Soothing Seemless Setup of Apache, SSL, MySQL, and PHP Tested Systems On Linux 2.2.x, 2.4.x PHP 3.0.15+ / PHP 4.0.x Apache 1.3.x MySQL 3.22.25 or PostgreSQL 7.0.x Courier-IMAP 0.33+ and/or qmail 1.03 for POP3 access We have reports of it working on Windows NT and OS/2, and using Oracle as the database. Obtaining and Installing phpgroupware Installing from TarBall Installing from a TarBall is very easy. The files should be installed in the webserver directory. Example steps (please adjust to your server's config):
# cp phpgroupware-version.tar.gz /home/httpd/html # cd /home/httpd/html # tar zxf phpgroupware-version.tar.gz
You may have to get required permissions to do this. Contact your system administrator if you dont have the permission to write to your webserver directory. You can get current releases of phpGroupWare at the phpGroupware website.
Installing from CVS Installing from a CVS is fairly easy. The files should be checked out in the webserver directory. You may have to get required permissions to install from CVS. Contact your system administrator if you dont have the permission to write to your webserver directory. To see a list of applications currently available via CVS, go to [http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpgroupware/] Development Branch in CVS Follow these steps (please adjust to your server's config):
# cd /home/httpd/html # cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware co phpgroupware # cd phpgroupware # cvs co admin addressbook calendar email phpgwapi preferences setup todo notes infolog
or if you prefer using CVSROOT:
# export CVSROOT=':pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware' # cvs co phpgroupware # cd phpgroupware # cvs co admin addressbook calendar email phpgwapi preferences setup todo notes infolog
Stable Branch in CVS Follow these steps (please adjust to your server's config):
# cd /home/httpd/html # cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware co -r Version-0_9_12-branch phpgroupware # cd phpgroupware # cvs co -r Version-0_9_12-branch admin addressbook calendar email phpgwapi preferences setup todo notes infolog
or if you prefer using CVSROOT:
# export CVSROOT=':pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware' # cvs co -r Version-0_9_12-branch phpgroupware # cd phpgroupware # cvs co -r Version-0_9_12-branch admin addressbook calendar email phpgwapi preferences setup todo notes infolog
Patched Branches in CVS Recently the phpGroupWare developers started a branch for patches to released versions. This is to facilitate bugs being fixed in a released version without having to wait for the next offical release. There is a developer who has been assigned the responsibility for maintaining that branch and applying patches and fixes. To check out this version of the code using 0.9.12 as an example you would do the following:
# cvs -z3 -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware -r Version-0_9_12-patches phpgroupware
Setting File Permissions There are a few directories which will need special file permissions set for phpGroupWare to work properly. Temp Directory (Required) - This can be /tmp for simplicity, but it is required for several apps to function properly. Simply make sure that the webserver can add/delete files in it. Files Directory (Required) - This can be the files dir under the phpgroupware dir. You will need to give the webserver account owndership of this directory.
(from phpgroupware root) # mkdir files # mkdir files/groups # mkdir files/users # chown nobody:nobody files (note: this assumes your webserver runs as user nobody, adjust for your installation) # chmod 700 files
Root Directory (Not recommended) - If you give the webserver account write access to the phpgroupware directory, then the setup program can create the header.inc.php for you. Otherwise you will need to use the setup program to create it, and then you can manually save it to file. If you want to do it:
# chown :nobody phpgroupware # chmod 770 phpgroupware
You may have to get required permissions to do this. Contact your system administrator if you dont have the permission to write to your webserver directory.
Setup the database You need to create empty databases for the setup app to create the tables in. MySQL Ensure that you have a working MySQL installation and that MySQL is running.
Mandrake or Redhat: /etc/rc.d/init.d/mysqld start other: /usr/local/mysql/bin/safe_mysqld &
Create the phpgroupware Database and give permissions to the phpgroupware user
# mysqladmin -u someuser -p create phpgroupware (enter password when prompted) # mysql -u someuser -p mysql> grant all on phpgroupware.* to phpgroupware@localhost identified by "somepassword";
Make sure you change the password from "somepassword" to your MySQL password in the GRANT statement For more detailed user documentation on MySQL see their website: [http://www.mysql.com]
PostgreSQL Ensure that you have a working PostgreSQL installation and that PostgreSQL is running.
Mandrake or Redhat : /etc/rc.d/init.d/postgresql start Others: /usr/bin/postmaster -D /var/lib/pgsql/data -i or /usr/bin/pg_ctl -D /var/lib/pgsq/data start (adjust for your install dirs)
Create the phpgroupware database and user
# /usr/bin/createdb phpgroupware # /usr/bin/createuser phpgroupware --pwprompt
For more detailed user documentation on Postgresql see their website: [http://www.postgresql.org]
Setup/Configure phpGroupWare configure header file Point your browser to http://yourserverroot/phpgroupware/setup/ which will create (or upgrade) the header.inc.php and database tables. Setup will attempt to determine what version of the phpGroupWare databases and header.inc.php you have installed, and upgrade to the most recent version. Most values for the header setup can be left as the default, be sure to enter a password for header admin, and change the password for your DB, and for configuration. *addme* What is mcrypt for? *addme* Explain what the Domain select box is for Once you have finished your configuration, you can have phpGroupWare write it directly if you changed permissions on the directory, or you can download or view it with your browser, and save it in the directory yourself. Site Configuration After header configuration, you will be prompted to enter your Setup/Config Login, or your Header login if you want to go back and change something. You are advised to backup your existing database before running the setup script to avoid problems! You have to press the button, not hit enter on the setup/index.php script Your first step is to install all application databases, simply click on the Install to have phpGroupWare add all the necessary tables. Next, click on Edit Current Configuration. You will be prompted with a list of configuration options. Edit Current Configuration Prompt Notes full path for temporary files usually /tmp full path for user and group files directory must exist and have user and group directories underneath it. location of phpGroupWare URL full domain name or just relative link, no trailing slash hostname of machine Fully qualified hostname default ftp server *addme* what is this for? use correct mimetype for FTP *addme* what might this affect? HTTP proxy server HTTP proxy port Which type of Authentication SQL use SQL table (default) SQL/SSL use encrypted SQL access LDAP use LDAP server mail use mail server (IMAP/POP3) HTTP use HTTP authentication (.htaccess) PAM use PAM authentication (not currently working) Where to store user accounts SQL store in SQL table LDAP store in LDAP server Contacts *addme* what is this? Minimum account ID Maximum account ID manage homedirectory and loginshell attributes *addme* what is this? LDAP home directory prefix LDAP default shell Auto create account records? *addme* what is this? if no ACL records... LDAP host LDAP accounts context LDAP root dn LDAP root password LDAP encryption type app_session encryption *addme* what is this? title for your site Show powered by logo on Country Selection use pure HTML Use cookies check for new version? *addme* what does this check, stable version or CVS? cache the phpgw_info array *addme* what effect does this have on speed, what tradeoffs?
Next, select click here to add admin account and optionally, three demo accounts. Fill in the fields on the next screen and uncheck the box at the bottom if you don't want the demo accounts created. Click on Submit when finished. Click Install Languages to add at least one language to the system. On the next screen, select all the languages you want by single clicking them, then click on Install. There shouldn't be anything to do under Manage Applications at this time, this is where you will return after an upgrade to update and table differences. after you're done, click on logout to complete the install and end the session.
Testing the install If your config is setup properly you can now login. Point your browser to the installed location and login with the new admin username and password you created. Installing additional applications Once you have the core phpGroupWare install up and running, you may want to download and install additional applications. You should consult any README or INSTALL files that come with the new application first, as most require you to create additional tables in the database, and add additional translation data to the lang table (typically a file called lang.sql) You install the new application within the phpGroupWare install tree by copying the application directory into the phpGroupWare install location, and enabling the application through the Administration page. For example, this is the process to install the Headlines application: (see [http://www.sourceforge.net/projects/phpgwapps] for more applications) Download the .tar.gz file for the application, or check out the source with cvs with
# export CVSROOT=':pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgwapps' # cvs login (just hit enter if prompted for a password) # cvs co headlines
Move the headlines directory into your phpGroupWare install directory. Log into phpGroupWare as an administrative user, and go to the Administration page. In the first section, choose the Applications link. Click on add and fill in the form. Application name should be identical to the name of the directory you moved into the phpGroupWare install. In this case, use headlines. Application title is shown in the navigation bar and other places to refer to the new application. Enter Headlines for this example. Enabled can be used to disable an application for all users temporarily. You should normally check the box to enable the application. Back in the Administration page, you need to enable the application for specific users or user groups by editing them, and checking the new Headlines box that appears in the middle of the account editing page. Once you have added the Headlines app to your account, you should see a Headlines entry in the Administration and Preferences pages, and there should be an icon for the Headlines application in the navigation bar. Once you enable a few of the Headlines sites through the Administration page link, you should see headlines grabbed from the sites you selected when you click on the Headlines icon in the navigation bar.
Troubleshooting deb package of 4.0.6 has a problem with cookies, the setup program uses cookies See the FAQ