First time poster, will try to include pertinent info:

I'm trying to get Nagios running on OpenBSD 6.4, CGIs aren't executing,
seems to be due to PHP not running. My problem is similar to
http://daemonforums.org/showthread.php?t=9980 

Looked in /usr/local/share/doc/pkg-readmes/ and the instructions for apache
say:
    ln -sf /var/www/conf/modules.sample/php-7.2.conf \
        /var/www/conf/modules/php.conf

but the php.conf file doesn't exist:

root@ root $ ls -la /var/www/conf/modules.sample/
total 12
drwxr-xr-x  2 root  daemon   512 Dec 19 14:59 .
drwxr-xr-x  4 root  daemon   512 Dec 19 14:49 ..
-rw-r--r--  1 root  bin     1695 Oct 11 22:11 nagios.conf.dist

I tried installing php-7.1.22 and php-7.0.32p1 but neither brought the
php.conf file. php-fm.conf files are there and it starts but I can't find
the apache / php config file.

root@ root $ cd /usr/local/share/examples/
root@ examples $ ls
apache2 db4     jpeg    nagios  php-7.0 php-7.1 php-7.2
root@ examples $ ls -l php*
php-7.0:
total 336
-rw-r--r--  1 root  bin     16 Oct 11 22:07 gd.ini
-rw-r--r--  1 root  bin     26 Oct 11 22:07 opcache.ini
-rw-r--r--  1 root  bin  23183 Oct 11 22:07 php-fpm.conf
-rw-r--r--  1 root  bin  70427 Oct 11 22:07 php.ini-development
-rw-r--r--  1 root  bin  70641 Oct 11 22:07 php.ini-production

php-7.1:
total 296
-rw-r--r--  1 root  bin     26 Oct 12 04:47 opcache.ini
-rw-r--r--  1 root  bin   4413 Oct 12 04:47 php-fpm.conf
-rw-r--r--  1 root  bin  70962 Oct 12 04:47 php.ini-development
-rw-r--r--  1 root  bin  71176 Oct 12 04:47 php.ini-production

php-7.2:
total 296
-rw-r--r--  1 root  bin     26 Oct 12 04:34 opcache.ini
-rw-r--r--  1 root  bin   4413 Oct 12 04:34 php-fpm.conf
-rw-r--r--  1 root  bin  70116 Oct 12 04:34 php.ini-development
-rw-r--r--  1 root  bin  70570 Oct 12 04:34 php.ini-production


root@ pkg-readmes $ uname -a
OpenBSD boxfan.jti.int 6.4 GENERIC.MP#364 amd64

root@ examples $ pkg_info php
Information for inst:php-7.0.32p1

Comment:
server-side HTML-embedded scripting language

Required by:
php-gd-7.0.32p1

Description:
At the most basic level, PHP can do anything any other CGI program can
do, such as collect form data, generate dynamic page content, or send
and receive cookies.

PHP also has support for talking to other services using protocols such
as IMAP, SNMP, NNTP, POP3, or even HTTP. You can also open raw network
sockets and interact using other protocols.

This package installs a stand-alone binary which can be used for
command-line scripts, as well as an Apache module. It also contains the
pdo_sqlite driver that implements the PHP Data Objects (PDO) interface
to enable access to SQLite 3 databases.

Maintainer: Stuart Henderson <[email protected]>

WWW: http://www.php.net/


Information for inst:php-7.1.22

Comment:
server-side HTML-embedded scripting language

Description:
At the most basic level, PHP can do anything any other CGI program can
do, such as collect form data, generate dynamic page content, or send
and receive cookies.

PHP also has support for talking to other services using protocols such
as IMAP, SNMP, NNTP, POP3, or even HTTP. You can also open raw network
sockets and interact using other protocols.

This package installs a stand-alone binary which can be used for
command-line scripts, as well as an Apache module. It also contains the
pdo_sqlite driver that implements the PHP Data Objects (PDO) interface
to enable access to SQLite 3 databases.

Maintainer: Stuart Henderson <[email protected]>

WWW: http://www.php.net/


Information for inst:php-7.2.10

Comment:
server-side HTML-embedded scripting language

Description:
At the most basic level, PHP can do anything any other CGI program can
do, such as collect form data, generate dynamic page content, or send
and receive cookies.

PHP also has support for talking to other services using protocols such
as IMAP, SNMP, NNTP, POP3, or even HTTP. You can also open raw network
sockets and interact using other protocols.

This package installs a stand-alone binary which can be used for
command-line scripts, as well as an Apache module. It also contains the
pdo_sqlite driver that implements the PHP Data Objects (PDO) interface
to enable access to SQLite 3 databases.

Maintainer: Stuart Henderson <[email protected]>

WWW: http://www.php.net/





--
Sent from: 
http://openbsd-archive.7691.n7.nabble.com/openbsd-user-ports-f108501.html

Reply via email to