View Single Post
  #5   (View Single Post)  
Old 16th March 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

oh well I don't know...
I installed both from the packages and then followed these instructions:
Code:
php5-core-5.2.5p2: complete                                                 
php5-pgsql-5.2.5: complete                                                  
phpPgAdmin-3.5.5p0: complete                                                
--- php5-core-5.2.5p2 -------------------
To enable the php5 module please create a symbolic
link from /var/www/conf/modules.sample/php5.conf
to /var/www/conf/modules/php5.conf.

ln -s /var/www/conf/modules.sample/php5.conf \
	/var/www/conf/modules

The recommended php configuration has been installed
to /var/www/conf/php.ini.
 
Don't forget that the default OpenBSD httpd is chrooted
into /var/www by default, so you may need to create support
directories such as /var/www/tmp for PHP to work correctly.
--- php5-pgsql-5.2.5 -------------------
You can enable this module by creating a symbolic
link from /var/www/conf/php5.sample/pgsql.ini to
/var/www/conf/php5/pgsql.ini.

ln -fs /var/www/conf/php5.sample/pgsql.ini \
	/var/www/conf/php5/pgsql.ini

--- phpPgAdmin-3.5.5p0 -------------------
The phpPgAdmin has been installed into /var/www/phpPgAdmin

You should point this to the DocumentRoot of your web-server:
   # ln -s ../phpPgAdmin /var/www/htdocs/phpPgAdmin
(make sure you use a relative symlink since Apache is chrooted)

You can ensure you have a working install by accessing:
http://<localhost>/phpPgAdmin/index.php

You need to modify /var/www/phpPgAdmin/conf/config.inc.php according
to your database(s) settings
and by the way, I have this in /var/www/logs/error_log:
Code:
[Mon Mar 16 22:38:13 2009] [error] PHP Warning:  Unknown: open(/tmp//sess_gsp5afbaoq3u0qo8lu9lpbkqa0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[Mon Mar 16 22:38:13 2009] [error] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
Reply With Quote