=> "/opt/local/sbin/pkg_add" ["-K", "/opt/local/pkg", "checkperms-1.12", "cwrappers-20220403", "pax-20210219", "php82-tt-rss-1.12nb2", "unzip-6.0nb11"] pkg_add: package `cwrappers-20220403' already recorded as installed xmlcatmgr-2.2nb1: copying /opt/local/share/examples/xmlcatmgr/catalog.etc.sgml to /opt/local/etc/sgml/catalog xmlcatmgr-2.2nb1: copying /opt/local/share/examples/xmlcatmgr/catalog.etc.xml to /opt/local/etc/xml/catalog xmlcatmgr-2.2nb1: copying /opt/local/share/examples/xmlcatmgr/catalog.share.sgml to /opt/local/share/sgml/catalog xmlcatmgr-2.2nb1: copying /opt/local/share/examples/xmlcatmgr/catalog.share.xml to /opt/local/share/xml/catalog openssl-3.6.4nb1: copying /opt/local/share/examples/openssl/openssl.cnf to /opt/local/etc/openssl/openssl.cnf php82-8.2.33nb1: copying /opt/local/share/examples/php/8.2/php.ini-production to /opt/local/etc/php/8.2/php.ini php82-mbstring-8.2.33nb1: copying /opt/local/share/examples/php/8.2/mbstring.ini to /opt/local/etc/php/8.2/php.d/mbstring.ini php82-iconv-8.2.33nb2: copying /opt/local/share/examples/php/8.2/iconv.ini to /opt/local/etc/php/8.2/php.d/iconv.ini cyrus-sasl-2.1.28nb2: Creating user ``cyrus'' passwd: password information changed for cyrus openldap-client-2.7.0: copying /opt/local/share/examples/openldap/ldap.conf to /opt/local/etc/openldap/ldap.conf postgresql14-client-14.24: copying /opt/local/share/postgresql/pg_service.conf.sample to /opt/local/etc/postgresql/pg_service.conf postgresql14-client-14.24: copying /opt/local/share/postgresql/psqlrc.sample to /opt/local/etc/postgresql/psqlrc php82-pgsql14-8.2.33nb1: copying /opt/local/share/examples/php/8.2/pgsql.ini to /opt/local/etc/php/8.2/php.d/pgsql.ini php82-tt-rss-1.12nb2: Creating group ``www'' php82-tt-rss-1.12nb2: Creating user ``www'' passwd: password information changed for www php82-tt-rss-1.12nb2: copying /opt/local/share/tt-rss/config.php-dist to /opt/local/share/tt-rss/config.php =========================================================================== $NetBSD: MESSAGE,v 1.2 2025/02/08 02:59:45 taca Exp $ To process PHP scripts, you will need a PHP-enabled HTTP server. You may either configure the HTTP server to use the PHP CGI binary located in /opt/local/libexec/cgi-bin/php82 or you may install a PHP module for your HTTP server, e.g. www/ap-php. =========================================================================== =========================================================================== $NetBSD: MESSAGE,v 1.5 2024/04/24 12:46:59 jperkin Exp $ cyrus-sasl-2.1.28nb2 by default does *not* install any authentication plugin modules. Until the necessary authentication plugin modules are installed, e.g. security/cy2-crammd5 or security/cy2-gssapi, you will probably get errors about "no appropriate mechs available". To allow plaintext authentication without using the auxprop mechanism, the package security/cyrus-saslauthd should be installed. =========================================================================== =========================================================================== $NetBSD: MESSAGE,v 1.6 2017/04/05 12:33:49 fhajny Exp $ To use php-tt-rss with nginx 1.6 and php 5.4, you will need to perform the following steps. 1. Install www/nginx and www/php-fpm. 2. Install PostgreSQL database server. # cd databases/postgresql93-server # make install 3. Start PostgreSQL server. # /opt/local/etc/rc.d/pgsql start 4. Add PostgreSQL user, ttrss $ createuser -d -U pgsql ttrss 5. Set password for ttrss user $ psql -U pgsql template1 psql (9.3.4) Type "help" for help. template1=# alter user ttrss with password 'ttrss_user_password'; ALTER ROLE template1=# \q 6. Create database for ttrss, ttrss_db $ createdb ttrss_db -O ttrss -U ttrss 7. Check created database $ psql -U pgsql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+-------+-----------+---------+-------+------------------- (snip) ttrss_db | ttrss | SQL_ASCII | C | C | 8. Initialize database $ psql -U ttrss -d ttrss_db -p 5432 -f \ /opt/local/share/tt-rss/schema/ttrss_schema_pgsql.sql 9. Be sure to have the following lines in /opt/local/etc/php.ini. extension=iconv.so extension=json.so extension=mbstring.so extension=pgsql.so 10. Be sure to have the following in /opt/local/etc/php-fpm.conf listen.allowed_clients = 127.0.0.1 11. Be sure to have the following lines in /opt/local/etc/nginx/nginx.conf http { upstream php-handler { server 127.0.0.1:9000; } server { listen 80; root /opt/local/share/tt-rss; server_name YOUR_SERVER_NAME; location ~ \..*/.*\.php$ {return 404;} location ~* ^/(.*\.php)$ { try_files $uri $uri/ index.php; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_param PATH_INFO $2; fastcgi_pass php-handler; } } 12. Edit /opt/local/share/tt-rss/config.php, be sure to have the following lines. define('DB_TYPE', "pgsql"); define('DB_HOST', "localhost"); define('DB_USER', "ttrss"); define('DB_NAME', "ttrss_db"); define('DB_PASS', "ttrss_user_password"); define('SELF_URL_PATH', 'http://localhost/'); 13. Start PHP-FPM daemon. /opt/local/etc/rc.d/php_fpm start 14. Start nginx httpd server. /opt/local/etc/rc.d/nginx start 15. Access http://localhost/ , and login with login/password = "admin"/"password". ===========================================================================