Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 43
  1. #1
    ozzi4648
    Guest

    Default HOWTO: Install phpPgAdmin to support Postgresql db's using C

    MySQL is a very fast, easy to use database that is very popular and used by a wide variety of web sites on the Internet today. Sites such as the hugely popular Slashdot.org rely on Mysql to power their dynamic data-driven web sites.

    PostgreSQL is a high quality, feature rich relational database. PostgreSQL offers features such as transaction support that normally aren't available with MySQL. PostgreSQL is reknowned for its rock solid stability and scalable performance. You will find that very few web hosts offer PostgreSQL because of its complexity.

    Offer your users Postgresql support on your Cpanel box and watch your subscriptions increase. Not many hosting companies offer it, but you can. I will show you how to install, configure and use the tool that allows you manage your postgresql db's. Its called phpPgadmin, just like the tool your using for your MySql.

    View my demo and log in at http://216.40.226.215/phpPgAdmin/
    with userid: testuser password: tester

    I have attached a &testdatabase& Feel free to add tables and views if you know sql!

    You can pick up the link here: http://linux.cvf.net then click on the LINUX link at the top of the page. Scroll down and find the link to the Cpanel tutorial.


  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Sweet! thanks a lot!

    Anyone else try this out?
    Beau Henderson

  3. #3
    ozzi4648
    Guest

    Default

    [quote:891e00f46e][i:891e00f46e]Originally posted by iminteractive[/i:891e00f46e]

    Sweet! thanks a lot!

    Anyone else try this out?[/quote:891e00f46e]

    Your very welcome!

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Anyone know how to limit the amount of databases a perticular user can use?
    Beau Henderson

  5. #5
    ozzi4648
    Guest

    Default

    [quote:342b03017d][i:342b03017d]Originally posted by iminteractive[/i:342b03017d]

    Anyone know how to limit the amount of databases a perticular user can use?[/quote:342b03017d]

    Say you have a customer who requires a postgresql db for his site. Lets also say that on this plan he is allowed (1) postgresql database and any additional ones have to be purchased for say $8 additional per month. But he only wants (1) so lets give it to him.


    First, log in as postgres

    Click on USER ADMIN&NEW USER
    Enter his USERNAME, Place check mark in the CREATEDB box, and enter his PASSWORD. Click SAVE

    Logout

    Log in as the user. You will see that he has no db's yet so create one for him. In the center of your screen you will see a box that says, CREATE NEW DATABASE. Enter the name of the new database.

    Logout

    Now you want to make sure that he cannot create any more databases because our scenerio says he can only have one so we need to remove his access to create anymore.

    Log back in as superuser, postgres:

    Click on USER ADMIN&then click on the EDIT tab for the user.
    REMOVE the check make from the users CREATE DB TAB and SAVE.

    DONE!

    Log back in as the user to check. You will notice that the CREATE DATABASE BOX is now gone and he has access to only one database, his own.

    REMEMBER, a database created by a user is OWNED by that user. This is not true in the case of the postgres account. It has access to all databases including roots.

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Anyone have any advice as to what the best ./configure line options might be?
    Beau Henderson

  7. #7
    ozzi4648
    Guest

    Default

    [quote:ce98560f8b][i:ce98560f8b]Originally posted by iminteractive[/i:ce98560f8b]

    Anyone have any advice as to what the best ./configure line options might be?[/quote:ce98560f8b]

    Not happy with my example? Get yourself a copy of SQL and learn the commands from the command line.

  8. #8
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Your example? Im wondering what the best ./configure would be when installing postgre.
    Beau Henderson

  9. #9
    ozzi4648
    Guest

    Default

    [quote:ae1f8f3e3f][i:ae1f8f3e3f]Originally posted by iminteractive[/i:ae1f8f3e3f]

    Your example? Im wondering what the best ./configure would be when installing postgre.[/quote:ae1f8f3e3f]

    Sorry, dont understand you question!

  10. #10
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Ok, your tutorial shows how to install phppgadmin, but it doesn't show how to install postgresql itself.. what im wondering as per the postgre install instructions ( http://postgresql.planetmirror.com/users-lounge/docs/7.2/postgres/install-procedure.html ) is what the best ./configure line might be to take advantage of as many features with postgre as possible.
    Beau Henderson

  11. #11
    ozzi4648
    Guest

    Default

    [quote:6f63b0512f][i:6f63b0512f]Originally posted by iminteractive[/i:6f63b0512f]

    Ok, your tutorial shows how to install phppgadmin, but it doesn't show how to install postgresql itself.. what im wondering as per the postgre install instructions ( http://postgresql.planetmirror.com/users-lounge/docs/7.2/postgres/install-procedure.html ) is what the best ./configure line might be to take advantage of as many features with postgre as possible.[/quote:6f63b0512f]

    Then you need to read those docs again because what i said in my docs is its already installed you just need to turn it on. Postgresql is a standard install on ALL linux installations as far as i know. Have you looked at your php info? You probably dont have php compiled using postgres, again this is in my installation tutorial. Your PHP MUST be compiled with postgres for it to work.

  12. #12
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Yeah, I started off by doing the ./configure for php ( without even thinking of installing postgre ) and it came up with an error for post gre.. I then had a look around and couldn't find anything to suggest that postgre might already be installed. This is on a rh 7.2 box.. ill have a look at my other boxes.
    Beau Henderson

  13. #13
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    strange it is on my 7.1 box. This is anoying.
    Beau Henderson

  14. #14
    ozzi4648
    Guest

    Default

    [quote:9e22e30e4c][i:9e22e30e4c]Originally posted by iminteractive[/i:9e22e30e4c]

    strange it is on my 7.1 box. This is anoying.[/quote:9e22e30e4c]

    Well thats strange, have you thought about applying the latest build of apache to take your box to 1.3.27? I'm also running RH 7.2 Server Version: Apache/1.3.27 (Unix) DAV/1.0.3 mod_perl/1.26 mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.3 FrontPage/5.0.2.2510 mod_ssl/2.8.11 OpenSSL/0.9.6b
    Server Built: Oct 24 2002 12:03:43

    I just dont believe postgresql is not on your server. Thats pretty much impossible.

  15. #15
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    I've got the latest apache, but buildapache doesn't come with postgre.. and its not there at all, ive looked and looked again.
    Beau Henderson

Similar Threads & Tags
Similar threads

  1. PostgreSQL problem...where is phppgadmin?
    By Annibal in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-24-2009, 06:09 PM
  2. PostgreSQL/phpPgAdmin Permission Question
    By mixx941 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-22-2007, 03:12 PM
  3. Can I create PostgreSQL DBs from phpPgAdmin?
    By calande2 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-29-2007, 11:44 AM
  4. Replies: 1
    Last Post: 06-15-2005, 04:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube