Upload my own Frontend

sanger 10 months ago

Hey, i setup the Traccar Server on Linux (Ubuntu 22.04).
I connected my domain and added the SSL Certificate.
When I opened my domain, it showed me the traccar frontend.

So i delete the content of "opt/traccar/modern" and uploaded my own Frontend (written in html, php, css, js)
When i opened my domain it says "403 - Forbidden".
Any ideas? Or do I have to do it in a other way to upload my own Frontend?
Thanks in advance.

Anton Tananaev 10 months ago

Please don't duplicate topics.

sanger 10 months ago

I'm sorry, do you think you can help me?
I would appreciate it!

457478955475 10 months ago

Mine is updated, so I don't use the modern folder but the WEB folder, but the logic is the same, and I upload it through Filezilla and it works perfectly, did you restart the server after uploading the folder, so it can load everything?

sanger 10 months ago

yes i did.
doesnt work…
could you please give me an instruction on how to do that like you did? i would appreciate it!

457478955475 10 months ago

Eu já disse, uso o programa filezilla, com ele conecto no meu servidor, e transfiro a pasta web. Ou você pode coloca-la no github, e depois em um terminal clonar a pasta do git.

sanger 10 months ago

I reinstalled Linux and did it all over again.
I installed Traccar, connected it to my domain and SSL.
When I open my Domain the Traccar Website pops up.
I deleted everything from WEB folder and uploaded my frontend (php, html, css, js)
Now it says 403 - Forbidden.
Any ideas?

sanger 10 months ago

when I change my index.php to index.html it works, but there are php errors so I need index.php

457478955475 10 months ago

Antes esse front end funcionava ? Por que apagou tudo ?

sanger 10 months ago

yes the traccar frontend worked, i didnt delete it, i moved it into a folder

457478955475 10 months ago

Me refiro ao que vc diz que personalizou, o seu. Ele funcionou alguma vez ?

sanger 10 months ago

yes it worked on my localhost (xampp)

457478955475 10 months ago

Verifique se não está colocando o front em uma versão diferente do servidor, pois se instalou no Ubuntu ele vai sempre buscar a versão mais nova. Você mencionou a pasta moderna, mas nas versões atuais não se usa mais ela.

sanger 10 months ago

I installed newest version of Traccar.
My frontend is now in WEB folder, doesnt work…

457478955475 10 months ago

Se você usava uma versão antiga do traccar e simplesmente renomeou a pasta modern para WEB acho que não tem como funcionar, pois são versões diferentes, tente instalar a mesma versão do traccar que usava quando modificou o frontend