awstats problem can't find file

mattlovell

Verified User
Joined
Aug 21, 2005
Messages
23
I installed this ok a while back and activated it on certain accounts
it is now showing

cannot find file: /usr/local/bin/php

which seems logical as it should be /usr/bin/php

any ideas how to fix this?

searched the forums in vain!

AWSTATS is working fine on the accouts where it was installed

I have activated, installed, unistalled the plug in.
its also updated to most recent version.

ta
Matt
 
mattlovell said:
I installed this ok a while back and activated it on certain accounts
it is now showing

cannot find file: /usr/local/bin/php

which seems logical as it should be /usr/bin/php

any ideas how to fix this?

searched the forums in vain!

AWSTATS is working fine on the accouts where it was installed

I have activated, installed, unistalled the plug in.
its also updated to most recent version.

ta
Matt

Well I guess it should never had worked or you've changed your PHP setup. On my machine and test machine the php binary is located in /usr/local/bin/php . To prevent the problems and probably of a lot other plugins create a symbolic link from /usr/bin/php to /usr/local/bin/php
 
the plugin automatically updates to the latest version, had hoped it was that changed, but no one else seems to have screamed...

can you tell me how to do the link?
Ta
Matt
 
mattlovell said:
the plugin automatically updates to the latest version, had hoped it was that changed, but no one else seems to have screamed...

can you tell me how to do the link?
Ta
Matt


# ln /usr/bin/php /usr/local/bin/php
 
thanks
but now i'm well confused

its says no such file or directory so I did #locate php again
and it shows up
/usr/bin/php

(as well as loads of other stuff)

go browse and can't find it
(even looking at hidden files)

php works, but can't seem to find it hmmm....

if you have two seconds for wha tmust be something obvious I'd appreciate it

thanks
Matt
 
Locate uses a database and it could be cached! Use:
# updatedb
# locate php

Could give a HUGE list ;) Better just pipe it to a file ;) "locate php > file.txt"

or just check which works:

# /usr/local/bin/php -v

and

# /usr/bin/php -v
 
seems its in /usr/local/lib
but the link is not allowed :-(
you were right about the huge list!

[root@server ~]# /usr/local/bin/php -v
-bash: /usr/local/bin/php: No such file or directory
[root@server ~]# /usr/bin/php -v
-bash: /usr/bin/php: No such file or directory
[root@server ~]# /usr/local/lib/php -v
-bash: /usr/local/lib/php: is a directory
[root@server ~]# ln /usr/local/lib/php /usr/local/bin/php
ln: `/usr/local/lib/php': hard link not allowed for directory
 
Usr/local/lib/php is a directory containing the PHP libraries. You can't link a directory.

You probably have your php on a very strange place. Just try to find it ;)
 
think its centos

been checking the install and it might have been done by a yum instead of direct admin

have looked everywhere for this blinking file and can't find it.
The system knows where it is as php is working
php.ini is in /usr/local/lib/php.ini
but guess that is where is should be

i thought it was in /usr/bin/php

and thought I'd checked but now it doesn't seem to be.
well curious.

there must be an easy way to find it!
 
Back
Top