NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

greasyrainbow's avatar
Apr 04, 2019

I accidentally removed Apache from my ReadyNAS and no longer have an admin page.

Like the title says, I was playing around trying to get OwnCloud working and without thinking did an apt-get purge and apt-get autoremove to Apache2 and related software. I was able to reinstall Apache and it's running, but the admin files from /var/www are gone. Is there any way I can extract them out of the firmware .img file? Can I download it from somewhere? Is there a procedure to restore it from the firmware image without deleting my data? Thanks in advance!

 

Also, somewhat on topic, why does the ReadyNAS repo have such old apps on it? The default OwnCloud that it installed was version 5.x. 10.1 is current on OwnCloud's website.

5 Replies

Replies have been turned off for this discussion
    • StephenB's avatar
      StephenB
      Guru - Experienced User

      Sandshark wrote:

      An OS Re-install does not harm your data.  See this thread: OS-Re-install-via-SSH.


      It is worth a try, but it doesn't reinstall everything.  You still might end up with no web ui, and/or a damaged configuration.

       

      FWIW, I think there's more stuff missing than /var/www.  All I see in there is one file (index.html) that you could easily recreate.  Note it is owned by guest (which is a bit odd).

      root@NAS:/var/www# ls -als
      total 4
      0 drwxr-xr-x 1 root root 20 Jan 27 06:16 .
      0 drwxr-xr-x 1 root root 146 Jan 27 06:17 ..
      4 -rw-r--r-- 1 115 guest 53 Oct 9 15:53 index.html root@NAS:/var/www# cat index.html <meta http-equiv="refresh" content="0; url=/admin/">
      • greasyrainbow's avatar
        greasyrainbow
        Aspirant

        You're right, with Apache2 installed again I only see /var/www/index.html with guest permissions too. Can you look in your /etc/apache2/sites-available/ and sites-enabled/ for me? I have a feeling the ReadyCloud UI is somewhere in there.