BadBoyBubby
Posts: 31
Joined: Sun Jul 22, 2012 5:13 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Tue Aug 14, 2012 12:41 pm

urfankhaliq wrote:Hi I have followed the instructions and can browse to the raspcontrol page but when I go to setup.php and try to create a user it says "cannot open file"

Any ideas?
Hi
I'm trying to get this running on a lighttpd server except I get the same error as urfankhaliq above 'can't open file' after trying to create a login. I tried sudo visudo but I'm not running apache so got 'command not found'.

How would I resolve this please.

Thanks

Bubby

maui
Posts: 25
Joined: Sun Jul 08, 2012 10:10 am

Re: Raspcontrol - A Web Control Centre for the Pi

Tue Aug 14, 2012 12:54 pm

Hey Bioshox, well done :)

I can't find the setup.php either!

now you got to answer my question ;)
is it possible to add a second user with other privileges?
ex. not able to reboot, not able to update!

so you could do a guest account. ;)

urfankhaliq
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Tue Aug 14, 2012 4:38 pm

BadBoyBubby wrote:
urfankhaliq wrote:Hi I have followed the instructions and can browse to the raspcontrol page but when I go to setup.php and try to create a user it says "cannot open file"

Any ideas?
Hi
I'm trying to get this running on a lighttpd server except I get the same error as urfankhaliq above 'can't open file' after trying to create a login. I tried sudo visudo but I'm not running apache so got 'command not found'.

How would I resolve this please.

Thanks

Bubby
Hi my issue was resolved with adding www-data to your Sudoers list (sudo visudo)

trouch
Posts: 310
Joined: Fri Aug 03, 2012 7:24 pm
Location: France
Contact: Website

Re: Raspcontrol - A Web Control Centre for the Pi

Tue Aug 14, 2012 5:04 pm

setup.php no more on git repo !

so a lot of PHP notice when using my browser :

Notice: Undefined index: setup in /home/pi/Raspcontrol/app/index.php on line 3
Notice: A session had already been started - ignoring session_start() in /home/pi/Raspcontrol/app/index.php on line 33
Notice: Undefined index: username in /home/pi/Raspcontrol/app/index.php on line 35
Notice: A session had already been started - ignoring session_start() in /home/pi/Raspcontrol/app/_lib/includes/_header.php on line 2
Notice: Undefined index: username in /home/pi/Raspcontrol/app/_lib/includes/_header.php on line 38
Notice: Undefined index: username in /home/pi/Raspcontrol/app/_lib/includes/_header.php on line 70
Notice: A session had already been started - ignoring session_start() in /home/pi/Raspcontrol/app/_lib/classes/_login.php on line 1
Notice: Undefined variable: wrong in /home/pi/Raspcontrol/app/index.php on line 57

I use the latest sources from the GIT repo, on a Raspbian wheezy with Apache/PHP 5.4 and a symlink from /var/www/raspcontrol to /home/pi/Raspcontrol

WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com

Linus
Posts: 23
Joined: Sat Mar 03, 2012 9:49 am

Re: Raspcontrol - A Web Control Centre for the Pi

Wed Aug 15, 2012 10:00 am

I'm getting the error:

Code: Select all

Failed to listen on 0.0.0.0:80 (reason: Address already in use)
when running the start.sh script. Can someone point me to what is wrong in my setup?

Thanks!

trouch
Posts: 310
Joined: Fri Aug 03, 2012 7:24 pm
Location: France
Contact: Website

Re: Raspcontrol - A Web Control Centre for the Pi

Wed Aug 15, 2012 10:33 am

you have something that is already bound to port 80, maybe an Apache server ?
in that case, I understood you don't have to run start.sh
Linus wrote:I'm getting the error:

Code: Select all

Failed to listen on 0.0.0.0:80 (reason: Address already in use)
when running the start.sh script. Can someone point me to what is wrong in my setup?

Thanks!

WebIOPi - Raspberry Pi REST Framework to control your Pi from the web
http://store.raspberrypi.com/projects/webiopi
http://code.google.com/p/webiopi/
http://trouch.com

User avatar
RaspberryPiBeginners
Posts: 224
Joined: Fri May 11, 2012 6:54 am
Location: Soham, Cambridgeshire
Contact: Website

Re: Raspcontrol - A Web Control Centre for the Pi

Thu Aug 16, 2012 9:48 pm

I ran " sudo apt-get purge apache* " now oviously this will uninstall anything Apache but it got it working.
Click here for my unofficial YouTube Channel > http://goo.gl/oFYBD

Bioshox
Posts: 104
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
Contact: Website

Re: Raspcontrol - A Web Control Centre for the Pi

Thu Aug 16, 2012 10:11 pm

Please follow Raspcontrol on Twitter: https://twitter.com/Raspcontrol

