Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade from php7.4 to php8.2. #56

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Dockerfile.gravadmin
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ RUN \
wget && \
## Install PHP APT Repository
curl -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.4.list && \
## Install PHP 7.4
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list && \
## Install PHP 8.2
install_packages \
php7.4 \
php7.4-fpm \
php7.4-gd \
php7.4-curl \
php7.4-zip \
php7.4-mbstring \
php7.4-xml \
php7.4-intl && \
php8.2 \
php8.2-fpm \
php8.2-gd \
php8.2-curl \
php8.2-zip \
php8.2-mbstring \
php8.2-xml \
php8.2-intl && \
## Download GRAV
mkdir -p \
/grav && \
Expand Down
20 changes: 10 additions & 10 deletions Dockerfile.gravcore
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ RUN \
wget && \
## Install PHP APT Repository
curl -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.4.list && \
## Install PHP 7.4
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list && \
## Install PHP 8.2
install_packages \
php7.4 \
php7.4-fpm \
php7.4-gd \
php7.4-curl \
php7.4-zip \
php7.4-mbstring \
php7.4-xml \
php7.4-intl && \
php8.2 \
php8.2-fpm \
php8.2-gd \
php8.2-curl \
php8.2-zip \
php8.2-mbstring \
php8.2-xml \
php8.2-intl && \
## Download GRAV
mkdir -p \
/grav && \
Expand Down
2 changes: 1 addition & 1 deletion root/etc/nginx/sites-available/default
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ server {
## Begin - PHP
location ~ \.php$ {
# Choose either a socket or TCP/IP address
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
# fastcgi_pass unix:/var/run/php5-fpm.sock; #legacy
# fastcgi_pass 127.0.0.1:9000;

Expand Down
4 changes: 2 additions & 2 deletions root/init-admin
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ DGID=${DGID:-911}

groupmod -o -g "$DGID" xyz
usermod -o -u "$DUID" xyz
sed -i -e 's/www-data/xyz/g' /etc/php/7.4/fpm/pool.d/www.conf
sed -i -e 's/www-data/xyz/g' /etc/php/8.2/fpm/pool.d/www.conf

# Set Permissions
chown -R xyz:xyz /var/www
Expand All @@ -87,7 +87,7 @@ umask 0002
bin/grav scheduler -i
crontab -l

service php7.4-fpm start
service php8.2-fpm start
service nginx start
## start cron
service cron start
Expand Down
4 changes: 2 additions & 2 deletions root/init-core
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ DGID=${DGID:-911}

groupmod -o -g "$DGID" xyz
usermod -o -u "$DUID" xyz
sed -i -e 's/www-data/xyz/g' /etc/php/7.4/fpm/pool.d/www.conf
sed -i -e 's/www-data/xyz/g' /etc/php/8.2/fpm/pool.d/www.conf

# Set Permissions
chown -R xyz:xyz /var/www
Expand All @@ -88,7 +88,7 @@ umask 0002
bin/grav scheduler -i
crontab -l

service php7.4-fpm start
service php8.2-fpm start
service nginx start
## start cron
service cron start
Expand Down