0

I new to using Docker and I only managed to access the "index" page but to new page it will hit

Warning: Cannot modify header information - headers already sent by (output started at /app/config/site_config.php:1) in /app/login.php on line 225

Note that using Xampp/Apache work fine. Please do assist; anything to set up apache setting in container via Shell?

Current using this image for container yiisoftware/yii2-php:7.4-apache

Howard F
  • 138
  • 12
  • @ADyson Nope, I using Xampp to host worked fine tho. – Howard F Nov 24 '21 at 11:20
  • 1
    Well something at `site_config.php` is starting some output in your docker version. It might be deliberate, it might be accidental whitespace, or anything like that. That's what the link I gave you is explaining - it goes through the ways this problem can generally occur, and encourages you to investigate your code and environment, and look for them. If it works in one environment but not another, you need to go hunting. We can't help with that process because you've shared nothing about the code or anything else. – ADyson Nov 24 '21 at 11:26

0 Answers0