Replies: 5 comments
-
|
use this: `FROM php:8.1.0-apache RUN a2enmod rewrite RUN docker-php-ext-install mysqli pdo pdo_mysql RUN apt-get update && apt-get install -y RUN docker-php-ext-configure gd --with-jpeg --with-webp RUN docker-php-ext-install -j "$(nproc)" opcache RUN set -ex; WORKDIR /var/www/html RUN chown -R www-data:www-data /var/www/html/ Set Apache to listen on Cloud Run $PORTRUN echo "Listen ${PORT}" > /etc/apache2/ports.conf RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
thank you
…On Tue, Nov 18, 2025 at 2:00 PM Aqib Siddiqui ***@***.***> wrote:
replace your existing Dockerfile with this one and deploy
FROM php:8.1.0-apache
RUN apt-get update && apt-get install -y \
libjpeg-dev \
libpng-dev \
libwebp-dev
RUN docker-php-ext-configure gd --with-jpeg --with-webp
RUN docker-php-ext-install gd mysqli pdo pdo_mysql opcache
RUN a2enmod rewrite
RUN a2enmod http2
RUN echo "Protocols h2c http/1.1" >> /etc/apache2/apache2.conf
WORKDIR /var/www/html
COPY . .
ENV PORT 8080
RUN sed -i "s/80/8080/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
Now deploy using gcloud run deploy yourservice usehttp2
—
Reply to this email directly, view it on GitHub
<#179848 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWA6DYC6BLBGHH7BJA2IVC335MJ6JAVCNFSM6AAAAACMNZLTG2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBQGEYDAMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
Misc
Discussion Details
Hi,
When i use "HTTP/2 end-to-end" for cloud run : upstream connect error or disconnect/reset before headers. reset reason: protocol error .
How to enable HTTP/2 for CLOUD RUN app [php-apache] .
My docker file :
Server name : YOUR-SERVICE-NAME-YOUR-PROJECT-ID.run.app
Cloud Run manages SSL certificates for its default domains.
Beta Was this translation helpful? Give feedback.
All reactions