Installation problems

Hi there,

I’m currently trying to get a write freely instance up and running. I was a bit disappointed that the service wasn’t available for shared hosting, but well, now I got my hands on a VPS and I’ll just have to learn my way.
After some trial and error I’ve successfully installed LAMP and I’ve tried installing write freely. Sadly, I get error messages where searching the web somehow doesn’t seem to help.

I get this:

root@asd:/var/www/html# ./writefreely
2018/12/30 10:47:59 Initializing...
2018/12/30 10:47:59 Loading config.ini configuration...
2018/12/30 10:47:59 Loading templates...
2018/12/30 10:47:59 Loading pages...
2018/12/30 10:47:59 Loading user pages...
2018/12/30 10:47:59 Loading encryption keys...
2018/12/30 10:47:59 Connecting to mysql database...
2018/12/30 10:47:59 Adding www.glowpen.eu:443 routes (multi-user)...
2018/12/30 10:47:59 Serving redirects on http://localhost:80
2018/12/30 10:47:59 Serving on https://localhost:443
2018/12/30 10:47:59 ---
ERROR: 2018/12/30 10:47:59 log.go:26: Unable to start: listen tcp 127.0.0.1:443: listen: address already in use

Or, if I try to manually edit the config.ini to a different port, the process just seems to stop after the “—”, and I have to manually abort it.

Any ideas? I checked with netstat, but nothing seems to bind to 127.0.0.1:443.

Thank you,
TQ

Hey, nothing appears on port 443 when you run sudo netstat -tulpn ? If it’s a LAMP installation, I’d assume that Apache is using the port. If that’s the case, stopping the Apache service should free the port up for WF to use it.

Otherwise you can run it on a different port and have Apache act as a reverse proxy to it. When the logs show that “—” and no other error messages, that means the application is running correctly and just waiting for requests.