sh: ./poller.php: Permission denied

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

Moderators: Developers, Moderators

Post Reply
Albert
Posts: 5
Joined: Sat Jun 24, 2006 7:59 am

sh: ./poller.php: Permission denied

Post by Albert »

Hello,

Im trying to get cacti up and running to read out localhost and my superstack switch....

Al deps seem to be installed prober, path's are correct...

After reinstall, same problem appeared...

sh: ./poller.php: Permission denied

When chmodding 777 output is "This script is only meant to run at the command line." in HTML format...

RRA and LOG dir. are chowned -R @ cactiuser (actuel user)... Crontab gives same output as running at command line >>
X-Powered-By: PHP/4.4.2
Content-type: text/html

<br><strong>This script is only meant to run at the command line.</strong>


Cacti Variables
Operating System: unix (centos 4.2 running as Rhel4)
PHP SNMP Support: yes


There are NO log files created nor RRA files...

Help is much appreciated!
(running with /usr/bin/php makes no differance)

------------------
can the problem occour because of restricting following 'files'??? (chmod 700)

/usr/bin/rcp
/usr/bin/wget
/usr/bin/lynx
/usr/bin/links
/usr/bin/scp
/etc/httpd/proxy/
/var/mail/vbox
/usr/bin/mc
/usr/bin/elinks

/usr/bin/lwp-download
/usr/bin/GET
/usr/bin/curl


and usefiles like gcc, cc, gnatgcc etc (ex byacc cc gcc gnatgcc i386-redhat-linux-gcc perlcc yacc)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Code: Select all

php poller.php
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Albert
Posts: 5
Joined: Sat Jun 24, 2006 7:59 am

Re: sh: ./poller.php: Permission denied

Post by Albert »

Albert wrote: (running with /usr/bin/php makes no difference)
BY ROOT
[root@ownserver cacti]# php poller.php
X-Powered-By: PHP/4.4.2
Content-type: text/html

<br><strong>This script is only meant to run at the command line.</strong>
BY CACTIUSER (actual user)
sh-3.00$ php poller.php
X-Powered-By: PHP/4.4.2
Content-type: text/html

<br><strong>This script is only meant to run at the command line.</strong>

//edit.
[NOT FOUND] PHP Binary Path: The path to your PHP binary file (may require a php recompile to get this file).

[root@ownserver ~]# which php
/usr/bin/php

Seems not to see the php binaty while the path is ok?!

php poller.php seems to work on other box perfectly (altough, errors with not finding files, but that seems logical)...

Is it a php version problem? Running 4.4.2.
Albert
Posts: 5
Joined: Sat Jun 24, 2006 7:59 am

Post by Albert »

Problem was in the php.ini... Dunno what option caused it?!

Its running now from root, none root crontab do not work... Giving output

"no output generated"...

Some one?!
Albert
Posts: 5
Joined: Sat Jun 24, 2006 7:59 am

Post by Albert »

Running for a couple of hours everything seems ok, except there is no total in: value for the total in/out graph

Is this something known?!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests