1. Check which PHP versions are currently available on your machine:
  2. Disable the broken PHP 8.1 module:
  3. Enable your new PHP version (replace 8.3 with whatever version you found in step 1):
  4. Restart Apache to apply the changes:
ls /etc/apache2/mods-available/ | grep php
sudo a2dismod php8.1
sudo a2enmod php8.3
sudo systemctl restart apache2

    最後修改日期: 2026-09-06

    作者

    留言

    撰寫回覆或留言