• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service Path to PHP, Hivemail and more?

Status
Not open for further replies.

Mr Webname

Oldbie
The Originals
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
 
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.
 
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.
 
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 '.'
 
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.
Back
Top Bottom