Piwik Index File

Hi, I accidentally deleted some directories of my site on the server that included the piwik folder. The page that displayed the visitor map has the following code:

<div class="about-outer-v">
<div class="about-inner-v">
<iframe onload="wait()" class="resp-iframe" src="https://www.theairlinepilots.com/sitestats/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=UserCountryMap&actionToWidgetize=realtimeMap&idSite=1&period=day&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</div>
</div>

Since the sitestats folder and its contents were deleted, I don’t have the index.php file. Can anyone please tell how to go about it. All I have with me is “GeoIPCity.dat” file and data in the database. Thanks

Hi,

It does not matter if you delete your Matomo directory as all files are replacable.

You can simply download the matomo.zip from https://builds.matomo.org/ again and use those files.

If you still have your config/config.ini.php, you don’t have to do anything apart from maybe setting up GeoIP again and installing plugins from the marketplace.

If you don’t have the config.ini.php anymore, you can go through the installer, enter your MySQL credentials and it should detect that Matomo is already installed in this database (pay attention to use the right database prefix (it might be piwik_ if you installed Matomo a long time ago) and create the correct config.ini.php.

Thank you so much Lukas. Issue resolved.