// for more see:
// http://www.php.net/manual/en/function.pg-connect.php
// http://www.postgresql.org/docs/8.4/interactive/libpq-connect.html
-$db = new PGsqlEngine("dbname='smoke' user='smoke' host='localhost' port='20987'");
+$db = new PGsqlEngine("dbname='smoke' user='smoke' host='localhost' port='@PGPORT@'");
//set table-prefix (must be non-empty, leave the default if in doubt)
$db->setPrefix("smoke2_");
//set this only if you want debug messages on error (developers only):
+++ /dev/null
-
-LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
-LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
-LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
-LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
-
cd db/etc
for i in *.tmpl ; do
sed "s,@@,$PG_DD," <$i | \
- sed "s,@PGPORT@,$PG_PORT," \
+ sed "s,@PGPORT@,$PG_PORT," | \
+ sed "s,@HTTPPORT@,$HTTP_PORT," | \
+ sed "s,@HTTPSPORT@,$HTTPS_PORT," \
>${i%.tmpl}
done
)
cd apache/etc
for i in *.tmpl ; do
sed "s,@@,$ADIR," <$i | \
+ sed "s,@PGPORT@,$PG_PORT," | \
sed "s,@HTTPPORT@,$HTTP_PORT," | \
- sed "s,@HTTPSPORT@,$HTTPS_PORT," \
+ sed "s,@HTTPSPORT@,$HTTPS_PORT," \
>${i%.tmpl}
done
ln -sf ../../ssl/server.* . || true