XF 2.0 Restore index.php

Lemkonen

Member
Hi,

an attempt installing a web server on the same Linux server hosting XenForo went south. The software overwrote the index.php ... the landing page. The forum is dead, while the admin page still works and also some direct links. What would be the quickest course of action to get the file back?
Can it be found in the installation package?
Could it be recreated?
We could use the backups but it's slow and we'd have to wait until the next backup is performed tomorrow morning, then load the version from yesterday, get the file and roll back again to the current version.
Is there a faster or easier way to accomplish this?

Thanks,
Herbert
 
We found a solution. The installation seems to create
/var/www/vhosts/default which includes the index.php file.
The directory
/var/www/vhosts/MyDomain has very similar content and it's the path used by XF and it's index.php was missing. Copying the file from the default directory to the MyDomain directory fixed the issue.
 
Back
Top Bottom