phpList / phplist-docker

Dockerised version of phpList
33 stars 18 forks source link

Ensure apache config is loaded from local file to avoid remote image … #9

Closed bizmate closed 4 years ago

bizmate commented 4 years ago

…discrepancies.

I hope this is appreciated.

As inspired by issue #5 The problem is most likely in the last version of the phplist/phplist image as it comes with an apache file that sets the phplist config file in the wrong place as opposed to where it is in the image.

root@2d2b14dc5f3f:/# cat /etc/apache2/sites-enabled/docker-apache-phplist.conf 
ServerName phplist.docker
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/phpList3/public_html/
        SetEnv ConfigFile /etc/phpList3/config.php
        DirectoryIndex index.php
        php_value upload_max_filesize 50M
        php_value post_max_size 100M
</VirtualHost>

see line SetEnv ConfigFile /etc/phpList3/config.php above

See phpinfo in these cases https://i.imgur.com/l8G4p8al.png

I cannot directly push a new image, also the process of loading the source code, plugins etc is very lengthy and needs a lot of manual steps. As a result please find a PR that ensures the vhost configuration is the latest one as per saved in this repository. I have applied the changes in all the docker files without a build instruction as in the one (dev) containing a build instruction it should take the right value. Notice I have not tested this part due to extra manual time needed to set codebase, plugins etc.

Extra notes (feel free to skip but some of these mean easier onboarding process for developers and faster local dev environment) :

:)