HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux vmi3050980 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
User: gurumedia_st_usr (1012)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/fastpanel2-php85.postinst
#!/bin/bash

if [ -z "$2" ]; then
    for extension in bcmath bz2 curl exif gd gettext intl mbstring memcached mysqli pcntl pdo_mysql pdo_pgsql shmop soap sockets xsl zip; do
        if [ ! -f /opt/php85/conf.d/$extension.ini ]; then
            ln -s /opt/php85/mods-available/$extension.ini  /opt/php85/conf.d/$extension.ini
        fi
    done
fi

systemctl daemon-reload
systemctl enable fp2-php85-fpm

if systemctl -q is-active fp2-php85-fpm.service ; then
    systemctl reload fp2-php85-fpm.service
else
    systemctl start fp2-php85-fpm.service
fi

if systemctl -q is-active apache2.service ; then
    systemctl reload apache2.service
fi