Lyman Zerga
New Pleskian
Hi,
For my website I need to set a Cron command in Plesk. On the Plesk website and numerous others the advice is to click the 'Scheduled Tasks' option in 'Websites & Domains'. However, this option is not present in the 'Websites & Domains' tab. This is what I see as options:
Another suggested option was to create a shell script with crontab commands to run the desired file. I created a cron.sh file with the following code:
This does not work, nor do other (absolute) file paths. I do not know whether this is because I made an error with the shell script or because shell scripting is not enabled for my user account (I am not the website admin but am allowed to change the website content). There is no 'bin' directory visible in the 'Files' tab for my domain.
Can anybody help me how to implement a scheduled task to run my PHP file in Plesk?
Regards,
Lyman Zerga
For my website I need to set a Cron command in Plesk. On the Plesk website and numerous others the advice is to click the 'Scheduled Tasks' option in 'Websites & Domains'. However, this option is not present in the 'Websites & Domains' tab. This is what I see as options:
Another suggested option was to create a shell script with crontab commands to run the desired file. I created a cron.sh file with the following code:
Code:
#!/bin/sh
crontab -e
* * * * * httpdocs/MySQL/FTPConnection.php
ls -l httpdocs/cron.sh
chmod +x httpdocs/cron.sh
ls -l httpdocs/cron.sh
This does not work, nor do other (absolute) file paths. I do not know whether this is because I made an error with the shell script or because shell scripting is not enabled for my user account (I am not the website admin but am allowed to change the website content). There is no 'bin' directory visible in the 'Files' tab for my domain.
Can anybody help me how to implement a scheduled task to run my PHP file in Plesk?
Regards,
Lyman Zerga