Pagina 1 van 1

Spotweb on a Raspberry Pi

Geplaatst: 12 mei 2015, 07:47
door Wod_Ka
Thanks for the great tutorial, got it up but not running.
Get following error when doing the initial retrieve with ~ $ php /var/www/spotweb/retrieve.php --force

-bash: php: command not found

Anybody can help this noob to solve this problem?

Spotweb on a Raspberry Pi

Geplaatst: 12 mei 2015, 18:09
door Blauwbek
Did you do this: sudo apt-get install php5

If you already have php try which php and whereis php. If none is found you should find the php binary and make a symlink for it in /etc/php or something or put it in path

Re: Spotweb on a Raspberry Pi

Geplaatst: 14 mei 2015, 09:30
door Wod_Ka
Blauwbek schreef:Did you do this: sudo apt-get install php5

If you already have php try which php and whereis php. If none is found you should find the php binary and make a symlink for it in /etc/php or something or put it in path
Thanks for your reply!

Yes i did sudo apt-get install php5 and find a folder php5 in /etc but when i ty to cd into that folder i get this error "-bash: cd: /php5: No such file or directory.

Any idea how i can make it work?

Re: Spotweb on a Raspberry Pi

Geplaatst: 14 mei 2015, 11:58
door Blauwbek
what does "which php" say?

Re: Spotweb on a Raspberry Pi

Geplaatst: 15 mei 2015, 04:41
door Wod_Ka
-bash: php: command not found

but when i check my spotweb settings it states:

PHP version 5.4.39-0+deb7u2 OK

Re: Spotweb on a Raspberry Pi

Geplaatst: 16 mei 2015, 22:43
door Blauwbek
And what does whereis php say?

Re: Spotweb on a Raspberry Pi

Geplaatst: 17 mei 2015, 06:53
door Wod_Ka
Blauwbek schreef:And what does whereis php say?
~ $ whereis php5
php5: /etc/php5 /usr/lib/php5 /usr/share/php5

Re: Spotweb on a Raspberry Pi

Geplaatst: 17 mei 2015, 11:48
door Blauwbek
try 'ln -s /etc/php /usr/bin/php', if it doesnt work try a reboot

Re: Spotweb on a Raspberry Pi

Geplaatst: 18 mei 2015, 04:38
door Wod_Ka
Blauwbek schreef:try 'ln -s /etc/php /usr/bin/php', if it doesnt work try a reboot

~ # ln -s /etc/php /usr/bin/php
ln: failed to create symbolic link `/usr/bin/php': File exists

reboot no help and i also did a fresh/clean install also but no help...

Re: Spotweb on a Raspberry Pi

Geplaatst: 18 mei 2015, 17:31
door Blauwbek
which os do you use?