jaminmc
New Member
- Joined
- Jan 22, 2021
- Messages
- 28
- Reaction score
- 22
For now, a fix script for an existing setup would be:
Using the older PHP, needs the other Apache2 that Debian team maintains...
Bash:
#!/bin/bash
add-apt-repository -y ppa:ondrej/apache2
apt upgrade
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php/7.*/apache2/php.ini
sed -i 's/\(^memory_limit = \).*/\1256M/' /etc/php/7.*/apache2/php.ini
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php/8.*/apache2/php.ini
sed -i 's/\(^memory_limit = \).*/\1256M/' /etc/php/8.*/apache2/php.ini
for i in $(ls /etc/php); do a2dismod php$i ; done
a2enmod php5.6
systemctl restart apache2
reboot
Using the older PHP, needs the other Apache2 that Debian team maintains...
ppa:ondrej/apache2:
This branch follows latest Apache2 packages as maintained by the Debian Apache2 team with couple of compatibility patches on top.
It also includes some widely used Apache 2 modules (if you need some other feel free to send me a request).
