Cacti & PHP 5 problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ruca
Posts: 6
Joined: Wed Sep 07, 2005 5:50 am

Cacti & PHP 5 problem

Post by ruca »

hi',

After upgrade php from v4 to v5 i get this error:

./poller.php: /usr/local/bin/php: bad interpreter: Permission denied

Anyone knows how to fix this ?

thanks

Rui Dias
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you run :

Code: Select all

$ ls -l /usr/local/bin/php
and

Code: Select all

$ id
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
ruca
Posts: 6
Joined: Wed Sep 07, 2005 5:50 am

Post by ruca »

root@alunos:~# ls -l /usr/local/bin/php
srw------- 1 root root 0 2006-03-10 19:45 /usr/local/bin/php=

root@alunos:~# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

/usr/local/bin/php is not executable, can you try to

Code: Select all

# chmod +x /usr/local/bin/php
By the way, you should try to run Cacti with a non-root user.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
ruca
Posts: 6
Joined: Wed Sep 07, 2005 5:50 am

Post by ruca »

it's working.

i need to rebuild the php5

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests