php

  1. J

    New Tools for Creating Portable and Customizable Distributions of OpenEMR for FreeBSD using QEMU on MacOS

    Hey folks, I've been working on a project to create self-contained, portable OpenEMR binaries and just added FreeBSD support. Thought the community might find it useful (or have feedback). **What is it?** OpenEMR is an open-source electronic health records system which I am a contributor to...
  2. Perceval

    Shell Store variable string with single quote AND double quote AND asterisk

    Hello ! Kind of unexpected nightmare here. I run Dolibarr for my business, which is mainly a PHP website. I had to change some pieces of code for my own usage, and I'm shell-scripting (NO bash ! sh only) everything fo convenience (my script updates my Dolibarr to its latest version, and now I...
  3. O

    Sending email using PHP mail() function fails via dma(8)

    Setting up MediaWiki in a 14.3R jail with default `dma` mail config + `SMART_HOST`` set to host system (also 14.3R) running sendmail. I couldn't get email to send. dma -> sendmail (SMTP) was rejecting with: 421 4.5.0 Bare carriage return (CR) not allowed and leaving the message stuck in dma's...
  4. 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"...
  5. 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...
  6. 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...
  7. 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 'opcache.so' (tried: /usr/local/lib/php/20230831/opcache.so (Cannot open "/usr/local/lib/php/20230831/opcache.so")...
  8. 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...
  9. 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...
  10. 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...
  11. 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.
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. m_pahlevanzadeh

    php74-wddx

    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?
  20. 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...
Back
Top