Skip to content

PHP

1 Create PHP Runtime Environment

Click the Create Runtime Environment button and select the PHP version and extensions

  • 1Panel maintains support for three major versions: 5.x, 7.x, and 8.x. Choose the appropriate version based on your requirements.

img.png

1.1 Create Local PHP Runtime Environment

Click the Create Runtime Environment button and select Local

  • php-fpm must be installed on the server first.

img.png

1Panel Offline Version

  • Copy the /opt/1panel/runtime/php/[php_name] directory and images from another 1Panel server, upload them to the offline 1Panel server, and start with the docker compose up command. Remember the mapped port.
  • Create a website with the runtime environment, select the newly created PHP runtime environment, and modify the port to the one just started.
  • For detailed steps, refer to: PHP Offline Version Documentation

2 Manage PHP Extensions

Click the Extensions button in the PHP runtime environment list to view loaded extensions for the current PHP runtime environment, and install or uninstall extensions as needed.

3 Modify PHP Configuration

Click the Configuration option in the More operations of the PHP runtime environment list to view and modify the configuration of the current PHP runtime environment.

4 Configure Process Daemon

Click the Process Daemon option in the More operations of the PHP runtime environment list to view and modify the process daemon configuration of the current PHP runtime environment.

This is suitable for scenarios where PHP applications require additional resident processes.

5 PHP Extension List

Extension PHP 5.5 PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 PHP 8.0 PHP 8.1 PHP 8.2
amqp
apcu
apcu_bc
ast
bcmath
blackfire
bz2
calendar
cassandra
cmark
csv
dba
ddtrace
decimal
ds
enchant
ev
event
excimer
exif
ffi
gd
gearman
geoip
geos
geospatial
gettext
gmagick
gmp
gnupg
grpc
http
igbinary
imagick
imap
inotify
interbase
intl
ion
ioncube_loader
jsmin
json_post
ldap
luasandbox
lz4
lzf
mailparse
maxminddb
mcrypt
memcache
memcached
memprof
mongo
mongodb
mosquitto
msgpack
mssql
mysql
mysqli
oauth
oci8
odbc
opcache
opencensus
openswoole
opentelemetry
parallel
parle
pcntl
pcov
pdo_dblib
pdo_firebird
pdo_mysql
pdo_oci
pdo_odbc
pdo_pgsql
pdo_sqlsrv
pgsql
php_trie
propro
protobuf
pspell
pthreads
raphf
rdkafka
recode
redis
relay
seaslog
shmop
simdjson
smbclient
snappy
snmp
snuffleupagus
soap
sockets
sodium
solr
sourceguardian
spx
sqlsrv
ssh2
stomp
swoole
sybase_ct
sysvmsg
sysvsem
sysvshm
tensor
tidy
timezonedb
uopz
uploadprogress
uuid
vips
wddx
xdebug
xdiff
xhprof
xlswriter
xmldiff
xmlrpc
xsl
yac
yaml
yar
zephir_parser
zip
zmq
zookeeper
zstd

Number of supported extensions: 132


Take 1Panel Further

Running 1Panel OSS? Pro Edition adds WAF protection, unlimited AI agents, multi-node management, and priority support — starting at $80/year.

Compare OSS vs Pro → Start 30-day free trial →