Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo.com

Wanted: Service Path to PHP, Hivemail and more?

Status
Not open for further replies.

Mr Webname

Oldbie
Legacy Exclusive Member
Joined
Jan 29, 2003
Messages
3,743
Reaction score
0
Anyone tell me the way to simply establish the path to PHP on your server?

Thanks

And more ..... please see Post 3
V
 

theparrot

Level 6
Legacy Exclusive Member
Joined
Mar 24, 2004
Messages
589
Reaction score
0
Do you have shell access? If so try 'which php'.

Else if you run phpinfo() it will show you a lot of into, not sure it it shows the path directly but I do know it shows the ini file locations from which you can usually dervive the path as being ../bin/php file that location. Also look at the --prefix option if any in the configure command it outputs. If there is one that will give you the path to append to bin/php
else it is /usr/local/bin/php


Also there does not have to be a path to php, it can be build in such a way that it is built into the webserver.
 

Mr Webname

Oldbie
Legacy Exclusive Member
Joined
Jan 29, 2003
Messages
3,743
Reaction score
0
Thanks "which php" did it.
I am trying to configure my Hivemail to pickup mail from my mailserver and I did have the path to php correct.
I have a cron.php setup to do the pickup but get the following report emailed to the account:-
Subject: Cron <email address> ./home/mysite/pop.cron.php
/bin/sh: line 1: ./home/mysite/pop.cron.php: No such file or directory

Anything obvious that sticks out?
I've put the pop.cron.php almost everywhere and still get the same - I am working on a VPS with full WHM/CPanel.
 

theparrot

Level 6
Legacy Exclusive Member
Joined
Mar 24, 2004
Messages
589
Reaction score
0
Mr Webname said:
Thanks "which php" did it.
I am trying to configure my Hivemail to pickup mail from my mailserver and I did have the path to php correct.
I have a cron.php setup to do the pickup but get the following report emailed to the account:-


Anything obvious that sticks out?
I've put the pop.cron.php almost everywhere and still get the same - I am working on a VPS with full WHM/CPanel.


yeah, ./ makes it relative to where cron runs, try removing the '.'
 

Mr Webname

Oldbie
Legacy Exclusive Member
Joined
Jan 29, 2003
Messages
3,743
Reaction score
0
theparrot said:
yeah, ./ makes it relative to where cron runs, try removing the '.'

That's all it took - many thanks. :)
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom