Hello Neil,

Great to hear that you were able to set up the Bacularis instance.

This error that you see is because in the php.ini file on FreeBSD by
default is error reporting set to display all errors. To fix this error you
need to edit php.ini file:

/usr/local/etc/php.ini

and change error reporting line from this:

error_reporting = E_ALL

into this one:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

At the end you need to restart PHP.

Best regards,
Marcin Haba (gani)

On Tue, 9 Apr 2024 at 15:22, Neil Balchin <n...@neilandjo.com> wrote:

> Thanks so much,
>
>
> I got a little further along my path
>
> The Bacularis web guide is up and running
>
> I’ve configured my web server user (www) to have appropriate file
> permissions for the bacula config files and directories and added the sudo
> permissions for the necessary binaries
>
> I think I’m missing something in my server setup because
>
> I get this error when I try to config anything:
>
>
>
> Error 1000 - Internal error. [Unknown Error] substr(): Passing null to
> parameter #1 ($string) of type string is deprecated (@line 232 in file
> /usr/local/www/bacularis/protected/vendor/pradosoft/prado/framework/Data/Common/Pgsql/TPgsqlMetaData.php).
>
>
>
> On 8 Apr 2024, at 23:35, Marcin Haba <ganius...@gmail.com> wrote:
>
> Hello Neil,
>
> I have checked installing Bacularis on FreeBSD and I have one more note.
>
> By default in Apache is used PHP as Apache module. If you want to use it
> this way, it is fine. Nothing else to do. If you will need to use PHP
> through PHP-FPM, then you need to do a few changes in your httpd.conf to
> disable the Apache PHP module and enable PHP-FPM.
>
> First, you need to disable/comment the MPM Prefork module and libphp:
>
> #LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
> #LoadModule php_module         libexec/apache24/libphp.so
>
> and enable/uncomment these modules:
>
> LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so
> LoadModule proxy_module libexec/apache24/mod_proxy.so
> LoadModule proxy_fcgi_module libexec/apache24/mod_proxy_fcgi.so
>
> Then you need to add these lines to the same httpd.conf:
>
> <FilesMatch "\.php$">
>         SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
>         <If "-f %{REQUEST_FILENAME}">
>             SetHandler  "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost/"
>         </If>
> </FilesMatch>
>
> At the end in /usr/local/etc/php-fpm.d/www.conf you need to set
> permissions for PHP-FPM unix socket:
>
> listen.owner = www
> listen.group = www
> listen.mode = 0660
>
> and restart the services:
>
> # service php-fpm restart
> # service apache24 restart
>
> Best regards,
> Marcin Haba (gani)
>
> On Tue, 9 Apr 2024 at 04:54, Marcin Haba <ganius...@gmail.com> wrote:
>
>> Hello Neil,
>>
>> Thanks for your feedback with installing Bacularis on FreeBSD.
>>
>> It looks that in your environment this script uses the default FreeBSD
>> shell /bin/sh (or any other) that does not support arrays.
>>
>> This is the Bash script so to use it you need to install Bash:
>>
>> # pkg install bash
>>
>> After that you need to update shebang in the install.sh script to:
>>
>> #!/usr/local/bin/bash
>>
>> Once it is done, it should start working well. In case problems, please
>> let us know.
>>
>> Good luck!
>>
>> Best regards,
>> Marcin Haba (gani)
>>
>> On Tue, 9 Apr 2024 at 02:38, Neil Balchin <n...@neilandjo.com> wrote:
>>
>>> I’ve installed Bacula in a Freebsd Jail and all is well,  Also installed
>>> Apache24, and the requisite php mods to run bacularis.
>>>
>>> I’ve followed the manual instructions to the letter but when I get to
>>> the install.sh step I get this error output :
>>>
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools # sh ./install.sh
>>> -p /tmp/php-fpm.sock
>>>
>>> +===================================================+
>>> |      Welcome in the Bacularis install script      |
>>> +---------------------------------------------------+
>>> |  This script will help you to adjust privileges   |
>>> |  for Bacularis files and it will prepare          |
>>> |  configuration files for popular web servers.     |
>>> +---------------------------------------------------+
>>>
>>>
>>> ./install.sh: 34: Syntax error: word unexpected (expecting ")")
>>> root@Bacula1:/usr/local/www/bacularis/protected/tools #
>>>
>>>
>>>
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>> --
>>
>> "Greater love hath no man than this, that a man lay down his life for his 
>> friends." Jesus Christ
>>
>> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
>> przyjaciół swoich." Jezus Chrystus
>>
>>
>
> --
>
> "Greater love hath no man than this, that a man lay down his life for his 
> friends." Jesus Christ
>
> "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
> przyjaciół swoich." Jezus Chrystus
>
>
>

-- 

"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to