I have a live chat server with freebsd which I just upgraded from 13.1 to VERSION="13.4-RELEASE-p1". I run a test system and didn't realize it was 13.3 but it works fine. After the upgrade php 7.xx was not available so I installed php83 the same as my test machine and it was working but then I added more php modules to be compatible with wordpress which I run as another virtual web server under apache. Apache starts but I am now getting a pear missing error, I installed pear removed pear ... change php versions and I am at a loss and frankly panicing. I once tried to install Maia mail server years ago and got pear installed and had to rebuild from scratch! Help!
I have installed and removed php83 and associated modules and apache mod_php83 the same with mod_php84, I don't see anything in /usr/local/etc/php.ini or php.conf ... where is the darn pear getting included from? I do use php_mysqli but it works on my test machine without pear.
[Mon Oct 14 16:10:11.953918 2024] [php:error] [pid 77953] [client xxx.xxx.xxx.xx:61001] PHP Fatal error: Failed opening required '/usr/local/www/htdocs/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
[Mon Oct 14 15:53:14.599294 2024] [php:error] [pid 77234] [client xx.xxx.xxx.xx:58428] PHP Fatal error: Failed opening required '/usr/local/www/htdocs/phpinfo.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
I even tried just a phpinfo file see above error
I have installed pear as well, pkg install php83-pear and do get an error
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
php83-pear: 1.10.13
Number of packages to be installed: 1
The process will require 2 MiB more space.
Proceed with this action? [y/N]: y
[1/1] Installing php83-pear-1.10.13...
[1/1] Extracting php83-pear-1.10.13: 100%
PHP Warning: Trying to access array offset on false in /usr/local/share/pear/PEAR/DependencyDB.php on line 173
PHP Warning: Trying to access array offset on false in /usr/local/share/pear/PEAR/DependencyDB.php on line 177
PHP Warning: Trying to access array offset on null in /usr/local/share/pear/PEAR/DependencyDB.php on line 177
I would rather just not have pear, my test system works without it
this works
root@superbee:~/notes# php -v
PHP 8.3.8 (cli) (built: Jul 9 2024 02:02:25) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.8, Copyright (c) Zend Technologies
root@superbee:~/notes# php -m
[PHP Modules]
bz2
Core
ctype
date
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
random
Reflection
session
SPL
standard
xml
xmlwriter
zip
zlib
This does not work .. I did install all the same modules but with or witthout I get the pear error
PHP 8.3.12 (cli) (built: Oct 8 2024 02:30:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.12, Copyright (c) Zend Technologies
php -m
[PHP Modules]
bz2
Core
ctype
date
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
random
Reflection
session
SPL
standard
xml
xmlwriter
zip
zlib
[Zend Modules]
Help again. Thanks in advance..
I have installed and removed php83 and associated modules and apache mod_php83 the same with mod_php84, I don't see anything in /usr/local/etc/php.ini or php.conf ... where is the darn pear getting included from? I do use php_mysqli but it works on my test machine without pear.
[Mon Oct 14 16:10:11.953918 2024] [php:error] [pid 77953] [client xxx.xxx.xxx.xx:61001] PHP Fatal error: Failed opening required '/usr/local/www/htdocs/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
[Mon Oct 14 15:53:14.599294 2024] [php:error] [pid 77234] [client xx.xxx.xxx.xx:58428] PHP Fatal error: Failed opening required '/usr/local/www/htdocs/phpinfo.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
I even tried just a phpinfo file see above error
I have installed pear as well, pkg install php83-pear and do get an error
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
php83-pear: 1.10.13
Number of packages to be installed: 1
The process will require 2 MiB more space.
Proceed with this action? [y/N]: y
[1/1] Installing php83-pear-1.10.13...
[1/1] Extracting php83-pear-1.10.13: 100%
PHP Warning: Trying to access array offset on false in /usr/local/share/pear/PEAR/DependencyDB.php on line 173
PHP Warning: Trying to access array offset on false in /usr/local/share/pear/PEAR/DependencyDB.php on line 177
PHP Warning: Trying to access array offset on null in /usr/local/share/pear/PEAR/DependencyDB.php on line 177
I would rather just not have pear, my test system works without it
this works
root@superbee:~/notes# php -v
PHP 8.3.8 (cli) (built: Jul 9 2024 02:02:25) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.8, Copyright (c) Zend Technologies
root@superbee:~/notes# php -m
[PHP Modules]
bz2
Core
ctype
date
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
random
Reflection
session
SPL
standard
xml
xmlwriter
zip
zlib
This does not work .. I did install all the same modules but with or witthout I get the pear error
PHP 8.3.12 (cli) (built: Oct 8 2024 02:30:31) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.12, Copyright (c) Zend Technologies
php -m
[PHP Modules]
bz2
Core
ctype
date
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
random
Reflection
session
SPL
standard
xml
xmlwriter
zip
zlib
[Zend Modules]
Help again. Thanks in advance..