Running Cron Job with Dedicated IP Address
Dear CPanellers,
I have a VPS running WHM and cPanel with multiple accounts, I have bought a secondary IP address for a dedicated account. Let's call this account for this purpose account X.
On account X I want to run a PHP cronjob that runs twice daily FROM that specific IP address, I've been searching for hours and I haven't found a solution.
Anyone any tips or advice on how to achieve this?
Kind Regards,
Wendell Misiedjan
-
Hello, Can you elaborate on the specific action you are attempting to perform via a cron job? For instance, do you mean you want the outgoing IP address to show as the dedicated IP? Thank you. 0 -
Hello, Can you elaborate on the specific action you are attempting to perform via a cron job? For instance, do you mean you want the outgoing IP address to show as the dedicated IP? Thank you.
Yes, so whatever the cron job is preforming should have an outgoing IP address of the dedicated IP address assigned to it, this doesn't seem to be the case right now.0 -
I guess I have to turn myself into an system administrator, thank you. 0 -
For the people finding this and wanting to do this for a PHP script that is using cURL, you can set your actually set the current option in cURL; ```CURLOPT_INTERFACE = xxx.xxx.xxx.xxx``` where xxx's are the IP adres you want to use. 0
Please sign in to leave a comment.
Comments
5 comments