Page 1 of 1

Something is adding 1. before 3 root files

Posted: Tue Jan 22, 2019 2:50 pm
by srab
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?

Re: Something is adding 1. before 3 root files

Posted: Tue Jan 22, 2019 3:05 pm
by srab
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.

Re: Something is adding 1. before 3 root files

Posted: Mon Jun 10, 2019 5:47 pm
by mauderific
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.

Re: Something is adding 1. before 3 root files

Posted: Mon Jun 10, 2019 5:48 pm
by srab
No, after I had corrected $log_path in configuration.php, everything goes well.

Re: Something is adding 1. before 3 root files

Posted: Tue Jul 02, 2019 3:07 pm
by 7pk2
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???

Re: Something is adding 1. before 3 root files

Posted: Sat Jul 13, 2019 5:07 pm
by leolam
Correct $log_path in configuration.php to reflect the proper log path

Leo 8)

Re: Something is adding 1. before 3 root files

Posted: Tue Sep 24, 2019 11:28 pm
by helpwithjoomla
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.

Re: Something is adding 1. before 3 root files

Posted: Thu Sep 26, 2019 3:11 pm
by leolam
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)

Re: Something is adding 1. before 3 root files

Posted: Thu Sep 26, 2019 5:45 pm
by helpwithjoomla
Jeez leolam. I made a mistake. I'm sorry. [ redacted ]

Re: Something is adding 1. before 3 root files

Posted: Thu Mar 26, 2020 6:35 pm
by DJsOakley
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.

Re: Something is adding 1. before 3 root files

Posted: Fri Mar 27, 2020 3:34 am
by srab
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;
 ?>

Re: Something is adding 1. before 3 root files

Posted: Mon Mar 30, 2020 8:06 am
by JAVesey
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

Re: Something is adding 1. before 3 root files

Posted: Mon Mar 30, 2020 9:57 am
by toivo
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

Re: Something is adding 1. before 3 root files

Posted: Mon Mar 30, 2020 7:42 pm
by JAVesey
Thank you all :)