Re: Linux file permission
OK... I got #2 sorted out. Basically, on an Ubuntu box, the user that was created during the OS installation is not really the root user... The actual root user does exist, but we just don't know what the password is to log in as root. So I had to change the password for the root account and the log in as root user => this enables me to access all the files/folders that I had been locked out under my own user account.
I'm still looking for answers to #1 and #3 though...
Re: Linux file permission
Re: Linux file permission
sounds like a fail safe for harddisk theft, maybe the raid has to be fixed by the manufacturer
Re: Linux file permission
I came out that the 2 drives were actually set up in raid0 (stripe) mode, and one of the drive went bad. This was one of the server that we "inherited" from an acquisition of another company. We didn't care much about it while it was running/working and everyone thought that it's not very important, so it was set up to backup to an ftp location and then we all forget about it assuming that the backups are running every day... Then server died. Only then did we realized that the backups did not run for almost a year. The latest backup we have now dated mid Sept. 2010.
Any, since the drives were in raid0, and one of the drive died, there's not much I could recover. So the task of recovering the web site from it has been abandoned. I am now focus on rebuilding the server and use whatever we have from the backups... Looks like everyone in my IT dept (including myself) shall be prepared to have our a.s.ses kicked for this.
Oh well, it is what it is since that is the nature of life :(
Re: Linux file permission
For #1 the answer will be in 1 of 3 files. The first is /etc/apache2/apache.conf
You are looking for the default directory. The other options are the files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
I can't remember the names of the files in these folders but there is only 1 (or sometimes 2) in there. These will hold the location for the websites source code.
As for #3 that really depends on your own setup and where apache expects it to be (as specified in the files mentioned above), but is usually /var/www/html I think.