Wordpress template database connection error
emirhankarahan
FREEOP

a month ago

I need to setup wordpress. First I encountered a problem and solved thanks to that thread https://station.railway.com/questions/urgent-all-wordpress-sites-deployed-to-07dee2ef

However now I can deploy it but it gives and error of "Error establishing a database connection" when I open the link. I don't get why. Any help is appreciated guys, thanks!

Solved

1 Replies

23 days ago

Hey there, my apologies for the delay. If you update the start command on the "Primary" service to the following, you should be up and running again.

/bin/bash -c "echo 'ServerName 0.0.0.0' >> /etc/apache2/apache2.conf && echo 'DirectoryIndex index.php index.html' >> /etc/apache2/apache2.conf && echo 'upload_max_filesize = 50M' >> /usr/local/etc/php/php.ini && echo 'post_max_size = 50M' >> /usr/local/etc/php/php.ini && docker-entrypoint.sh a2dismod mpm_event && a2dismod mpm_worker && a2enmod mpm_prefork && apache2-foreground"


Status changed to Awaiting User Response Railway 23 days ago


Railway
BOT

16 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 16 days ago


Loading...