From owner-freebsd-ports@freebsd.org Wed Mar 14 22:04:41 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 857EFF4D021 for ; Wed, 14 Mar 2018 22:04:41 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4A47930F for ; Wed, 14 Mar 2018 22:04:41 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.ysv.freebsd.org (Postfix) id CE7D6F4D020; Wed, 14 Mar 2018 22:04:40 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA9E8F4D01F for ; Wed, 14 Mar 2018 22:04:40 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7C21792F3 for ; Wed, 14 Mar 2018 22:04:11 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id 59c0c378 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 14 Mar 2018 16:04:03 -0600 (MDT) From: Adam Weinberger Message-Id: Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: 11.1R, PHP7.2.3: mysqli not loading. What am I missing? Date: Wed, 14 Mar 2018 16:04:01 -0600 In-Reply-To: Cc: freebsd-ports To: scratch65535@att.net References: <1i6iad177s9bsij147a3qmrsu641dnsvt9@4ax.com> X-Mailer: Apple Mail (2.3445.5.20) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 22:04:41 -0000 Do you have WITH_MPM in your make.conf? # Adam -- Adam Weinberger adamw@adamw.org http://www.adamw.org > On 14 Mar, 2018, at 13:46, scratch65535@att.net wrote: > > What's happening is that, although I built both apache24 and > php72 without any optional flavoring, apache is looking in the > thread-safe subtree (-zts) for php modules when it shouldn't be, > since it's loading the prefork module,. > > I've looked, but can't see a switch to turn that off. > > And php defaults to non-thread-safe, and doesn't appear to have a > wayto build for threads other than "force zend thread-safe" when > building extensions, which doesn't really seem to take care of > the problem, so never the twain shall meet. > > If there's a switch I'm missing seeing, I hope someone will tell > me where to find it, because I'm not seeing it! > > > [Default] On Wed, 14 Mar 2018 08:51:10 -0400, > wrote: > >> from pkg info -x php72: >> >> =================== >> mod_php72-7.2.3 >> php72-7.2.3 >> php72-ctype-7.2.3 >> php72-dom-7.2.3 >> php72-extensions-1.0 >> php72-filter-7.2.3 >> php72-gd-7.2.3 >> php72-hash-7.2.3 >> php72-iconv-7.2.3 >> php72-json-7.2.3 >> php72-mbstring-7.2.3 >> php72-mysqli-7.2.3 >> php72-opcache-7.2.3 >> php72-openssl-7.2.3 >> php72-pdo-7.2.3 >> php72-pdo_sqlite-7.2.3 >> php72-phar-7.2.3 >> php72-posix-7.2.3 >> php72-session-7.2.3 >> php72-simplexml-7.2.3 >> php72-sockets-7.2.3 >> php72-sodium-7.2.3 >> php72-sqlite3-7.2.3 >> php72-tokenizer-7.2.3 >> php72-xml-7.2.3 >> php72-xmlreader-7.2.3 >> php72-xmlwriter-7.2.3 >> ===================== >> >> >> from /usr/local/etc/php.ini: >> ===================== >> ;extension=bz2 >> ;extension=curl >> ;extension=fileinfo >> ;extension=gd2 >> ;extension=gettext >> ;extension=gmp >> ;extension=intl >> ;extension=imap >> ;extension=interbase >> ;extension=ldap >> ;extension=mbstring >> ;extension=exif ; Must be after mbstring as it depends on it >> >> extension=mysqli >> >> ;extension=oci8_12c ; Use with Oracle Database 12c InstantClient >> >> extension=openssl >> >> ;extension=pdo_firebird >> ;extension=pdo_mysql >> ;extension=pdo_oci >> ;extension=pdo_odbc >> ;extension=pdo_pgsql >> ;extension=pdo_sqlite >> ;extension=pgsql >> ;extension=shmop >> ====================== >> >> Should work, right? >> >> but from phpinfo: >> ============ >> libxml ... >> mysqlnd ... >> ============ >> >> and when I run a test job >> >> ============================================ >> Fatal error: Uncaught Error: Call to undefined function >> mysqli_connect() >> ================== >> >> Am I forgetting something? >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"