After following steps in README, without modifying any files, my docker kept on restarting:
suitecrm-1 | req: Can't open "/etc/ssl/private/apache-selfsigned.key" for writing, Is a directory
suitecrm-1 | Permissions set
suitecrm-1 | starting Apache server
suitecrm-1 | suitecrm-8-9-0 is now available @ http://localhost:8080 and https://localhost:8081
suitecrm-1 | PHPMyAdmin is available @ http://localhost:8181
suitecrm-1 | MySQL is available on port 3306
suitecrm-1 | AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/sites.conf:
suitecrm-1 | SSLCertificateFile: file '/etc/ssl/certs/apache-selfsigned.crt' does not exist or is empty
suitecrm-1 | Action '-D FOREGROUND' failed.
suitecrm-1 | The Apache error log may have more information.
suitecrm-1 exited with code 1 (restarting)
suitecrm-1 | Permissions set
suitecrm-1 | starting Apache server
suitecrm-1 | suitecrm-8-9-0 is now available @ http://localhost:8080 and https://localhost:8081
suitecrm-1 | PHPMyAdmin is available @ http://localhost:8181
suitecrm-1 | MySQL is available on port 3306
suitecrm-1 | AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/sites.conf:
suitecrm-1 | SSLCertificateFile: file '/etc/ssl/certs/apache-selfsigned.crt' does not exist or is empty
suitecrm-1 | Action '-D FOREGROUND' failed.
suitecrm-1 | The Apache error log may have more information.
suitecrm-1 exited with code 1 (restarting)
...
suitecrm-1 | Permissions set
suitecrm-1 | starting Apache server
suitecrm-1 | suitecrm-8-9-0 is now available @ http://localhost:8080 and https://localhost:8081
suitecrm-1 | PHPMyAdmin is available @ http://localhost:8181
suitecrm-1 | MySQL is available on port 3306
suitecrm-1 | AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/sites.conf:
suitecrm-1 | SSLCertificateFile: file '/etc/ssl/certs/apache-selfsigned.crt' does not exist or is empty
suitecrm-1 | Action '-D FOREGROUND' failed.
suitecrm-1 | The Apache error log may have more information.
suitecrm-1 exited with code 1 (restarting)
...
Turned out that:
/docker/config/apache/apache-selfsigned.crt
/docker/config/apache/apache-selfsigned.key
Are being created as directories, not files. So I deleted them and created as files, but I docker container kept on restarting itself, with the same messages as above. I manually run (see startup.sh)
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout docker/config/apache/apache-selfsigned.key \
-out docker/config/apache/apache-selfsigned.crt \
-subj "/C=UK/ST=TestSt/L=Test/O=OS/CN=localhost"
Since docker-compose.yml seems to be mounting these files with:
- ./docker/config/apache/apache-selfsigned.crt:/etc/ssl/certs/apache-selfsigned.crt
- ./docker/config/apache/apache-selfsigned.key:/etc/ssl/private/apache-selfsigned.key
And only then, after running docker compose up, I was able to enter apache server (http://localhost:8080).
I tried to run master branch.
After following steps in README, without modifying any files, my docker kept on restarting:
Turned out that:
/docker/config/apache/apache-selfsigned.crt
/docker/config/apache/apache-selfsigned.key
Are being created as directories, not files. So I deleted them and created as files, but I docker container kept on restarting itself, with the same messages as above. I manually run (see startup.sh)
Since docker-compose.yml seems to be mounting these files with:
And only then, after running
docker compose up, I was able to enter apache server (http://localhost:8080).I tried to run master branch.