New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Annoying small problem

Got problems with your B2 or B3? Share and get helped!
Post Reply
Caper
Posts: 13
Joined: 17 Apr 2009, 08:12

Annoying small problem

Post by Caper »

My Bubba two is up running pretty nice but there is a small annoying problem.
When i go to http://bubba/ I cant log in but have to manually browse to the login screen.
This is a screenshot how it looks at http://bubba/
Image

Any ideas how to correct this?
carl
Posts: 474
Joined: 07 May 2008, 04:41

Re: Annoying small problem

Post by carl »

Caper wrote:My Bubba two is up running pretty nice but there is a small annoying problem.
When i go to http://bubba/ I cant log in but have to manually browse to the login screen.
This is a screenshot how it looks at http://bubba/
Image

Any ideas how to correct this?
Seems that /home/web/index.html has gone missing. You can restore it from /usr/share/bubba-backend/default_web/

/Carl
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
Caper
Posts: 13
Joined: 17 Apr 2009, 08:12

Re: Annoying small problem

Post by Caper »

Have no knowledge in Linux, suppose I have to log in with Putty to restore the file?
Can someone help me out how to do this?
asparak
Posts: 173
Joined: 08 Jun 2009, 07:38

Re: Annoying small problem

Post by asparak »

Hi Caper,

Not sure how much you know. Apologies if its too basic for you. I'll also do this long hand, so you see all the steps. Their are some ways of doing it quickly, but that won't help you understand the commands.
1. Log into putty to your Bubba using PuTTy as yourself (or what ever user name you usually use).
2. Now change to admin

Code: Select all

su - 
(thats su<space>minus<space>)
Enter the root password, which is usually excito by default. (I strongly recommend you change this at some point, its way too easy to guess)
Now we fix the missing file:

Code: Select all

cd /usr/share/bubba-backend/default_web
This puts us in the right directory. YOu can skip the next step if you want, I'm just showing how you can look at the contents of the directory.

Code: Select all

ls
This will show you what else is in the directory, beside the file we need for now. ls is a useful command to know.

Now lets copy the file using the cp command.

Code: Select all

cp index.html /home/web
This copies the index.html file to the right directory. However, its not going to be readable by your webserver immediately, so lets fix that.

Code: Select all

cd /home/web
We are now in the right directory again. You could use ls again here, if you wanted to see what is there. Lets fix the file permissions. Don't worry if you don't understand what this means for now.

Code: Select all

chown www-data:users index.html
Changes who is the owner of the file to be the webserver, so that its readable

Code: Select all

chmod 664 index.html
changes the permissions, so that the webserver only has the access it needs to the file and nothing more.

That should then work for you. Let me know if you need more help and I'll happily walk you through all of the steps.
Caper
Posts: 13
Joined: 17 Apr 2009, 08:12

Re: Annoying small problem

Post by Caper »

Thank you!
I needed help with all the steps as I don´t know anything about Linux.
It works now, thanks to you 8)
Post Reply