# phpaga FAQ

Florian
Lanthaler

              florian at phpaga dot net

$Date: 2005-04-28 22:50:32 +0200 (Thu, 28 Apr 2005) $
0.1
2004-09-10
FL
Initial release

> Copyright © 2004 Florian Lanthaler

When trying to create the database structures under PostgreSQL I get the following error:

            ERROR: language "plpgsql" does not exist

This error means that PostgreSQL is unable to create some functions that phpaga requires, because your database is missing support for the language plpgsql. A user with database superuser status, usually called "postgres", will need to run the following command from a shell:

            createlang plpgsql phpaga

Does phpaga need to have register_globals on?

phpaga does not require register_globals to be on. All necessary values are fetched from the $_* variables. It is actually encouraged to have register_globals off.

Can phpaga be run with any accelerators enabled?

phpaga should work with Turck MMCACHE (it has been tested at some point in the past).

Some users have reported problems when running phpaga with PHP Accelerator enabled. Kyle T. Smith noted that simply disabling phpa on the directory with phpaga installed returns phpaga to working order. Example section in the apache config:

            <Directory /path/to/phpaga>
            php_value phpa off
            </Directory>

I get the following error:

            Warning: Cannot send session cookie - headers already sent by
            (output started at /var/www/phpaga/etc/config.local.php:1) in
            /var/www/phpaga/lib/sessions.php on line 49

According to this error message there is some blank space ouside the <?php and ?> tags in your `etc/config.local.php` on line 1. Everything ouside those tags gets output to the browser, and the following header() statements (redirects, graphics output) don't work anymore. Edit your `etc/config.local.php` and remove everything outside the php tags (blank space, new line, tabs), then the script should get executed correctly.

When trying to log in, a number of similar warnings appear:

            Notice: Use of undefined constant PHPAGA_TEMPLATESET - assumed 'PHPAGA_TEMPLATESET'
            in /var/www/phpaga/etc/config.php on line 101

Looks like phpaga is unable to pull the configuration settings from the database. Make sure that you did import `sql/phpaga_data.sql` in order to populate the database with default data, and that the database user you created and specified in `etc/config.local.php` has the proper permission to access this data.