Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yclaes's avatar

Laravel 5 on Google App Engine

I am trying to deploy a Laravel 5 project to Google App Engine.

While the deploy command is executing, one error pops up:

ERROR appcfg.py: 1910 Invalid character in filename: vendor/symfony/finder/Tests/Fixtures/r+e.gex[c]a(r)s/dir/bar.dat

The deployment still continuous and finishes the process. But when I navigate to my website on appspot.com, the page returns a server 500 error.

When I look into the GAE logs, it looks like it has something to do with the filesystem that is read-only:

PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/base/data/home/apps/<project-id>/dev-001.388651265003945065/storage/logs/laravel.log" could not be opened: failed to open stream: Read-only file system' in /base/data/home/apps/<project-id>/dev-001.388651265003945065/bootstrap/cache/compiled.php:13301

Anyone who knows how to fix this problem?

0 likes
4 replies
bobbybouwmann's avatar

You need to give the correct permissions to the storage directory

chmod 775 storage
babiz's avatar

is this available for Laravel 5.5?

shpasser's avatar

I haven't checked it with Laravel 5.3, 5.4 and 5.5. As I can see the PHP version required by Laravel 5.5 is PHP >= 7.0.0. Currently supported PHP version on Google App Engine is 5.5.34. Laravel 5.3 requires PHP >= 5.6.4. If anyone tries my package with Laravel 5.5 I would appreciate if you could share the results.

https://github.com/shpasser/GaeSupportL5

Please or to participate in this conversation.