<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">That was it: in the old, php71/php.ini and php72/php.ini I had commented out the reference to <div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>auto_prepend_file = '/opt/local/var/db/php70/pear/pear-ini.php’</div><div class=""><br class=""></div><div class="">because I am no longer using pear ports. But it was not commented out in php73/php.ini. Doing so fixed the error.<br class=""><div class=""><br class=""></div><div class="">Thanks!<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 9 Apr2019, at 1:05 PM, Marius Schamschula <<a href="mailto:lists@schamschula.com" class="">lists@schamschula.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Murray,<div class=""><br class=""></div><div class="">The fatal error tells the story: apache is looking for some part of PHP 7.0, but you now have PHP 7.3 installed. The problem may be an old php.ini file somewhere.</div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Apr 9, 2019, at 12:01 PM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m reinstalling MacPorts 2.5.4 under macOS Mojave 10.14.4 (on a new Mac) to which I migrated my old MacPorts config files for apache, php, mysql, etc.<div class=""><br class=""></div><div class="">After starting apache2 (<span style="font-family: Menlo; font-size: 12px;" class="">apache2 @2.4.39_0+preforkmpm</span><span style="font-family: Menlo; font-size: 12px;" class="">) </span>and <span style="font-family: Menlo; font-size: 12px;" class="">php73-apache2handler @7.3.3_0 </span>along with ports they required, syntax of httpd.conf checks out OK:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/opt/local/sbin/apachectl -t</span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Syntax OK</span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-family: Menlo; font-size: 12px; font-variant-ligatures: no-common-ligatures;" class=""><span style="font-family: Helvetica; font-size: 14px;" class="">However, when I start apache (</span></span>sudo /opt/local/sbin/apachectl -k start and browse to localhost (or 127.0.0.1) I get error page:</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><b style="font-family: -webkit-standard;" class="">Warning</b><span style="font-family: -webkit-standard; font-size: inherit;" class="">: Unknown: failed to open stream: No such file or directory in </span><b style="font-family: -webkit-standard;" class="">Unknown</b><span style="font-family: -webkit-standard; font-size: inherit;" class=""> on line </span><b style="font-family: -webkit-standard;" class="">0</b></div><br style="font-family: -webkit-standard;" class=""><b style="font-family: -webkit-standard;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Fatal error</b><span style="font-family: -webkit-standard; font-size: inherit;" class="">: Unknown: Failed opening required '/opt/local/var/db/php70/pear/pear-ini.php' (include_path='.:') in </span><b style="font-family: -webkit-standard;" class="">Unknown</b><span style="font-family: -webkit-standard; font-size: inherit;" class=""> on line </span><b style="font-family: -webkit-standard;" class="">0</b><div class=""><br class="webkit-block-placeholder"></div><div class="">What might be the error’s cause?</div><div class=""><br class=""></div><div class="">My httpd.conf file (with many ommented-out lines removed) appears below.</div><div class=""><br class=""></div><div class="">====== BEGIN httpd.conf ======</div><div class=""><div class="">#</div><div class=""># This is the main Apache HTTP server configuration file. It contains the ...</div><div class="">#</div><div class="">ServerRoot "/opt/local"</div><div class=""><br class=""></div><div class="">Listen 80</div><div class=""><br class=""></div><div class=""># Dynamic Shared Object (DSO) Support</div><div class="">#</div><div class="">LoadModule authn_file_module lib/apache2/modules/mod_authn_file.so</div><div class="">LoadModule authn_core_module lib/apache2/modules/mod_authn_core.so</div><div class="">LoadModule authz_host_module lib/apache2/modules/mod_authz_host.so</div><div class="">LoadModule authz_groupfile_module lib/apache2/modules/mod_authz_groupfile.so</div><div class="">LoadModule authz_user_module lib/apache2/modules/mod_authz_user.so</div><div class="">LoadModule authz_core_module lib/apache2/modules/mod_authz_core.so</div><div class="">LoadModule access_compat_module lib/apache2/modules/mod_access_compat.so</div><div class="">LoadModule auth_basic_module lib/apache2/modules/mod_auth_basic.so</div><div class="">LoadModule reqtimeout_module lib/apache2/modules/mod_reqtimeout.so</div><div class="">LoadModule include_module lib/apache2/modules/mod_include.so</div><div class="">LoadModule filter_module lib/apache2/modules/mod_filter.so</div><div class="">LoadModule mime_module lib/apache2/modules/mod_mime.so</div><div class="">LoadModule log_config_module lib/apache2/modules/mod_log_config.so</div><div class="">LoadModule env_module lib/apache2/modules/mod_env.so</div><div class="">LoadModule mime_magic_module lib/apache2/modules/mod_mime_magic.so</div><div class="">LoadModule headers_module lib/apache2/modules/mod_headers.so</div><div class="">LoadModule setenvif_module lib/apache2/modules/mod_setenvif.so</div><div class="">LoadModule version_module lib/apache2/modules/mod_version.so</div><div class="">LoadModule proxy_module lib/apache2/modules/mod_proxy.so</div><div class="">LoadModule slotmem_shm_module lib/apache2/modules/mod_slotmem_shm.so</div><div class="">LoadModule ssl_module lib/apache2/modules/mod_ssl.so</div><div class="">LoadModule unixd_module lib/apache2/modules/mod_unixd.so</div><div class="">LoadModule status_module lib/apache2/modules/mod_status.so</div><div class="">LoadModule autoindex_module lib/apache2/modules/mod_autoindex.so</div><div class="">LoadModule vhost_alias_module lib/apache2/modules/mod_vhost_alias.so</div><div class="">LoadModule negotiation_module lib/apache2/modules/mod_negotiation.so</div><div class="">LoadModule dir_module lib/apache2/modules/mod_dir.so</div><div class="">LoadModule userdir_module lib/apache2/modules/mod_userdir.so</div><div class="">LoadModule alias_module lib/apache2/modules/mod_alias.so</div><div class="">LoadModule rewrite_module lib/apache2/modules/mod_rewrite.so</div><div class="">LoadModule socache_shmcb_module lib/apache2/modules/mod_socache_shmcb.so</div><div class="">LoadModule php7_module lib/apache2/modules/mod_php73.so</div><div class="">LoadModule apreq_module lib/apache2/modules/mod_apreq2.so</div><div class="">LoadModule perl_module lib/apache2/modules/mod_perl.so</div><div class=""><br class=""></div><div class=""><IfModule unixd_module></div><div class="">User daemon</div><div class="">Group daemon</div><div class=""><br class=""></div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""># 'Main' server configuration</div><div class=""><br class=""></div><div class=""># ServerAdmin <a href="mailto:somebody@somewhere.com" class="">somebody@somewhere.com</a></div><div class=""><br class=""></div><div class="">ServerName localhost</div><div class=""><br class=""></div><div class=""><Directory /></div><div class=""> AllowOverride none</div><div class=""> Require all denied</div><div class=""></Directory></div><div class=""><br class=""></div><div class="">DocumentRoot "/opt/local/www/apache2/html"</div><div class=""><Directory "/opt/local/www/apache2/html"></div><div class=""> Options Indexes FollowSymLinks</div><div class=""> AllowOverride None</div><div class=""> Require all granted</div><div class=""></Directory></div><div class=""><br class=""></div><div class=""><IfModule dir_module></div><div class=""> DirectoryIndex index.php index.html</div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""><Files ".ht*"></div><div class=""> Require all denied</div><div class=""></Files></div><div class=""><br class=""></div><div class=""><Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])"></div><div class=""> Order allow,deny</div><div class=""> Deny from all</div><div class=""> Satisfy All</div><div class=""></Files></div><div class=""><Files "rsrc"></div><div class=""> Order allow,deny</div><div class=""> Deny from all</div><div class=""> Satisfy All</div><div class=""></Files></div><div class=""><DirectoryMatch ".*\.\.namedfork"></div><div class=""> Order allow,deny</div><div class=""> Deny from all</div><div class=""> Satisfy All</div><div class=""></DirectoryMatch></div><div class=""><br class=""></div><div class="">## For MathJax</div><div class=""><Directory "/usr/local/share/MathJax/"></div><div class=""> Options Indexes FollowSymlinks</div><div class=""> AllowOverride None</div><div class=""> Order allow,deny</div><div class=""> Allow from all</div><div class=""> AddDefaultCharset off</div><div class=""></Directory></div><div class=""><br class=""></div><div class="">Alias /MathJax /usr/local/share/MathJax/</div><div class="">#</div><div class="">ErrorLog "var/log/apache2/error_log"</div><div class="">LogLevel warn</div><div class=""><br class=""></div><div class=""><IfModule log_config_module></div><div class=""> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined</div><div class=""> LogFormat "%h %l %u %t \"%r\" %>s %b" common</div><div class=""><br class=""></div><div class=""> <IfModule logio_module></div><div class=""> # You need to enable mod_logio.c to use %I and %O</div><div class=""> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio</div><div class=""> </IfModule></div><div class=""><br class=""></div><div class=""> CustomLog "var/log/apache2/access_log" common</div><div class=""><br class=""></div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""><IfModule alias_module></div><div class=""> ScriptAlias /cgi-bin/ "/opt/local/www/apache2/cgi-bin/"</div><div class=""><br class=""></div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""><Directory "/opt/local/www/apache2/cgi-bin"></div><div class=""> AllowOverride None</div><div class=""> Options None</div><div class=""> Require all granted</div><div class=""></Directory></div><div class=""><br class=""></div><div class=""><IfModule headers_module></div><div class=""> RequestHeader unset Proxy early</div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""><IfModule mime_module></div><div class=""><br class=""></div><div class=""> TypesConfig etc/apache2/mime.types</div><div class=""><br class=""></div><div class=""> AddType application/x-compress .Z</div><div class=""> AddType application/x-gzip .gz .tgz</div><div class=""><br class=""></div><div class=""> AddHandler application/x-httpd-php .php</div><div class=""> AddHandler application/x-httpd-php-source .phps</div><div class=""><br class=""></div><div class=""> </IfModule></div><div class=""><br class=""></div><div class="">MIMEMagicFile etc/apache2/magic</div><div class=""><br class=""></div><div class=""># Fancy directory listings</div><div class="">Include etc/apache2/extra/httpd-autoindex.conf</div><div class=""><br class=""></div><div class=""># User home directories</div><div class="">Include etc/apache2/extra/httpd-userdir.conf</div><div class=""><br class=""></div><div class=""># Virtual hosts</div><div class="">Include etc/apache2/extra/httpd-vhosts.conf</div><div class=""><br class=""></div><div class=""># Local access to the Apache HTTP Server Manual</div><div class="">Include etc/apache2/extra/httpd-manual.conf</div><div class=""><br class=""></div><div class=""># Include PHP configurations</div><div class="">## Include etc/apache2/extra/mod_php56.conf</div><div class="">Include etc/apache2/extra/mod_php73.conf</div><div class=""><br class=""></div><div class=""># Configure mod_proxy_html to understand HTML4/XHTML1</div><div class=""><IfModule proxy_html_module></div><div class="">Include etc/apache2/extra/proxy-html.conf</div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""># Secure (SSL/TLS) connections</div><div class="">Include etc/apache2/extra/httpd-ssl.conf</div><div class=""><IfModule ssl_module></div><div class="">SSLRandomSeed startup builtin</div><div class="">SSLRandomSeed connect builtin</div><div class=""></IfModule></div><div class=""><br class=""></div><div class=""># Local access to phpmyadmin installation</div><div class="">Include etc/apache2/extra/httpd-phpmyadmin.conf</div><div class=""><br class=""></div><div class=""># Configure drupal installation</div><div class="">Include etc/apache2/drupal.conf</div></div><div class=""><br class=""></div><div class="">==== END httpd.conf ====</div><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span>Mobile (413)-427-5334<br class=""><br class="">
</div>
<br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span>Mobile (413)-427-5334<br class=""><br class="">
</div>
<br class=""></div></div></body></html>