Skip to content

PHP

PHP Logo

Introduction

PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language.

Versions

Standard version

If you don’t select a certain version, our default will be used. We decided to default to version 8.4, which is considered to be stable by the developers.

Available versions

We provide versions 8.3 and 8.4

Change version

You can select the PHP version with the uberspace tool. You can choose between release branches:

[isabell@stardust ~]$ uberspace tool version set php 8.3
OK: Set version of php to 8.3

How to publish

Put your PHP files into your document root. The file extension should be .php. For security reasons we don't parse PHP code in every file.

Configuration

Provided configuration

Get your configuration via php -i.

Custom configuration

You can add custom config files to ~/.config/php/.

For example add a file ~/.config/php/memory_limit.ini with the content:

memory_limit = 512M

To make the changes available for your PHP web service, you need to reload it:

[isabell@moondust ~]$ uberspace web php reload

Extensions

Get your extensions via php -m:
[PHP Modules]
apcu
bcmath
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
ldap
libxml
mbstring
mongodb
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

If you're missing an extension please contact our support.

Logs

PHP logs to your journal:

[isabell@moondust ~]$ journalctl --user --unit php-fpm
Dec 11 06:35:49 moondust.uberspace.de systemd[722]: Starting PHP FastCGI process manager...
Dec 11 06:35:49 moondust.uberspace.de php-fpm[1028431]: [11-Dec-2025 06:35:49] NOTICE: configuration file /home/isabell/.config/php-fpm.conf test is successful
Dec 11 06:35:49 moondust.uberspace.de php-fpm[1028473]: [11-Dec-2025 06:35:49] NOTICE: using inherited socket fd=3, "/var/lib/php-fpm/isabell/php-fpm.sock"
Dec 11 06:35:49 moondust.uberspace.de systemd[722]: Started PHP FastCGI process manager.
[isabell@moondust ~]$