The only instance of pear-ini.php I find, on either the old Mac (where apache was working OK) or on the new Mac, is:
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/php/pear-install-phar/files/pear-ini.php <http://rsync.macports.org/release/tarballs/ports/php/pear-install-phar/files/pear-ini.php> > On 9 Apr2019, at 1:03 PM, Ruben Di Battista <rubendibatti...@gmail.com> wrote: > > Wrong permissions on the `pear-ini.php`? > > Just guessing, > > _ > -. .´ |∞∞∞∞ > ', ; |∞∞∞∞∞∞ > ˜˜ |∞∞∞∞∞∞∞∞∞ RdB > ,., |∞∞∞∞∞∞ > .' '. |∞∞∞∞ > -' `’ > > https://rdb.is <https://rdb.is/> > > On 9 April 2019 at 19:01:56, Murray Eisenberg (murrayeisenb...@gmail.com > <mailto:murrayeisenb...@gmail.com>) wrote: > >> 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. >> >> After starting apache2 (apache2 @2.4.39_0+preforkmpm) and >> php73-apache2handler @7.3.3_0 along with ports they required, syntax of >> httpd.conf checks out OK: >> >> /opt/local/sbin/apachectl -t >> Syntax OK >> >> However, when I start apache (sudo /opt/local/sbin/apachectl -k start and >> browse to localhost (or 127.0.0.1) I get error page: >> >> Warning: Unknown: failed to open stream: No such file or directory in >> Unknown on line 0 >> >> Fatal error: Unknown: Failed opening required >> '/opt/local/var/db/php70/pear/pear-ini.php' (include_path='.:') in Unknown >> on line 0 >> >> What might be the error’s cause? >> >> My httpd.conf file (with many ommented-out lines removed) appears below. >> >> ====== BEGIN httpd.conf ====== >> # >> # This is the main Apache HTTP server configuration file. It contains the >> ... >> # >> ServerRoot "/opt/local" >> >> Listen 80 >> >> # Dynamic Shared Object (DSO) Support >> # >> LoadModule authn_file_module lib/apache2/modules/mod_authn_file.so >> LoadModule authn_core_module lib/apache2/modules/mod_authn_core.so >> LoadModule authz_host_module lib/apache2/modules/mod_authz_host.so >> LoadModule authz_groupfile_module lib/apache2/modules/mod_authz_groupfile.so >> LoadModule authz_user_module lib/apache2/modules/mod_authz_user.so >> LoadModule authz_core_module lib/apache2/modules/mod_authz_core.so >> LoadModule access_compat_module lib/apache2/modules/mod_access_compat.so >> LoadModule auth_basic_module lib/apache2/modules/mod_auth_basic.so >> LoadModule reqtimeout_module lib/apache2/modules/mod_reqtimeout.so >> LoadModule include_module lib/apache2/modules/mod_include.so >> LoadModule filter_module lib/apache2/modules/mod_filter.so >> LoadModule mime_module lib/apache2/modules/mod_mime.so >> LoadModule log_config_module lib/apache2/modules/mod_log_config.so >> LoadModule env_module lib/apache2/modules/mod_env.so >> LoadModule mime_magic_module lib/apache2/modules/mod_mime_magic.so >> LoadModule headers_module lib/apache2/modules/mod_headers.so >> LoadModule setenvif_module lib/apache2/modules/mod_setenvif.so >> LoadModule version_module lib/apache2/modules/mod_version.so >> LoadModule proxy_module lib/apache2/modules/mod_proxy.so >> LoadModule slotmem_shm_module lib/apache2/modules/mod_slotmem_shm.so >> LoadModule ssl_module lib/apache2/modules/mod_ssl.so >> LoadModule unixd_module lib/apache2/modules/mod_unixd.so >> LoadModule status_module lib/apache2/modules/mod_status.so >> LoadModule autoindex_module lib/apache2/modules/mod_autoindex.so >> LoadModule vhost_alias_module lib/apache2/modules/mod_vhost_alias.so >> LoadModule negotiation_module lib/apache2/modules/mod_negotiation.so >> LoadModule dir_module lib/apache2/modules/mod_dir.so >> LoadModule userdir_module lib/apache2/modules/mod_userdir.so >> LoadModule alias_module lib/apache2/modules/mod_alias.so >> LoadModule rewrite_module lib/apache2/modules/mod_rewrite.so >> LoadModule socache_shmcb_module lib/apache2/modules/mod_socache_shmcb.so >> LoadModule php7_module lib/apache2/modules/mod_php73.so >> LoadModule apreq_module lib/apache2/modules/mod_apreq2.so >> LoadModule perl_module lib/apache2/modules/mod_perl.so >> >> <IfModule unixd_module> >> User daemon >> Group daemon >> >> </IfModule> >> >> # 'Main' server configuration >> >> # ServerAdmin someb...@somewhere.com <mailto:someb...@somewhere.com> >> >> ServerName localhost >> >> <Directory /> >> AllowOverride none >> Require all denied >> </Directory> >> >> DocumentRoot "/opt/local/www/apache2/html" >> <Directory "/opt/local/www/apache2/html"> >> Options Indexes FollowSymLinks >> AllowOverride None >> Require all granted >> </Directory> >> >> <IfModule dir_module> >> DirectoryIndex index.php index.html >> </IfModule> >> >> <Files ".ht*"> >> Require all denied >> </Files> >> >> <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])"> >> Order allow,deny >> Deny from all >> Satisfy All >> </Files> >> <Files "rsrc"> >> Order allow,deny >> Deny from all >> Satisfy All >> </Files> >> <DirectoryMatch ".*\.\.namedfork"> >> Order allow,deny >> Deny from all >> Satisfy All >> </DirectoryMatch> >> >> ## For MathJax >> <Directory "/usr/local/share/MathJax/"> >> Options Indexes FollowSymlinks >> AllowOverride None >> Order allow,deny >> Allow from all >> AddDefaultCharset off >> </Directory> >> >> Alias /MathJax /usr/local/share/MathJax/ >> # >> ErrorLog "var/log/apache2/error_log" >> LogLevel warn >> >> <IfModule log_config_module> >> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" >> combined >> LogFormat "%h %l %u %t \"%r\" %>s %b" common >> >> <IfModule logio_module> >> # You need to enable mod_logio.c to use %I and %O >> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" >> \"%{User-Agent}i\" %I %O" combinedio >> </IfModule> >> >> CustomLog "var/log/apache2/access_log" common >> >> </IfModule> >> >> <IfModule alias_module> >> ScriptAlias /cgi-bin/ "/opt/local/www/apache2/cgi-bin/" >> >> </IfModule> >> >> <Directory "/opt/local/www/apache2/cgi-bin"> >> AllowOverride None >> Options None >> Require all granted >> </Directory> >> >> <IfModule headers_module> >> RequestHeader unset Proxy early >> </IfModule> >> >> <IfModule mime_module> >> >> TypesConfig etc/apache2/mime.types >> >> AddType application/x-compress .Z >> AddType application/x-gzip .gz .tgz >> >> AddHandler application/x-httpd-php .php >> AddHandler application/x-httpd-php-source .phps >> >> </IfModule> >> >> MIMEMagicFile etc/apache2/magic >> >> # Fancy directory listings >> Include etc/apache2/extra/httpd-autoindex.conf >> >> # User home directories >> Include etc/apache2/extra/httpd-userdir.conf >> >> # Virtual hosts >> Include etc/apache2/extra/httpd-vhosts.conf >> >> # Local access to the Apache HTTP Server Manual >> Include etc/apache2/extra/httpd-manual.conf >> >> # Include PHP configurations >> ## Include etc/apache2/extra/mod_php56.conf >> Include etc/apache2/extra/mod_php73.conf >> >> # Configure mod_proxy_html to understand HTML4/XHTML1 >> <IfModule proxy_html_module> >> Include etc/apache2/extra/proxy-html.conf >> </IfModule> >> >> # Secure (SSL/TLS) connections >> Include etc/apache2/extra/httpd-ssl.conf >> <IfModule ssl_module> >> SSLRandomSeed startup builtin >> SSLRandomSeed connect builtin >> </IfModule> >> >> # Local access to phpmyadmin installation >> Include etc/apache2/extra/httpd-phpmyadmin.conf >> >> # Configure drupal installation >> Include etc/apache2/drupal.conf >> >> ==== END httpd.conf ==== >> --- >> Murray Eisenberg murrayeisenb...@gmail.com <mailto:murrayeisenb...@gmail.com> >> 503 King Farm Blvd #101 Home (240)-246-7240 >> Rockville, MD 20850-6667 Mobile (413)-427-5334 --- Murray Eisenberg murrayeisenb...@gmail.com 503 King Farm Blvd #101 Home (240)-246-7240 Rockville, MD 20850-6667 Mobile (413)-427-5334