Unbound DNS over TLS Errors
I am using unbound DNS over TLS. I consistently get these error's but have found little online about what they mean. /var/log/messages error: SSL_handshake syscall: Connection reset by peer I'm probably looking in the wrong place. Thanks.
Re: httpd, PHP7.4, phpIPAM, MariaDB
Thanks for the info. I really appreciate it! On Wed, Feb 10, 2021 at 1:46 PM Stuart Henderson wrote: > On 2021/02/10 11:32, Jesse Barton wrote: > > After fully reading the /usr/local/share/doc/pkg-readmes/php-7.4 readme > I found that > > there is a third party package called pecl-libsodium so I searched for > that in openports.se and > > tried installing it > > but had no luck. I also noticed there is a pecl-mcrypt > https://openports.se/security/ > > pecl-mcrypt > > So I tried installing that also with no success. Am I missing something? > > Those examples are outdated, libsodium is in PHP core now, and as they're > now built for the various PHP versions the packages are renamed to > pecl7X-foo. > > > - various useful third-party extensions from the PECL repository have > > also been packaged. Examples include pecl-memcache (for use with > > sysutils/memcached), pecl-imagick (image manipulation using ImageMagick), > > pecl-libsodium (a wrapper for the libsodium cryptographic library), etc. > > I'll fix that for -current but won't pull it back to -stable until the > next PHP version update. >
Re: httpd, PHP7.4, phpIPAM, MariaDB
Nevermind, I'm a idiot. I had the package name wrong. On Wed, Feb 10, 2021 at 11:32 AM Jesse Barton wrote: > After fully reading the /usr/local/share/doc/pkg-readmes/php-7.4 readme I > found that > there is a third party package called pecl-libsodium so I searched for > that in openports.se and tried installing it > but had no luck. I also noticed there is a pecl-mcrypt > https://openports.se/security/pecl-mcrypt > So I tried installing that also with no success. Am I missing something? > > IPAM% doas pkg_add pecl-mcrypt > quirks-3.441 signed on 2021-02-10T15:19:41Z > Can't find pecl-mcrypt > > IPAM% doas pkg_add pecl-libsodium > quirks-3.441 signed on 2021-02-10T15:19:41Z > Can't find pecl-libsodium > > - various useful third-party extensions from the PECL repository have > also been packaged. Examples include pecl-memcache (for use with > sysutils/memcached), pecl-imagick (image manipulation using ImageMagick), > pecl-libsodium (a wrapper for the libsodium cryptographic library), etc. > > On Wed, Feb 10, 2021 at 9:35 AM Jesse Barton > wrote: > >> Thanks Stuart that's super helpful I'm new to openbsd and must have >> completely missed that those readmes existed. I got everything working last >> night minus a SAML integration I'm trying to setup that says it requires >> php-mcrypt but I noticed that php-mcrypt is marked obsolete in ports. Looks >> like it's deprecated as a whole. Is there an alternative anyone recommends >> I use? >> >> On Wed, Feb 10, 2021 at 2:23 AM Stuart Henderson >> wrote: >> >>> On 2021-02-09, Jesse Barton wrote: >>> > Hey OpenBSD Community, >>> > >>> > I am working on getting phpIPAM setup on a OpenBSD system but so far >>> i'm >>> > running into an issue with connecting the php site to the database. >>> > >>> > I used parts of these documentation pages to get everything working. >>> > https://www.php.net/manual/en/install.unix.openbsd.php >>> > https://phpipam.net/documents/installation/ >>> >>> See the OpenBSD documentation installed by the packages (and pointed out >>> by pkg_add when you installed them): >>> >>> /usr/local/share/doc/pkg-readmes/mariadb-server >>> /usr/local/share/doc/pkg-readmes/php-7.4 >>> >>> >>>
Re: httpd, PHP7.4, phpIPAM, MariaDB
After fully reading the /usr/local/share/doc/pkg-readmes/php-7.4 readme I found that there is a third party package called pecl-libsodium so I searched for that in openports.se and tried installing it but had no luck. I also noticed there is a pecl-mcrypt https://openports.se/security/pecl-mcrypt So I tried installing that also with no success. Am I missing something? IPAM% doas pkg_add pecl-mcrypt quirks-3.441 signed on 2021-02-10T15:19:41Z Can't find pecl-mcrypt IPAM% doas pkg_add pecl-libsodium quirks-3.441 signed on 2021-02-10T15:19:41Z Can't find pecl-libsodium - various useful third-party extensions from the PECL repository have also been packaged. Examples include pecl-memcache (for use with sysutils/memcached), pecl-imagick (image manipulation using ImageMagick), pecl-libsodium (a wrapper for the libsodium cryptographic library), etc. On Wed, Feb 10, 2021 at 9:35 AM Jesse Barton wrote: > Thanks Stuart that's super helpful I'm new to openbsd and must have > completely missed that those readmes existed. I got everything working last > night minus a SAML integration I'm trying to setup that says it requires > php-mcrypt but I noticed that php-mcrypt is marked obsolete in ports. Looks > like it's deprecated as a whole. Is there an alternative anyone recommends > I use? > > On Wed, Feb 10, 2021 at 2:23 AM Stuart Henderson > wrote: > >> On 2021-02-09, Jesse Barton wrote: >> > Hey OpenBSD Community, >> > >> > I am working on getting phpIPAM setup on a OpenBSD system but so far i'm >> > running into an issue with connecting the php site to the database. >> > >> > I used parts of these documentation pages to get everything working. >> > https://www.php.net/manual/en/install.unix.openbsd.php >> > https://phpipam.net/documents/installation/ >> >> See the OpenBSD documentation installed by the packages (and pointed out >> by pkg_add when you installed them): >> >> /usr/local/share/doc/pkg-readmes/mariadb-server >> /usr/local/share/doc/pkg-readmes/php-7.4 >> >> >>
Re: httpd, PHP7.4, phpIPAM, MariaDB
Thanks Stuart that's super helpful I'm new to openbsd and must have completely missed that those readmes existed. I got everything working last night minus a SAML integration I'm trying to setup that says it requires php-mcrypt but I noticed that php-mcrypt is marked obsolete in ports. Looks like it's deprecated as a whole. Is there an alternative anyone recommends I use? On Wed, Feb 10, 2021 at 2:23 AM Stuart Henderson wrote: > On 2021-02-09, Jesse Barton wrote: > > Hey OpenBSD Community, > > > > I am working on getting phpIPAM setup on a OpenBSD system but so far i'm > > running into an issue with connecting the php site to the database. > > > > I used parts of these documentation pages to get everything working. > > https://www.php.net/manual/en/install.unix.openbsd.php > > https://phpipam.net/documents/installation/ > > See the OpenBSD documentation installed by the packages (and pointed out > by pkg_add when you installed them): > > /usr/local/share/doc/pkg-readmes/mariadb-server > /usr/local/share/doc/pkg-readmes/php-7.4 > > >
Re: httpd, PHP7.4, phpIPAM, MariaDB
Using 127.0.0.1 did the job appreciate it. On Tue, Feb 9, 2021 at 6:28 PM Steve Williams < st...@williamsitconsulting.com> wrote: > Hi, > > It is running in a chroot. No access to "standard" networking files. > hosts, resolv.conf, etc. > > Probably easiest to put the actual IP address in. I use a socket and > put in in the chroot folder. Not sure which is better. > > If you run into any other network type issues, suspect the lack of DNS > resolution (hosts, resolv.conf, etc). > > They can be copied into the chroot folder, but then maintenance is an > issue (and no, symbolic link won't work). > > Cheers, > Steve W. > > On 09/02/2021 4:30 p.m., Jesse Barton wrote: > > Hey OpenBSD Community, > > > > I am working on getting phpIPAM setup on a OpenBSD system but so far i'm > > running into an issue with connecting the php site to the database. > > > > I used parts of these documentation pages to get everything working. > > https://www.php.net/manual/en/install.unix.openbsd.php > > https://phpipam.net/documents/installation/ > > > > Here is the specific message im getting in my error.log > > > > PHP message: PHP Fatal error: Uncaught Exception: Could not connect to > > database! SQLSTATE[HY000] [2002] No such file or directory in > > /htdocs/ipam/functions/classes/class.PDO.php:159 > > Stack trace: > > #0 /htdocs/ipam/functions/classes/class.PDO.php(1053): DB->connect() > > #1 /htdocs/ipam/functions/classes/class.PDO.php(298): > > Database_PDO->connect() > > #2 /htdocs/ipam/functions/classes/class.Common.php(236): DB->escape() > > #3 /htdocs/ipam/functions/classes/class.Common.php(411): > > Common_functions->fetch_object() > > #4 /htdocs/ipam/functions/classes/class.User.php(136): > > Common_functions->get_settings() > > #5 /htdocs/ipam/index.php(29): User->__construct() > > #6 {main} > >thrown in /htdocs/ipam/functions/classes/class.PDO.php on line 159 > > > > Im able to log into the database with the desired user running > > # mysql -u phpipam -p > > > > my config.php is set > > $db['host'] = 'localhost'; > > $db['user'] = 'username'; > > $db['pass'] = 'password'; > > $db['name'] = 'phpipam'; > > $db['port'] = 3306; > > > > If there is any other information that would be helpful in > troubleshooting > > this i'm all ears. > >
httpd, PHP7.4, phpIPAM, MariaDB
Hey OpenBSD Community, I am working on getting phpIPAM setup on a OpenBSD system but so far i'm running into an issue with connecting the php site to the database. I used parts of these documentation pages to get everything working. https://www.php.net/manual/en/install.unix.openbsd.php https://phpipam.net/documents/installation/ Here is the specific message im getting in my error.log PHP message: PHP Fatal error: Uncaught Exception: Could not connect to database! SQLSTATE[HY000] [2002] No such file or directory in /htdocs/ipam/functions/classes/class.PDO.php:159 Stack trace: #0 /htdocs/ipam/functions/classes/class.PDO.php(1053): DB->connect() #1 /htdocs/ipam/functions/classes/class.PDO.php(298): Database_PDO->connect() #2 /htdocs/ipam/functions/classes/class.Common.php(236): DB->escape() #3 /htdocs/ipam/functions/classes/class.Common.php(411): Common_functions->fetch_object() #4 /htdocs/ipam/functions/classes/class.User.php(136): Common_functions->get_settings() #5 /htdocs/ipam/index.php(29): User->__construct() #6 {main} thrown in /htdocs/ipam/functions/classes/class.PDO.php on line 159 Im able to log into the database with the desired user running # mysql -u phpipam -p my config.php is set $db['host'] = 'localhost'; $db['user'] = 'username'; $db['pass'] = 'password'; $db['name'] = 'phpipam'; $db['port'] = 3306; If there is any other information that would be helpful in troubleshooting this i'm all ears.