Skip to content
Discussion options

You must be logged in to vote

Based on your description, this issue is likely related to how your web server is configured to handle requests in Cloud Run. This is a common problem when deploying PHP applications to containerized environments. Here are the most likely causes and solutions:

1. Missing Rewrite Rules (Most Common)

Your application likely needs proper rewrite rules in your web server configuration. If you're using Apache, ensure you have a .htaccess file in your project root:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Or in your Apache virtual host configuration:

<Directory /var/www/html>
    AllowOverride All
    Require a…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@im-lunex
Comment options

@im-lunex
Comment options

@firloming
Comment options

@firloming
Comment options

@im-lunex
Comment options

Answer selected by firloming
Comment options

You must be logged in to vote
1 reply
@YoungYaeLee
Comment options

Comment options

You must be logged in to vote
2 replies
@YoungYaeLee
Comment options

@im-lunex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Deployment Topics about deploying workflows, publishing artifacts, and deployment targets in GitHub Actions. Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants