Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Enabled `mod_headers` and `mod_expires` Apache modules by default [#243](https://github.com/lando/php/issues/243)
* Fixed xdebug log file ownership issue when `build_as_root` or `run_as_root` creates `/tmp/xdebug.log` as root [#242](https://github.com/lando/php/pull/242)

## v1.11.2 - [February 25, 2026](https://github.com/lando/php/releases/tag/v1.11.2)
Expand Down
2 changes: 1 addition & 1 deletion builders/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = {
'/helpers',
],
confSrc: path.resolve(__dirname, '..', 'config'),
command: ['sh -c \'a2enmod rewrite && apache2-foreground\''],
command: ['sh -c \'a2enmod rewrite headers expires && apache2-foreground\''],
composer_version: true,
phpServer: 'apache',
defaultFiles: {
Expand Down
8 changes: 8 additions & 0 deletions examples/8.4/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<IfModule mod_headers.c>
Header set X-Lando-Test "blazes"
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 hour"
</IfModule>
6 changes: 6 additions & 0 deletions examples/8.4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ lando exec defaults -- composer --version --no-ansi | tee >(cat 1>&2) | grep -q
lando php -i | grep memory_limit | grep -e "-1"
lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1"

# Should have mod_headers enabled and working
lando exec defaults -- curl -sI http://localhost | grep -i "X-Lando-Test: blazes"

# Should have mod_expires enabled and working
lando exec defaults -- curl -sI http://localhost | grep -i "Expires:"

# Should not enable xdebug by default
lando exec defaults -- php -m | grep xdebug || echo $? | grep 1

Expand Down
Loading