Apache 403 error
9marin
HOBBYOP

2 months ago

When deploying the tempate and access the url of the primary service i receive a 403 error. When i ssh to the service nothing is deployed in /var/www/html/. Am i missing something ?

Solved

2 Replies

document8n
PRO

2 months ago

Having similar experience trying to test install a wordpress site. Going to watch thread.


lopezlav
PRO

2 months ago

Hey! solved with this comment from another thread: https://station.railway.com/templates/word-press-6dc4d8f7#xsbw

the custom build command should be:

/bin/bash -c "a2dismod mpm_event; a2dismod mpm_worker; a2enmod mpm_prefork; 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 apache2-foreground"

hope this helps!


Status changed to Solved jack about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...