Feel free to tweet us for Support or Help and Follow us to be kept updated!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)

Linus
Posts: 23
Joined: Sat Mar 03, 2012 9:49 am

Re: Raspcontrol - A Web Control Centre for the Pi

Fri Aug 17, 2012 6:07 pm

Okay thanks guys! That did the trick :)

65coupei6
Posts: 27
Joined: Wed Jul 18, 2012 1:29 am

Re: Raspcontrol - A Web Control Centre for the Pi

Sun Aug 19, 2012 6:20 pm

Anyway to start this on bootup? I am new to linux but I figure the start script can be put in
the /etc/init.d right? Any examples?

Dutch_p1
Posts: 2
Joined: Wed Jul 18, 2012 6:16 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Wed Sep 12, 2012 8:18 pm

BadBoyBubby wrote:
urfankhaliq wrote:Hi I have followed the instructions and can browse to the raspcontrol page but when I go to setup.php and try to create a user it says "cannot open file"

Any ideas?
Hi
I'm trying to get this running on a lighttpd server except I get the same error as urfankhaliq above 'can't open file' after trying to create a login. I tried sudo visudo but I'm not running apache so got 'command not found'.

How would I resolve this please.

Thanks

Bubby
I am running into the same problem. I have nginx.
It's something about the file creation. I have created every folder and file manually. It wasn't such a big problem, I just followed the php script creation process.

I have one little thing left; figuring out how the program actually stored the username/password combo in the file. Since you can edit it manually and put it in.

Could someone open their own "/etc/raspcontrol/database.aptmnt" and tell me how everything is stored? Just replace your username and password by x's ;)

EDIT: nvm, I got it.
The file is stored in this format: { "user": "username", "password": "password" }
So, BadBoyBubby, if you do the same thing as I did, you should be ok! The file & folder creation step are in the index.php file in the /app directory.

JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 1:20 pm

I've been stuck for some time. When I try to do: sudo ./start.sh, I get:
Unable to find PHP

I followed this guide here: http://raspberrypipod.blogspot.com.au/2 ... ntrol.html

and I thought the "sudo apt-get install php5" would have done all the php stuff required... So any ideas as to get Raspcontrol running?

I am running a fresh install of 2012-08-16-wheezy-raspbian and I'm new to the pi and Linux altogether.

Faperdaper
Posts: 10
Joined: Sat Oct 22, 2011 9:40 am

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 4:52 pm

JVM wrote:I've been stuck for some time. When I try to do: sudo ./start.sh, I get:
Unable to find PHP

I followed this guide here: http://raspberrypipod.blogspot.com.au/2 ... ntrol.html

and I thought the "sudo apt-get install php5" would have done all the php stuff required... So any ideas as to get Raspcontrol running?

I am running a fresh install of 2012-08-16-wheezy-raspbian and I'm new to the pi and Linux altogether.
You will need the command line version of php5. Try to use

Code: Select all

sudo apt-get install php5-cli

urfankhaliq
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 8:22 pm

is anyone else getting Failed to check for the latest version?

Baldrick1
Posts: 29
Joined: Thu Aug 02, 2012 3:37 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 8:48 pm

urfankhaliq wrote:is anyone else getting Failed to check for the latest version?
Yep. The file http://fusionstrike.com/raspcontrol/version.csv seems to have gone AWOL so it errors out.

urfankhaliq
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 8:52 pm

OK thanks

I dont suppose you can also answer why Im unable to reboot the pi from raspcontrol? I get a pop up saying its going to reboot but nothing actually happens!

Baldrick1
Posts: 29
Joined: Thu Aug 02, 2012 3:37 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 11:40 pm

I'd have to guess that it's because visudo isn't working for some reason.

Can you type "sudo visudo"
Then scroll to the bottom of the file and on the last line add: www-data ALL=(ALL) NOPASSWD: ALL


All the reboot button is, is a fancy interface for the command "sudo reboot" so it's nothing complex which makes me think that it's a problem with sudo. I am of course assuming that when you manually type "sudo reboot" into your bash session then it acts as expected?

urfankhaliq
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sat Sep 15, 2012 11:43 pm

Yeah sudo reboot works fine. I'll give your suggestion a try and let u know soon.

Thanks

JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am

Re: Raspcontrol - A Web Control Centre for the Pi

Sun Sep 16, 2012 1:34 am

Faperdaper wrote:You will need the command line version of php5. Try to use

Code: Select all

sudo apt-get install php5-cli
Thanks Faperdaper, that's all it was, I have now got Raspcontrol running! :D

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sun Sep 16, 2012 5:09 pm

Hi. i just got my Raspcontrol running and i have one question. It shows that my cpu is running at 697.95 MHz but in config i have 900mhz and i dont know if the config file is wrong or your program is not showing the correct way.
But it is superb program
Thanks for any answer.

