Problem with installing traccar on vps

tamer7 months 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&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&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 Tananaev7 months ago

Update the configuration file any other way you know.

tamer7 months ago

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

Anton Tananaev7 months ago

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