Bienvenue, Invité
Nom d'utilisateur : Mot de passe :


This Help forum is for issues relates to the latest release (1.7.2). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

SUJET : Config.ini.php crash

Config.ini.php crash il y a 3 ans 4 mois #1

  • ksajdak
  • Portrait de ksajdak
  • Hors Ligne
  • New
  • Messages : 43
Just started getting the following error:

#0 unknown:unknown ErrorException("syntax error, unexpected '$' in C:\home\site\wwwroot\webtrees\data\config.ini.php on line 1 ")
#1 \includes\session.php:253 parse_ini_file()
#2 \index.php:31 require()

I have 3 questions:

1) What caused this?
2) How do I get back into my tree?
3) How do I prevent it?
L'administrateur a désactivé l'accès en écriture pour le public.

Config.ini.php crash il y a 3 ans 4 mois #2

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 11536
> What caused this?

Most likely, your server has been hacked, and an attacker has added their own code to the file config.ini.php

I've seen this a few times.

Usually only this file is infected, as it is often the only .PHP script that the server can write to.

> How do I get back into my tree?

Edit this file, and remove the "bad" code that has been inserted at the start.

> How do I prevent it?

Are all the web applications on your server patched and updated?
This is especially relevant for things like word-press plugins.

If your web host provides other websites, and doesn't properly isolate its customers, then it is possible that a vulnerability on another customer's site was the cause.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.

Config.ini.php crash il y a 3 ans 4 mois #3

  • ksajdak
  • Portrait de ksajdak
  • Hors Ligne
  • New
  • Messages : 43
Thanks for the quick response.

As I'm not sure what should be in the file, can I delete it and reinstall without losing anything?
L'administrateur a désactivé l'accès en écriture pour le public.

Config.ini.php crash il y a 3 ans 4 mois #4

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrator
  • Messages : 11536
> As I'm not sure what should be in the file, can I delete it and reinstall without losing anything?

It contains your database connection information.

It should look like this:
www.webtrees.net/index.php/en/forum/help...tion-collation#59621
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net
L'administrateur a désactivé l'accès en écriture pour le public.
Propulsé par Kunena