3 months ago
Im using php on my system and before the update it's working after update it shows:
- Dockerfile seems to be not working
- Error when deployed with Dockerfile{ "message": "AH00534: apache2: Configuration error: More than one MPM loaded."
- When Dockerfile is remove it shows Database connection failed: could not find driver
1 Replies
3 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open ray-chen • 3 months ago
3 months ago
hey @veblenoneadmin
that apache error More than one MPM loaded means your docker setup is trying to enable conflicting modules like mpm_event and mpm_prefork at the same time. you have to disable one in your config or dockerfile
but honestly fixing the "missing driver" issue without the dockerfile is usually way easier since railway handles the rest. that error just means the php environment doesnt have the mysql extension installed by default
if you have a composer.json make sure you require the extension explicitly
JSON
{
"require": {
"ext-mysqli": "*",
"ext-pdo_mysql": "*"
}
}
if you are not using composer and just raw php files you can force the install by adding an environment variable in your railway service settings
Variable Name: NIXPACKS_PHP_EXTENSIONS Value: mysqli ,pdo_mysql
add that and trigger a redeploy. let us know if that fixes it or post your dockerfile if you really want to stick with that method