Something is adding 1. before 3 root files Topic is solved

Discussion regarding Joomla! 3.x security issues.

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
srab
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Nov 15, 2006 1:47 pm

Something is adding 1. before 3 root files

Post by srab » Tue Jan 22, 2019 2:50 pm

Hi, I have a problem something is disabling my site version 3.9.1, site is without any nonjoomla extension or plugin.

I found that something renames these files :
configuration.php
error.php
index.php

to
1.configuration.php
1.error.php
1.index.php

FTP hosting is secured by only one IP address to login, admin also.

Do you have any advise?

srab
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Nov 15, 2006 1:47 pm

Re: Something is adding 1. before 3 root files

Post by srab » Tue Jan 22, 2019 3:05 pm

I just found out , that I had wrongly setup $log_path

Wrongly was there "www", right is "logs".
public $log_path = '/mnt/data/...../www';

Is possibility, that was the case of renaming? Because when I upgraded Joomla, files in logs folder rename same with prefix 1.

mauderific
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sun Jul 22, 2007 7:34 pm

Re: Something is adding 1. before 3 root files

Post by mauderific » Mon Jun 10, 2019 5:47 pm

Is it still working for you ? We have this problem for a couple of months now and it's the first time I found out someone with the same problem.

srab
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Nov 15, 2006 1:47 pm

Re: Something is adding 1. before 3 root files

Post by srab » Mon Jun 10, 2019 5:48 pm

No, after I had corrected $log_path in configuration.php, everything goes well.

7pk2
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun May 19, 2013 2:46 pm

Re: Something is adding 1. before 3 root files

Post by 7pk2 » Tue Jul 02, 2019 3:07 pm

mauderific wrote:
Mon Jun 10, 2019 5:47 pm
Is it still working for you ? We have this problem for a couple of months now and it's the first time I found out someone with the same problem.
Did you fixed it? and how because i am having this same problem also after my server have moved my files???

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Something is adding 1. before 3 root files

Post by leolam » Sat Jul 13, 2019 5:07 pm

Correct $log_path in configuration.php to reflect the proper log path

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

helpwithjoomla
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 154
Joined: Sat Sep 21, 2019 7:29 pm
Contact:

Re: Something is adding 1. before 3 root files

Post by helpwithjoomla » Tue Sep 24, 2019 11:28 pm

I think it's unlikely that your log path is changing file names. If it was I would expect the path to have the number 1 in it somewhere. When we see odd file names on a server it usually means the site was hacked.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Something is adding 1. before 3 root files

Post by leolam » Thu Sep 26, 2019 3:11 pm

helpwithjoomla wrote:
Tue Sep 24, 2019 11:28 pm
I think it's unlikely that your log path is changing file names. If it was I would expect the path to have the number 1 in it somewhere. When we see odd file names on a server it usually means the site was hacked.
That is incorrect. I have explained the reason. Don't post conclusions if you are not aware of what is happening

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

helpwithjoomla
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 154
Joined: Sat Sep 21, 2019 7:29 pm
Contact:

Re: Something is adding 1. before 3 root files

Post by helpwithjoomla » Thu Sep 26, 2019 5:45 pm

Jeez leolam. I made a mistake. I'm sorry. [ redacted ]
Last edited by toivo on Fri Sep 27, 2019 12:40 am, edited 1 time in total.
Reason: mod note: comment removed, please follow the forum rules, available from https://forum.joomla.org/viewtopic.php?f=8&t=65

DJsOakley
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Sun Nov 24, 2019 5:04 pm

Re: Something is adding 1. before 3 root files

Post by DJsOakley » Thu Mar 26, 2020 6:35 pm

I've been struggling with this same issue since moving a site and the past three times, I just go in and delete the "1." added to the front of the three files (configuration.php; index.php; and joomla_update). I checked the path to the logs and perhaps Leo can answer this one (you've been so helpful in the past). The actual path to get into the logs folder is: "/home/***/***.com/logs" The path that is in the configuration file is: "public $log_path = '/home/***/***.com';" To fix it from adding the "1." to the front of the files, would I add the "/logs" and is that the proper line item, i.e. "public" because I did not see any other, unless it is in another location? I am not super techy so I really appreciate any help.

srab
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Wed Nov 15, 2006 1:47 pm

Re: Something is adding 1. before 3 root files

Post by srab » Fri Mar 27, 2020 3:34 am

For me it was solved by correcting $log_path and $tmp_path.

You can detect your absolute path by this,
1. create path.php and paste code below.
2. put path.php to root of your site via FTP
3. run path.php via correct url https://www.yoursite.com/path.php
4. copy result to $log_path and $tmp_path in your configuration.php file and add /administration/logs & /tmp to $log_path and $tmp_path.

Code: Select all

<?php
    $path = getcwd();
    echo "Your Absoluthe Path is: ";
    echo $path;
 ?>

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2636
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Something is adding 1. before 3 root files

Post by JAVesey » Mon Mar 30, 2020 8:06 am

srab wrote:
Fri Mar 27, 2020 3:34 am
4. copy result to $log_path and $tmp_path in your configuration.php file and add /administration/logs & /tmp to $log_path and $tmp_path.
Thank you for this.

Quick Q: please can you clarify the above instruction? It doesn't make sense ;)

TIA
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17439
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Something is adding 1. before 3 root files

Post by toivo » Mon Mar 30, 2020 9:57 am

Here is an example. The script may display the following absolute path:

Code: Select all

/home/fwbkxyzh/public_html
Now you can edit the server paths in the file configuration.php or in the back end at System - System Configuration:

Code: Select all

/home/fwbkxyzh/public_html/administrator/logs
/home/fwbkxyzh/public_html/cache
/home/fwbkxyzh/public_html/tmp
Toivo Talikka, Global Moderator

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2636
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Something is adding 1. before 3 root files

Post by JAVesey » Mon Mar 30, 2020 7:42 pm

Thank you all :)
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28


Locked

Return to “Security in Joomla! 3.x”