urfankhaliq
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Sun Sep 16, 2012 9:12 pm

Baldrick1 wrote:I'd have to guess that it's because visudo isn't working for some reason.

Can you type "sudo visudo"
Then scroll to the bottom of the file and on the last line add: www-data ALL=(ALL) NOPASSWD: ALL


All the reboot button is, is a fancy interface for the command "sudo reboot" so it's nothing complex which makes me think that it's a problem with sudo. I am of course assuming that when you manually type "sudo reboot" into your bash session then it acts as expected?
Hi I just checked the file and it already has the exact entry..

scorp
Posts: 96
Joined: Tue May 29, 2012 6:21 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Mon Sep 17, 2012 8:48 am

oakfan52 wrote:I just updated. my

Distribution:
Kernel:
Firmware:

are empty as seen above.
I also didn't have it, then I removed "sudo" in exec commands in /app/index.php and its ok now

Baldrick1
Posts: 29
Joined: Thu Aug 02, 2012 3:37 pm

Re: Raspcontrol - A Web Control Centre for the Pi

Mon Sep 17, 2012 2:21 pm

urfankhaliq wrote:
Baldrick1 wrote:I'd have to guess that it's because visudo isn't working for some reason.

Can you type "sudo visudo"
Then scroll to the bottom of the file and on the last line add: www-data ALL=(ALL) NOPASSWD: ALL


All the reboot button is, is a fancy interface for the command "sudo reboot" so it's nothing complex which makes me think that it's a problem with sudo. I am of course assuming that when you manually type "sudo reboot" into your bash session then it acts as expected?
Hi I just checked the file and it already has the exact entry..
Sorry, I can't imagine what else is wrong then. Still learning this stuff myself. Hopefully someone more knowledgeable will be along before too long :)
P4d0uch wrote:Hi. i just got my Raspcontrol running and i have one question. It shows that my cpu is running at 697.95 MHz but in config i have 900mhz and i dont know if the config file is wrong or your program is not showing the correct way.
But it is superb program
Thanks for any answer.
Can you run the command "cat /proc/cpuinfo | grep BogoMIPS" and share the results?
I actually have the same issue on mine although I've not taken the time to look into it until now. I *believe* although I have nothing to back this up right now, that it is caused by the new firmware and the CPU scaling that has been implemented.

I need to look into this a lot more, but what leads me to this conclusion is the contents of the files
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
and
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

In my case, the current frequency is being reported as 700000 (default out of the box speed) and
850000 (I chose 850Mhz as my overclock).

This is what makes me think that it is (or at least has the potential) to overclock but will always report 700Mhz in /proc/cpuinfo for some reason.

I need to go back and read more about the CPU scaling before I'm confidant that's where the problem is, but this issue started for me after a firmware upgrade so I think it's likely to be the Pi itself rather than Raspcontrol that's caused it

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Raspcontrol - A Web Control Centre for the Pi

Mon Sep 17, 2012 3:28 pm

Baldrick1 wrote:
urfankhaliq wrote:
Baldrick1 wrote: I need to look into this a lot more, but what leads me to this conclusion is the contents of the files
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
and
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

In my case, the current frequency is being reported as 700000 (default out of the box speed) and
850000 (I chose 850Mhz as my overclock).

This is what makes me think that it is (or at least has the potential) to overclock but will always report 700Mhz in /proc/cpuinfo for some reason.

I need to go back and read more about the CPU scaling before I'm confidant that's where the problem is, but this issue started for me after a firmware upgrade so I think it's likely to be the Pi itself rather than Raspcontrol that's caused it
Hi

This may or may not be related but I think the recent Firmware implements a Turbo mode where it will overclock to the speed you have set when under load but will drop back to the default speed when idle.

http://www.raspberrypi.org/phpBB3/viewt ... bo#p173680
Cheers

Paul
Procrastination - The Thief of Time.

chaotux
Posts: 14
Joined: Tue Sep 18, 2012 4:44 am

Re: Raspcontrol - A Web Control Centre for the Pi

Tue Sep 18, 2012 4:48 am

I have put together everything I could find on getting raspcontrol setup... as far as code goes that is, please let me know if this can be inproved

Code: Select all

apt-get install apache2 php5 php5-cgi php5-common php5-cli -y

cd /etc/apache2/
perl -pi -w -e 's/80/8081/g;' ports.conf

cd /var/www/
rm -r raspcontrol
wget https://github.com/Bioshox/Raspcontrol/zipball/master
unzip master
mv Bioshox-Raspcontrol-* raspcontrol
rm master
chmod 755 start.sh
make a raspcontrol.sh file or which ever you choose then do "sudo ./raspcontrol" to run all the commands in one easy script.

Return to “Networking and servers”