FreeBSD 10.3, Postgresql 9.5, PHP 7.0 on vultr.com

Next: Installing FreeBSD Ports (PHP 7.0) UP: TOC

Paragraph......

pkg install databases/postgresql95-server
Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 4 package(s) will be affected (of 0 checked): New packages to be INSTALLED: postgresql95-server: 9.5.3 libxml2: 2.9.3 postgresql95-client: 9.5.3 perl5: 5.20.3_13 Number of packages to be installed: 4 The process will require 82 MiB more space. 20 MiB to be downloaded. Proceed with this action? [y/N]:y Fetching postgresql95-server-9.5.3.txz: 100% 4 MiB 3.8MB/s 00:01 Fetching libxml2-2.9.3.txz: 100% 789 KiB 808.0kB/s 00:01 Fetching postgresql95-client-9.5.3.txz: 100% 2 MiB 2.3MB/s 00:01 Fetching perl5-5.20.3_13.txz: 100% 13 MiB 4.6MB/s 00:03 Checking integrity... done (0 conflicting) [1/4] Installing perl5-5.20.3_13... [1/4] Extracting perl5-5.20.3_13: 100% [2/4] Installing libxml2-2.9.3... [2/4] Extracting libxml2-2.9.3: 100% [3/4] Installing postgresql95-client-9.5.3... [3/4] Extracting postgresql95-client-9.5.3: 100% [4/4] Installing postgresql95-server-9.5.3... ===> Creating groups. Creating group 'pgsql' with gid '70'. ===> Creating users Creating user 'pgsql' with uid '70'. =========== BACKUP YOUR DATA! ============= As always, backup your data before upgrading. If the upgrade leads to a higher minor revision (e.g. 8.3.x -> 8.4), a dump and restore of all databases is required. This is *NOT* done by the port! Press ctrl-C *now* if you need to pg_dump. =========================================== [4/4] Extracting postgresql95-server-9.5.3: 100% Message from perl5-5.20.3_13: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. Message from postgresql95-client-9.5.3: The PostgreSQL port has a collection of "side orders": postgresql-docs For all of the html documentation p5-Pg A perl5 API for client access to PostgreSQL databases. postgresql-tcltk If you want tcl/tk client support. postgresql-jdbc For Java JDBC support. postgresql-odbc For client access from unix applications using ODBC as access method. Not needed to access unix PostgreSQL servers from Win32 using ODBC. See below. ruby-postgres, py-PyGreSQL For client access to PostgreSQL databases using the ruby & python languages. postgresql-plperl, postgresql-pltcl & postgresql-plruby For using perl5, tcl & ruby as procedural languages. postgresql-contrib Lots of contributed utilities, postgresql functions and datatypes. There you find pg_standby, pgcrypto and many other cool things. etc... Message from postgresql95-server-9.5.3: For procedural languages and postgresql functions, please note that you might have to update them when updating the server. If you have many tables and many clients running, consider raising kern.maxfiles using sysctl(8), or reconfigure your kernel appropriately. The port is set up to use autovacuum for new databases, but you might also want to vacuum and perhaps backup your database regularly. There is a periodic script, /usr/local/etc/periodic/daily/502.pgsql, that you may find useful. You can use it to backup and perfom vacuum on all databases nightly. Per default, it perfoms `vacuum analyze'. See the script for instructions. For autovacuum settings, please review ~pgsql/data/postgresql.conf. If you plan to access your PostgreSQL server using ODBC, please consider running the SQL script /usr/local/share/postgresql/odbc.sql to get the functions required for ODBC compliance. Please note that if you use the rc script, /usr/local/etc/rc.d/postgresql, to initialize the database, unicode (UTF-8) will be used to store character data by default. Set postgresql_initdb_flags or use login.conf settings described below to alter this behaviour. See the start rc script for more info. To set limits, environment stuff like locale and collation and other things, you can set up a class in /etc/login.conf before initializing the database. Add something similar to this to /etc/login.conf: --- postgres:\ :lang=en_US.UTF-8:\ :setenv=LC_COLLATE=C:\ :tc=default: --- and run `cap_mkdb /etc/login.conf'. Then add 'postgresql_class="postgres"' to /etc/rc.conf. ====================================================================== To initialize the database, run /usr/local/etc/rc.d/postgresql initdb You can then start PostgreSQL by running: /usr/local/etc/rc.d/postgresql start For postmaster settings, see ~pgsql/data/postgresql.conf NB. FreeBSD's PostgreSQL port logs to syslog by default See ~pgsql/data/postgresql.conf for more info ====================================================================== To run PostgreSQL at startup, add 'postgresql_enable="YES"' to /etc/rc.conf #
echo 'postgresql_enable="YES"' >> /etc/rc.conf
cat /etc/rc.conf
hostname="wnk..." ifconfig_vtnet0="dhcp" sshd_enable="YES" static_routes=linklocal postgresql_enable="YES" Next: Installing FreeBSD Ports (PHP 7.0) UP: TOC