I have succesfuly installed PostgreSQL 7.4.6 and phpPgAdmin on my hosting account with no problems.
1. Start up an SSH session, and change directories into /home/(username)
2. Download the PostgreSQL packageCode:cd /home/(username
3. Extract the archiveCode:ftp://ftp3.us.postgresql.org/pub/postgresql/latest/postgresql-7.4.6.tar.gz
4. Change into the new directoryCode:untarzip postgresql-7.4.6.tar.gz
5. (If you haven't already install the GNU compilation utilities in Site Manager)Code:cd postgresql-7.4.6
6. Run the config script
7. CompileCode:./configure --prefix=/home/(username)
8. InstallCode:make
9. Now create your data directoryCode:make install
10. Set up the database systemCode:mkdir pgsql mkdir pgsql/data
PostgreSQL is now running! Now we just need to install phpPgAdminCode:/home/(username)/bin/initdb -D /home/(username)/pgsql/data /home/(username)/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 & /home/(username)/bin/createdb test /home/(username)/bin/psql test
1. Change into your default web directory
2. Download the phppgAdmin filesCode:cd /var/www/html
3. Extract themCode:wget http://voxel.dl.sourceforge.net/sourceforge/phppgadmin/phpPgAdmin-3.5.1.tar.gz
4. Rename the folderCode:untarzip phpPgAdmin-3.5.1.tar.gz
You can now log into phpPgAdmin at http://www.yourdomain.com/phpPgAdmin Your username and password are the same as the ones you use everywhere else.[/code]Code:mv phpPgAdmin-3.5.1 phpPgAdmin
Results 1 to 10 of 17
-
12-25-2004, 09:42 AM #1Junior Member
- Join Date
- Sep 2004
- Posts
- 11
Howto: Installing PostgreSQL w/ phpPgAdmin
-
12-25-2004, 10:15 AM #2Junior Member
- Join Date
- Sep 2004
- Posts
- 11
Starting and Stopping the server
I forgot to mention how you start/stop/restart the server.
To stop the server
To start the serverCode:/home/(username)/bin/pg_ctl stop -D /home/(username)/pgsql/data
To restart the serverCode:/home/(username)/bin/pg_ctl start -D /home/(username)/pgsql/data
Code:/home/(username)/bin/pg_ctl restart -D /home/(username)/pgsql/data
-
12-25-2004, 10:54 AM #3
Thanks for posting JakePoz! Sounds as if it was pretty painless.
Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
12-29-2004, 01:12 AM #4Member
- Join Date
- Jun 2004
- Posts
- 51
Anyone else getting errors when they run make? Specifically I get this error:
Gen_fmgrtab.sh: sort: command not found
Gen_fmgrtab.sh failed
and then it exits. Any suggestions?This universe shipped by weight, not by volume. Some expansion of the contents may have occurred during shipment.
-
12-29-2004, 02:38 AM #5
The 'sort' command is not installed on Westhost. I guess JakePoz had it from somewhere.
It's in the wh-utils package from my site if you don't find it elsewhere.
ftp.gnomedia.com
-
12-30-2004, 01:23 AM #6Member
- Join Date
- Jun 2004
- Posts
- 51
I got it working. Thanks for your help.
P.S.
didn't work for me--I got errors.Code:/home/(username)/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
seemed to work, however.Code:/home/(username)/bin/pg_ctl -D /home/(username)/pgsql/data -l logfile start
This universe shipped by weight, not by volume. Some expansion of the contents may have occurred during shipment.
-
12-31-2004, 05:07 PM #7Junior Member
- Join Date
- Sep 2004
- Posts
- 11
I am glad you got it working, not sure why that first command didn't work though.
-
01-10-2005, 04:18 PM #8
First of all, thanks again to JakePoz for this post!
I'm guessing that the average WH user doesn't have readline installed, so an alternative step 6:
A minor addition (for clarity) to step 8:Code:./configure --prefix=/home/(username) --without-readline
Code:cd /home/(username)/ mkdir pgsql mkdir pgsql/data
-
08-16-2005, 03:00 AM #9Junior Member
- Join Date
- Aug 2005
- Posts
- 2
createlang: 'command not found'
I have succesfully installed postgresql with phpPgAdmin. But I needed to add PL/pgSQL (a procedural language) in my database for wich I need to run 'createlang' command. But I get the response 'command not found'. I beleive this is due to the VPS not having sh-utils installed or may be other similar utility. I need PL/pgSQL to be able to install mysourcematrix CMS.
Does anybody come across with this issue and know how to resolve it. The Westhost technical suppot cannot do it (they will only do against fee which cost $80/per hour and 1 hour payment is minimum).
-
02-25-2006, 05:50 PM #10Junior Member
- Join Date
- Feb 2006
- Posts
- 4
Installing PostgreSQL 8.1.3 (Feb 25, 2006)
Having just set up my account with WestHost, I thought I would download and install the latest version of PostgreSQL. I should note that the basic instructions in this thread are good, but you can also get away with doing just ./configure && make && make install.
BUT! You should also be aware that at least with WestHost's New Year's Special VPS system, PostgreSQL 8.0.3 apparently is already installed! I found that out after getting 8.1.3 installed, and struggling to get initdb working. So if you're going to use a version other than 8.0.3, you will need to use the complete path to your PostgreSQL binaries!
Just passing along a tip...
Raymond
Similar Threads
-
HowTo Guide: Installing Subversion
By Pachango in forum General DiscussionReplies: 25Last Post: 12-17-2008, 10:08 AM -
HowTo Tutorial: Using and Installing SSH
By sunzon in forum E-mail / FTP ManagementReplies: 6Last Post: 05-10-2008, 07:07 AM -
PHP 5.2 and PostgreSQL
By rcrodgers in forum PHP / MySQLReplies: 2Last Post: 03-01-2007, 01:12 AM -
Howto guide: Installing Mailman
By nsc in forum CGI Scripts / PerlReplies: 6Last Post: 02-05-2007, 11:57 PM -
Upgrade SpamAssassin using CPAN?
By j103c in forum E-mail / FTP ManagementReplies: 54Last Post: 06-10-2004, 03:35 PM
Reply With Quote