Hosting powered by RESTENA

PHP pages

PHP is available in FPM/FastCGI mode. As such all configuration directives like php_flag and php_value in .htaccess will cause an internal error, HTTP error 500.

The PHP configuration should either happen from PHP code itself, using the global configuration file (any change to this file must be requested at helpdesk@restena.lu) or for some directives from a .htphp.ini file.

You can read your current configuration file(s) conf/php*.conf via FTP or SSH. Some troublesome configuration options are:

  • register_globals: DEPRECATED All request variables get registered as global variables. (more)
  • short_open_tag: The PHP opening tags can be '<?' ou '<?=' in addition to the long variant '<?php'. The disadvantage of this option is that it conflicts with XML header tag. (more)

The default PHP version is defined in Apache configuration. You may either ask us by email to change it or add the following lines to your .htaccess file:

<FilesMatch "\.php$">
  <IfModule mod_proxy_fcgi.c>
  # Configuration for apache-2.4 (current) replact $login with your username
  # Use PHP 7.4.x (if conf/php-fpm74.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm74-$login.socket|fcgi://localhost/"
  # Use PHP 8.0.x (if conf/php-fpm80.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm80-$login.socket|fcgi://localhost/"
  # Use PHP 8.1.x (if conf/php-fpm81.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm81-$login.socket|fcgi://localhost/"
  # Use PHP 8.2.x (if conf/php-fpm82.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm82-$login.socket|fcgi://localhost/"
  </IfModule>
</FilesMatch>

The complete PHP documentation can be found at php.net.

PHP pages - starting January 2022

PHP-7.3 will be removed and sites switched to PHP-7.4. This version goes out of upstram support during December 2021.

PHP pages - starting January 2024

PHP-8.0 and older will be removed and sites switched to PHP-8.1. This version goes out of upstram support during December 2023.

Webhosting platform

Hosting powered by RESTENA

PHP pages

PHP is available in FPM/FastCGI mode. As such all configuration directives like php_flag and php_value in .htaccess will cause an internal error, HTTP error 500.

The PHP configuration should either happen from PHP code itself, using the global configuration file (any change to this file must be requested at helpdesk@restena.lu) or for some directives from a .htphp.ini file.

You can read your current configuration file(s) conf/php*.conf via FTP or SSH. Some troublesome configuration options are:

  • register_globals: DEPRECATED All request variables get registered as global variables. (more)
  • short_open_tag: The PHP opening tags can be '<?' ou '<?=' in addition to the long variant '<?php'. The disadvantage of this option is that it conflicts with XML header tag. (more)

The default PHP version is defined in Apache configuration. You may either ask us by email to change it or add the following lines to your .htaccess file:

<FilesMatch "\.php$">
  <IfModule mod_proxy_fcgi.c>
  # Configuration for apache-2.4 (current) replact $login with your username
  # Use PHP 7.4.x (if conf/php-fpm74.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm74-$login.socket|fcgi://localhost/"
  # Use PHP 8.0.x (if conf/php-fpm80.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm80-$login.socket|fcgi://localhost/"
  # Use PHP 8.1.x (if conf/php-fpm81.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm81-$login.socket|fcgi://localhost/"
  # Use PHP 8.2.x (if conf/php-fpm82.conf exists)
  #SetHandler "proxy:unix:/var/run/php-fpm82-$login.socket|fcgi://localhost/"
  </IfModule>
</FilesMatch>

The complete PHP documentation can be found at php.net.

PHP pages - starting January 2022

PHP-7.3 will be removed and sites switched to PHP-7.4. This version goes out of upstram support during December 2021.

PHP pages - starting January 2024

PHP-8.0 and older will be removed and sites switched to PHP-8.1. This version goes out of upstram support during December 2023.