Problem with installing traccar on vps

tamer 2 years ago

Hello,
Unfortunately, I have the problem that when I look at the instructions for setting up the VPS for Traccar.
as soon as I want to execute the following command : Update the configuration file to use MySQL database

cat > /opt/traccar/conf/traccar.xml << EOF
<?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='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;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>

</properties>
EOF 

I always come across the following error message: -bash : !DOCTYPE: event not found
How can I fix the problem to install and run traccar on my vps?

I look forward to your help, thank you very much

Anton Tananaev 2 years ago

Update the configuration file any other way you know.

tamer 2 years ago

Thanks for the quick response, how can I do this on a vps server?

Anton Tananaev 2 years ago

Are you planning to host your own server without knowing how to edit a text file?