1. nerozero

    php upgrade - is there a better way to do?

    Hi there At the moment I'm doing php upgrade by collecting information about existing php packages then deleting them and installing newer versions. Is there a better way to do that ? A small script that I'm using so far: #!/bin/sh cfg_ver_cur="php81" cfg_ver_new="php82"...
  2. Buck

    Other Bayes classifier with learning ability a la spamassassin's?

    Hi folks. Looking for a bayes classifier that would work on pieces of small text that either exists as a port (feeding text to it via CLI) or a PHP solution. The idea is that I pipe a piece of text to it, then manually assign some pre-set tags (like e.g. 'junk', 'helpful', 'question') in the...
  3. K

    FreeBSD 13.2 + PHP 8.x problem

    Hello, I installed fresh Freebsd 13.2 32bit and have problem with any php (8, 8.1, 8.2, 8.3). After installing apache24 + any version of php + mod_php apache not starting, no any error in /var/log/apache logs, only httpd.core in /usr/local around 6mb. Something is wrong with file...
  4. m_pahlevanzadeh

    Solved php modules

    I install php 83 and install some modules then restart apache. Now I can the following output for php -m php -m Warning: Failed loading Zend extension '' (tried: /usr/local/lib/php/20230831/ (Cannot open "/usr/local/lib/php/20230831/")...
  5. superdanglyde

    CodeIgniter 4 not working on FreeBSD with PHP, PHP-FPM, Apache, and MySQL

    I have uploaded a CodeIgniter 4 website that's working perfectly fine on web hosting and local server into a FreeBSD server running with PHP, PHP-FPM, Apache, and MySQL. The virtual hosts has been set up to use the 'public' directory as the root. But when accessing the website via the domain...
  6. spag

    Solved PHP float precision on FreeBSD 13.1-p0

    Do we know how to control precision on OS level? Or maybe there is another reason for the wrong values. Tested with PHP 8.1.7 and 7.4. Sometimes processes get to 100% usage giving blank pages but dtrace show there is nothing happening. The problem does not exists on Freebsd 13. # php a.php...
  7. M

    php74-json not running in apache

    phpinfo states the authors of the extension, yet neither json_decode, nor json_encode work when run on Apache 2.4. json_encode error: Hello world Fatal error: Uncaught Error: Call to undefined function json_encode() in /usr/local/www/bleh/jsondecode3.php:9 Stack trace: #0 {main} thrown in...
  8. M

    Solved php 8.1 pdo_mysql broken

    Hello! It seems like databases/php81-pdo_mysql doesn't build, is it still needed? I can't get pdo_mysql to work in any other way. Thanks for any help.
  9. blind0ne

    Other Examples of good OOP code

    Hello, Here is the question itself - I need to show (and see) examples of really good OOP code that will satisfy nearly all object oriented concepts and will be actually usefull in terms of functionality. It's imortant for me, it shuld give good impression for people how harass my code and tell...
  10. nero

    arginfo for Imagick

    New installation of FreeBSD and added from source mostly....php8 php PHP Warning: Missing arginfo for Imagick::__tostring() in Unknown on line 0 PHP Warning: Missing arginfo for Imagick::getimagehistogram() in Unknown on line 0 Those are the warnings. Can someone direct me to how to fix...
  11. KubaOP10

    Solved [PHP] session_start throws HTTP 500 Error

    I have httpd, mysql-server and php installed on FreeBSD 12.2-RELEASE i386. Webpage with php loads normally until I put session_start function which leads to HTTP 500 error (Internal server error). I was trying to find some informations about this on internet but I was unable to find anything...
  12. I

    Nextcloud 404 not found after upgrading php

    I have been having problems with my nextcloud server and I haven't been able to get it back up. I had been regularly updating through the web interface (up to version 17.something) and found that the update button didn't show up any longer. After googling a bit, I found that it was due to...
  13. jjbigorra

    NGINX on several jails or on host?

    Hey guys, this is my first post here, I am hoping I respect all the rules of this wonderful forum. I am setting up some services, moving from Ubuntu to FreeBSD in my company. We have 3 environments: - Test: all services in one server - Acceptance: Database and Redis in one server, rest of...
  14. Rob215x

    PHP fsockopen causes 100% CPU and GATEWAY TIMEOUT on all web sites

    I thought I'd post here first because I've always seen great responses in this forum and I wanted to see if any of you had some insight. I don't know if this is: (1) a PHP bug, (2) a vulnerability, (3) something I haven't configured properly (very possible lol), or (4) something else. I am...
  15. F

    can't find portsnap command

    Hello everyone ! So I am new to FreeBSD and am really happy to get to use this OS and this is while trying to dive deeper in pfSense firewall things. I had a problem trying to install Composer for some PHP tests, I couldn't install it since the PHAR extension is missing from my system and the...
  16. m_pahlevanzadeh


    PHP74 is exist on newest port tree and many extensions are exist. php72-wddx php73-wddx are exist on port tree, But php74-wddx isn't exists. How can I download php74-wddx ? can I find it? Deprecated this extension for php74?
  17. epopen

    Solved Apache24 + PHP7.1 got "No space available for static Thread Local Storage" error when start.

    Hi All I have a running server (FreeBSD 11.1 i386 @ 256MB machine, apache 2.4 + PHP5.6) work fine. Nearly, I plan upgrade to PHP7.1, but got below error message when apache24 service start. httpd: Syntax error on line 144 of /usr/local/etc/apache24/httpd.conf: Syntax error on line 1 of...
  18. R

    Can not run php file in freebsd

    I already Install apache24 and php on freebsd, but when I try to run in web browser an error occurs. Such as I run should be reading php script but what is done is to download the file "index.php" How to fix this?
  19. Itproman

    Solved Apache24 Mysql PHP install problem

    Apache 24 install,configuration and start successful. Mysql install is the problem: pkg install mysql57-server mysql57-client Error message: http:// Not Found I...
  20. B

    PECL-Redis for PHP71

    Hello! I'm kind of lost while I'm trying to install the new PECL-Redis on my PHP 7.1 installation. I'm using Synth on my base system to build Packages for my jails. I have jails with different apps running different PHP versions (php56, php70, soon also php71). Until recently it was fairly...