muebel / gestioip-docker-compose

GestióP IPAM deployment with Docker Compose.
https://www.gestioip.net
MIT License
38 stars 8 forks source link

Apache 2 syntax error - Portainer #14

Open huntson opened 1 year ago

huntson commented 1 year ago

Copy and pasted the YAML right into Portainer. Things appear to build correctly however I get this error on the log from the 'gip' container.

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 48 of /etc/apache2/sites-enabled/gestioip.conf: Could not open configuration file /usr/share/gestioip/etc/apache/apache_ldap.conf: No such file or directory Action '-D FOREGROUND' failed. The Apache error log may have more information.

brianyoungsamc commented 1 year ago

Not sure if you fixed it, but I found a workaround. It doesn't look like all of the files get created when deploying through portainer. I did the same thing, but ended up downloading the repository to my windows computer and then copying the files in apache/conf to the shared folder on my linux host which ended up being /data/compose/14/apache/conf. Then once I was able to get into the container, I had to copy /gestioip_install/gestioip_3.5/gestioip/install to /var/www/html/gestio/. Then I had to delete the gestioip database from mysql and ran through the database configuration http://host/gestioip/install. If you want to enable SSL you will need to modify /etc/apache2/sites-enabled/gestioip.conf and change the authuserfile entry to /user/share/gestioip/etc/apache/. Once I had that done I did a commit of the image, updated my stack to use the new gip image and I was good to go.