Traccar Server Digital Ocean Install

Mike Tallent5 years ago

Seems this link https://www.traccar.org/install-digitalocean/ is outdated because the install fails all of the way
at the bottom when putting in cp traccar.xml /opt/traccar/conf/ This command.
There is an out folder but not an opt folder.

Also the command just before this is confusing where it has you paste contents into an xml file.
-- it says replace password if needed but I'm confused about what password it means and where?

Example configuration (replace password if needed)

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key="config.default">./conf/default.xml</entry>

    <entry key='web.port'>80</entry>

    <entry key='geocoder.enable'>false</entry>

    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>root</entry>
    
    <entry key='server.timeout'>120</entry>

</properties>
Macan5 years ago

You must create database and database user and create password for that, and repleace it in that config file with your database, user and password.