solved Erased index.php in public_html directory ... HELP

JammerPro
JammerPro
@jammerpro
last year
44 posts
I was hacked, and although I managed to keep everything, I did lose 1 file (this is confirmed). I need to replace index.php in my root to open my JamRoom. Is there anyway to do this without having to reinstall the whole thing... In other words, I just need that index.php file and I'm set. Please help.

Elliot
updated by @jammerpro: 07/28/23 06:08:23PM
brian
@brian
last year
10,148 posts
Hi Elliot - sorry you're dealing with this! Jamroom does not use an index.php file for versions 5 and on - what version of Jamroom are you restoring?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
JammerPro
JammerPro
@jammerpro
last year
44 posts
Brian, I am not seeing your response that was emailed here for some reason... I was expecting to see your reply. "Hi Elliot - sorry you're dealing with this! Jamroom does not use an index.php file for versions 5 and on - what version of Jamroom are you restoring?" I THINK IM IN VERSION 5 but not sure.
JammerPro
JammerPro
@jammerpro
last year
44 posts
Oops. your reply was hidden by the pop-up LOL. My installation at https:// Musicians.Exchange
brian
@brian
last year
10,148 posts
JammerPro:
Oops. your reply was hidden by the pop-up LOL. My installation at https:// Musicians.Exchange

Do you have a "modules/jrCore" directory in your install?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
JammerPro
JammerPro
@jammerpro
last year
44 posts
Yes! Found it. It's up t jrCore-release-6.5.13. So, I must have version 6.5.13. What do I do in the root directory to get the site to run? there is no index.php file there now.
JammerPro
JammerPro
@jammerpro
last year
44 posts
Brian, you still with me?
brian
@brian
last year
10,148 posts
JammerPro:
Brian, you still with me?

Yeah you gotta give me a minute :)

Jamroom 5 and newer does not use a index.php file - just copy the modules/jrCore/root/.htaccess file in to your main directory - that uses mod_rewrite to handle the routing. If you cannot see the file it will be a "hidden" file so you may need to enable showing hidden files in your SFTP client.

Also you need to make sure mod_rewrite is enabled in your Apache install.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 04/29/23 06:51:33AM
JammerPro
JammerPro
@jammerpro
last year
44 posts
Love you Brian... the original .htaccess file was untouched, so I just removed the index.php fake file, and I'm up and running. Thanks again for the save. I've been up for 24 hours putting 29 sites back together. Hope all is well with you!!!!!!!! Thanks again~!
brian
@brian
last year
10,148 posts
Glad that is fixed up - get some rest if you can :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
JammerPro
JammerPro
@jammerpro
last year
44 posts
BTW, a little off topic, but of interest is that Imunify AV is identifying 5 files in jamroom as infections: 1) modules/jrSystemTools-release-1.1.0/tools/ffmpeg; 2) modules/jrSystemTools-release-1.1.0/tools/tifig; 3) modules/jrSystemTools-release-1.2.0/tools/ffmpeg; 4) modules/jrSystemTools-release-1.2.0/tools/tifig; and 5) modules/ujPhantom-release-1.1.0/contrib/phantomjs-2.1.1-linux-x86_64/bin/phantomjs. I had read a while back that ffmpeg had some exploits... Any thoughts?
brian
@brian
last year
10,148 posts
Those a prepackaged Linux binaries that are part of the System Tools module - I would reload that module from the Core -> Marketplace -> Tools -> Reload Modules or Skins tool as they may have been compromised.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
JammerPro
JammerPro
@jammerpro
last year
44 posts
EPILOGUE: I reloaded ffmpeg and phantom. Went and downloaded latest version of phantom and all works. I think it must be false positives. I certainly did not get hacked by ffmpeg LOL. I seem to recall that GoDaddy, NVidia, and some others had data leak issues this year. They had my email and my favorite password. Again, thanks for the help today.

Tags