LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2004, 11:16 PM   #1
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Rep: Reputation: 15
Apache+Postgresql+PHP. reconfigure?


hello there to all again. im here again ask for help.
i already have installed apache + postgresQL and php into my notebook.
heres my prob. i have set my dir data to /usr/local/pgsql/data by doing tlike this:
editing my /home/postgres.bashrc and appended the following lines
Code:
PGDATA=home/postgres/data
PATH="$PATH:/usr/local/pgsql/bin"

export PGDATA PATH
and issue the command:
/usr/local/pgsql/bin/postmaster -D /home/potgres/data

now i want them(dir data file) to trasfer to '/var/pgsql/data'. i dont know how to do it. can any one show me how to do it step-by-step and nicely?
pls help..
 
Old 08-23-2004, 01:31 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I'm not a PosgreSQL whiz (just started playing with it), but you ought to be able to just move the data directory and change the -D argument to postmaster to reflect the location of the new data directory.
 
Old 08-23-2004, 03:58 AM   #3
vickr1z
Member
 
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Original Poster
Rep: Reputation: 15
u mean like this:

PGDATA=/var/pgsql/data
PATH="$PATH:/usr/local/pgsql/bin"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux + Apache + PHP + ??MySQL/PostgreSQL?? Thakowbbery Linux - Enterprise 4 10-28-2005 04:18 PM
Apache,PHP and PostgreSQL in a package Boby Linux - Software 1 03-29-2005 07:21 PM
Apache-php-postgresql-phppgadmin koswo Linux - Software 0 02-05-2004 07:05 AM
how to link apache+php+postgresql Sridhar Guntur Linux - General 3 01-09-2003 02:22 AM
PHP, Apache reconfigure to support Databases aaronsols Programming 0 04-20-2002 03:36 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration