phpScheduleIt
May 21, 2013, 08:49:40 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How to install with Postgres  (Read 903 times)
pixbuf
Newbie
*

Karma: 0
Posts: 3


« on: March 02, 2009, 08:11:58 PM »

Hello, I want to install phpScheduleIt on a system that already has postgres installed. I tried using the automatic install, but it failed, saying it couldn't connect to the database. I'm going to try the manual install, but since the accounting system for our business also runs on the postgres server, I'm wary of trying anything that could wipe out the business.  Wink

Can anyone give me some some concrete hints for a *safe* install?

Thanks.

(I'm running postgres 8.0.15 on a Gentoo Linux system with apache 2.2.9 and php 5.2.8 )
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: March 03, 2009, 02:02:10 PM »

Running the manual install will create a new database called phpScheduleIt (by default), so there should be no impact to other databases on the server.  As always, I'd do a backup of existing data as a precaution.

If you can, I'd try a test run on an isolated Postgres server to work out any kinks.
Logged
pixbuf
Newbie
*

Karma: 0
Posts: 3


« Reply #2 on: March 03, 2009, 03:05:38 PM »

I decided to take the plunge. I created a database user, scheduleit. I created the user with no password, so I put in config.php this line:
$conf['db']['dbPass'] = '';
Is that right?

Then I tried this:
psql -U scheduleit phpscheduleit < setup.sql
but got this message:
psql: FATAL:  database "phpscheduleit" does not exist
I get the same message if I leave the name of the database out.

I'm stuck. It appears that the setup script creates the database. I don't know why it should complain like this. Help, please?
Logged
pixbuf
Newbie
*

Karma: 0
Posts: 3


« Reply #3 on: March 04, 2009, 08:15:07 PM »

Since it keeps complaining that the database doesn't exist, I tried creating it:

$ psql -c "create database phpScheduleIt;"
    psql: FATAL:  database "postgres" does not exist
$ psql -c "create database phpScheduleIt;" phpScheduleIt scheduleit
    psql: FATAL:  database "phpScheduleIt" does not exist

This is very frustrating. Cry


Logged
gerg
Newbie
*

Karma: 0
Posts: 24


« Reply #4 on: March 06, 2009, 10:15:02 AM »

Can't you just bypass the setup/install and run an sql query of the supplied sql and then adjust your config.php properly, load up the files and go from there?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!