PHP Not found
Moderators: Developers, Moderators
PHP Not found
I am trying to set up a test system with Cacti and have run into a PHP issue. I have Apache2, PHP4, MySQL, and PHPMyAdmin installed and working. I have verified that PHP works by using a php test page. The issue I have run into is when I first launch cacti it tells me it can find the PHP binary in /usr/bin. I have done a search through my whole system and I cannot find the PHP binary. Where could this be? And guess even more important how can PHP work without the binary?
If I try to run php poller.php from command line I get bash: php: command not found. I have never seen this and I am not sure how to fix it.
TIA
If I try to run php poller.php from command line I get bash: php: command not found. I have never seen this and I am not sure how to fix it.
TIA
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What distro are you using?
Is there a package for php-CLI?
Is there a package for php-CLI?
[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]
[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]
Well if it's missing, then you would need to install it...
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Check dselect for a missing package names something like "php-cli" or "php-commandline".
I don't personally recall what it is, or even if it exists.
I don't personally recall what it is, or even if it exists.
[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]
[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]
First try looking in /usr/local/bin this is where Debian is most likely to place the php executable.
If the file is not there, do a
dpkg -c "debian install file for php4"
Typically the deb files from an apt-get are kept in /var/cache/apt/archives .
This will list the contents of the debian file and you'll know exactly where it placed all it's files.
--
Alex
If the file is not there, do a
dpkg -c "debian install file for php4"
Typically the deb files from an apt-get are kept in /var/cache/apt/archives .
This will list the contents of the debian file and you'll know exactly where it placed all it's files.
--
Alex
I found part of my answer...
When I did the install I installed everything EXCEPT cacti from Apt-get. Cacti I installed from the tar since it is a newer version then what I can get through Apt-get. Doing it this way I must have some how missed a critical package for php4.
I created a new virtual machine and did EVERYTHING through Apt-get and the php binary is right where it should be. So now I need to figure out what was missing and remember to install it next time.
I did try installing php4-cli but that didn't do the trick so I will have to do more digging to see what Cacti through Apt-get adds that I don't get with just the tar.
When I did the install I installed everything EXCEPT cacti from Apt-get. Cacti I installed from the tar since it is a newer version then what I can get through Apt-get. Doing it this way I must have some how missed a critical package for php4.
I created a new virtual machine and did EVERYTHING through Apt-get and the php binary is right where it should be. So now I need to figure out what was missing and remember to install it next time.
I did try installing php4-cli but that didn't do the trick so I will have to do more digging to see what Cacti through Apt-get adds that I don't get with just the tar.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Woot, I was about to ask you where you were so I could come over and fix this...
[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]
[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]
Who is online
Users browsing this forum: takeatr1p and 0 guests