I build goaccess from src with ./configure --enable-geoip --enable-utf8
After build, i run goaccess --dcf and get:
No default config file found.
You may specify one with -p /path/goaccess.conf
Jep, thats helpful. Not. How to specify the the default config path/file or where search for it? I don't mean the -p option. Missing documentation about!
Please help :)
Did you actually install it with # make install or just make? You need to fully install it from source so that it knows where SYSCONFDIR is pointing to.
Also, take a look at the FAQ for details on where the configuration file is located.
I do just make, no make install, because i copy the binary to the target machine...
I try make install on my build machine.
EDIT: It's under '/usr/local/etc/goaccess.conf'. How can i change this to '/etc/goaccess.conf'?
You will need a full make install. I haven't tested if copying the binary to a different machine will do it. Otherwise, you will need to fully install it directly on the target machine.
Copying goaccess after make install to /usr/local/bin/ and the config file to /usr/local/etc/ on the target machine works perfectly.
Closing this. Feel free to reopen it if needed.
Most helpful comment
Copying goaccess after make install to /usr/local/bin/ and the config file to /usr/local/etc/ on the target machine works perfectly.