Tag: Debian/PHP
apt-get install php5 libapache2-mod-php5 php5-mysql php5-gd
<?php phpinfo(); ?>
mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1
# apt-get remove php5 php5-common
# apt install ca-certificates apt-transport-https # wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - # echo "deb https://packages.sury.org/php/ jessie main" | tee /etc/apt/sources.list.d/php.list
# apt install php7.4 # apt install php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-xml php7.4-fpm # apt-get remove apache2
systemctl start php7.4-fpm systemctl enable php7.4-fpm
date.timezone ="Asia/Tokyo" [mbstring] mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1
user group listen.owner listen.group
apt-get install php5 php5-fpm php5-mysql php5-gd
systemctl start php5-fpm systemctl enable php5-fpm
mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1