Installation in FreeBSD
The prerequisite for these instructions is a current FreeBSD installation. LIMBAS requires PHP version 8.2 or higher.
Install packages
In addition to the standard installation, the following packages must be installed for LIMBAS:
$ pkg install apache24 php82 php82-gd php82-imap php82-soap php82-xml php82-ctype php82-mbstring php82-iconv php82-pdo wget ImageMagick zip unzip mod_php82
$ pkg update
If there are problems with unixODBC during the LIMBAS installation, a new installation via ports can help:
$ cd/usr/ports/databases/unixODBC
$ make install
PHP configuration
The PHP configuration must be adjusted in /usr/local/etc/php.ini. If no php.ini file exists, php-development.ini must be copied and renamed. First, the following general settings should be set:
- short_open_tag = On
- error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
- max_input_vars = 10000
Apache HTTP server setup
To ensure that the .htaccess files used in the LIMBAS directories are interpreted by the Apache server, the following entry must be added:
<Directory "{DocumentRoot}/openlimbas/dependent">
AllowOverride All
</Directory>
If the file /usr/local/etc/apache24/Includes/php5.conf does not exist, it must be created with the following content:
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
</IfModule>
Start the apache server:
$ /usr/local/etc/rc.d/apache24 onestart
For problems with newer Apache versions (from 2.4), activating the access_compat module can help solve the problem. If this does not help, the following must be changed in every .htaccess file from
Order allow,deny
Allow from all
to
Require all granted
Install LIMBAS
Siehe LIMBAS installation.
To enable individual settings to be saved in LIMBAS, LIMBAS must have write access to ./openlimbas/dependent and all subdirectories. To enable this, the owner of this directory and its subdirectories must be changed to the Apache user.
$ chown -R www:www openlimbas/dependent