Plesk 11.x / Linux :: Scheduled Tasks - Correct Permissions
Jun 2, 2014
I have the following command to execute every 5 minutes this PHP file which is working correctly:
/usr/bin/wget -qq -O /dev/null http://url.com/script.php
How can I make it so only the system (scheduled task or the server itself) can access to the file to execute it. I tried placing CHMOD 700 to the PHP file but everyone is still able to access to it and executive it.
Plesk version: 11.5.30 Update #44
View 2 Replies
ADVERTISEMENT
Feb 4, 2015
I have created a scheduled task as per my application guide as in the attached file. When i recieve the email it says the following:
: /var/www/vhosts/testdomain.co.uk/clients/admin/cron.php: No such file or directory
i have also tried appending:
php -q
wget -O (using the http to the location to cron.php)
Nothing seems to work.
I have transfered from cpanel and this is my first scheduled task and not getting anywhere with very little information on how to do this.
Im running:
Plesk 12
Linux
View 1 Replies
View Related
May 28, 2015
after creating a new cron job, when i try to open Scheduled Tasks i get this error :Internal error: DateTime::__construct(): Failed to parse time string (2015-05-28 0.12:0:37) at position 17 ): Unexpected character
Message DateTime::__construct(): Failed to parse time string (2015-05-28 0.12:0:37) at position 17 ): Unexpected character
File Helper.php
Line 143
Type Exception
View 1 Replies
View Related
Feb 17, 2015
Whenever a user in my Cloudlinux powered Plesk Panel 12 tries to use the scheduled tasks, this is the error that is emailed to them...
excel: couldn't exec `/usr/local/psa/bin/chrootsh'
excel: No such file or directory
Does not matter what the task is, same error every time.
Even something as simple as wget [URL] .....
View 10 Replies
View Related
Jun 27, 2014
Looking at a server with Plesk 12 installed there is no root user shown in tools & settings / scheduled tasks.
Login as root and crontab -l shows root has some tasks.
On a similar server with Plesk 11.5 installed can see root user shown in tools & settings / scheduled tasks.
View 1 Replies
View Related
Oct 23, 2014
plesk 11.5
centos 6
We set a couple of task with domain user but the cron is not executed.
We tried 2 kind of task to run every minute
/usr/bin/php /var/www/vhosts/domain.com/httpdocs/cron.php
and
mail -s "Hello" admin@domain.com
1) Why scheduled task are not executed?
2) Where the tasks are written in filesystem from plesk ? /etc/....?
View 3 Replies
View Related
Jul 22, 2014
We have a VPS with Centos 5 and Plesk 12.0.18.
The CRON service is running and works correctly, the Scheduled tasks on the administration Plesk Panel (tools & Setting / Scheduled tasks / root user) works ok, but when a customer sets a new scheduled task from her domain panel, don't works.
The task is a simple WGET command.
View 3 Replies
View Related
Feb 12, 2015
I'm new to Parallels Panel. I use version 11.0.9. I want to backup mysql database daily. First of all, what is the best way for daily database backup in plesk. I'm trying to do this in Scheduled Tasks and I use mysqldump command although I'm not sure.
I chose the time and day first and then I switched on the task. I typed the following command to Command line.
mysqldump -uusername -ppassword databasename | gzip -9 >/httpdocs/mydatabase.sql.gz
or
mysqldump -uusername -ppassword databasename >/httpdocs/mydatabase.sql.gz
This created only a blank file. When I use this without gzip, nothing changes.
1- Is mysqldump right command for database backup?
2- Should I define full path for mysqldump, gzip and database? If so, how can I find out the full path of mysqldump, gzip and my database? Because I can't see their locations in panel.
3- I can't see any error message. There is not any log file in httpdocs folder. Where does the log file exist?
4- It is weird but should the username be "database user" or should I write "root" ?
View 2 Replies
View Related
Jul 7, 2014
I've just migrated server to server but I didn't use the migration manager, I simply backed up each domain's content and restored those backups on the new server.
The issue I have run into is the scheduled tasks at the admin level (Tools & Settings > Scheduled Tasks) work but any schedule task under a domain do not. The scheduled tasks under the domains show as inactive (no green tick) and when I click to enable them, I get the following message
"Information: The scheduled task Google Product Feed Daily Scheduled Task was switched on."
If I then look at the page, even though the above message says it is, the scheduled task is still not enabled. Going into the scheduled task and switching it on there results in the same message, but it doesn't switch on.
How to rebuild all of the scheduled tasks within Plesk?
Currently Installed: v. 12.0.18
View 1 Replies
View Related
Oct 26, 2009
How to execute specific .aspx file in scheduled task in win 2003 server or how to Create Scheduled Tasks for .aspx Files?
View 14 Replies
View Related
Aug 27, 2009
I am in the process of setting up my server and have come to the stage where I am uploading my actual website scripts and files. I am a little confused however as to what permissions and file/directory ownership my website files should be set to.
My web root is set to 755 (rwx/r-x/r-x) with Owner as root, and Group as root. All files within the web root are set to 744 (rwx/r--/r--) with the owner and group the same as the web root. The permissions set allow php scripts to function but I am not sure if the group should be set to root on all these files, is this correct?
My site users have no ftp access if that makes any difference to ownership.
View 4 Replies
View Related
Nov 6, 2014
I see I can only create a single backup task in plesk, server self repository or ftp repository.
My idea is duplicate backups inside and outside of my vps, I mean, I want to create a backup task in my vps and in my own ftp server.
It is possible?
View 3 Replies
View Related
Mar 1, 2015
I have setup Backup Manager to backup Files and Configurations every week for every subscription. This worked really good however we are now considering changing this to daily basis.
As the free space on server will decrease. I was wondering i there is any way with cronjobs how to remove the backup older than 24 weeks. How to make such an cronjob script?
If possible i also would like to know where the Backup Manager physically stores its backups?
View 5 Replies
View Related
Nov 5, 2014
I am running Plesk 12 on CentOS 7 64bit. I have set up the server backup instead of the website backup as I assume that will backup all server settings, as well as the website? I am running Plesk Web Admin Edition.
I have the backup set to run and dump into Personal FTP, but it does not run. If I run the backup manually, everything works great, but the scheduled backups don't work.
View 3 Replies
View Related
Jun 18, 2014
Sometimes I get this error:
Domain: mydomain.com
Plesk entry point: https://myserver.local:8443/
Following error is occurred during scheduled backup process:
[Errno 17] File exists: '/usr/local/psa/PMM/logs/backup-2014-06-18-23-30-05-556'
but in the backup.log and in the pmmcli.log I don't found any error.
What does it mean?
View 8 Replies
View Related
Apr 9, 2015
I'm looking to set up a schedulled backup from command line.
I haven't found the correct command, could you tell me if it's possible and how ?
Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?
View 8 Replies
View Related
Jul 6, 2012
I have the same problem again with plesk 11 [URL]
workaround
1) rpm -q --scripts psa-backup-manager | sed 1d | sh
2) /etc/init.d/crond restart
my error message with CentOS 5.8, Plesk 11.0.9 MU#4
sh: line 2315: syntax error near unexpected token `('
sh: line 2315: `preuninstall scriptlet (using /bin/sh):'
/etc/cron.d/plesk-backup-manager is created
why do not work after you upgrade the backup cronjobs?
View 19 Replies
View Related
Jul 14, 2015
Plesk Backup work when we make instant backup but not with scheduled backup.
There is nothing in the log files (pmmcli.log & migration.log).
How can we correct?
Plesk 12 / Centos
View 1 Replies
View Related
Sep 21, 2014
I recently updated from 11.5 to 12. After the update, my simple "Websites & Domains->Scheduled Tasks" is no longer executing.
I verified that the task is still present in Plesk and enabled.
The simple task launches one of my PHP web pages to perform an action:
(set to once a day: Min=30, H=7, DM=*, M=*, DW=*)
wget --quiet --delete-after "http://www.MYWEBSITE.com/some/path/index.php?someparam=somevalue"
This cron job had been working fine for more than a year but stopped working after the update.
View 8 Replies
View Related
Feb 12, 2015
on one of our Plesk-Servers (Plesk 12.0.18 Update 34 on Debian 7.6) the scheduled backup stopped working. Scheduled Backup is active in Backup-Manager, but it's not executed.
View 2 Replies
View Related
Dec 19, 2014
I'm running: 12.0.18 Update #29
I'm having troubles getting the global scheduled backup task to work at Home > Tools & Settings >Backup Manager > Server Repository.
At a subscription the scheduled backup works how it should.
Home > Subscriptions > example.com > Websites & Domains > Server Repository
The problem is as follows: When I set the scheduled task at a specific time example 00:00 it does not run at all. But when I just do "Create a backup" it does work...
I've done [URL] .... and everything in here is configured how it should be.
This is my configuration for scheduled task:
Cronjob is placed in : /etc/cron.d/plesk-backup-manager-task
Also did run: rpm -q --scripts psa-backup-manager | sed 1d | sh
This problem is only in the global backup configuration.
View 3 Replies
View Related
Jan 24, 2015
I have an issue with my daily backup. I configured to have a daily backup on an external FTP server. Everything looks to work correctly but in the panel I see that the task is a 100% forever. Never finishing completely.. So the next day, the task is not starting.. I have to remove manually the task in backup manager screen.
here is the last lines of the log file (in /var/log/plesk/PMM/backup-2015-01-20-20-46-02-824)
[2015-01-20 21:33:53.108|18485] INFO: ENV[LANG]=en_US.UTF-8
[2015-01-20 21:33:53.108|18485] INFO: Executing utility: /bin/sh -c -e /bin/tar --create --file /usr/local/psa/PMM/tmp/backupznMOWN/daily__1501202046.tar --directory /tmp/repo_transport_tmp_Jalkfn/ --dereference --files-from /tmp/repo_transport_tmp_UTCFhv
[2015-01-20 21:41:12.528|18485] INFO: The utility executed with the return code 0
[Code] ....
View 19 Replies
View Related
Apr 8, 2015
My Centos server running Plesk12 is running scheduled backups every sunday 3AM.
The backup is configured so that it's created as a multivolume backup with a volume size of 2047MB.
The backup is placed on my Personal FTP repo (another plesk12 server mounted with big storage).
The backup content is configured to backup server config and content (all).
The problem I have is when the backup is running I can see that it creates the volumes and stores it locally. After it send all the volumes the the external FTP repo it will delete the local (tmp) data. See my attached screenshot for storage health during backup.
Is this behaviour normal? This way we can never run a backup to an external FTP repo when our server passed 50% storage. Is it not normal to:
- Create a volume
- Send it to FTP repo
- Delete volume locally
- Repeat until done
View 5 Replies
View Related
Dec 20, 2014
I'm problem with crone sender email. I changed the version of the panel from 11.5 to 12. After start the corne and sehedule task in one of users I recived email. The crone task starts from email.
For this example, I replaced the user name in Plesk Panel, which is assigned cron jobs on “support”.
This is the mail system at host servername.domainname.
I'm sorry to have to inform you that message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
<-f@domainname> (expanded from <-f>): bad address syntax
<support@domainname>: Host or domain name not found. Name service
error for name=support.domainnametype=AAAA: Host not found
[Code] ....
View 2 Replies
View Related
May 28, 2015
I'm migrating sites from Plesk 9 to Plesk 12 using the migration manager. Since the migration manager doesn't migrate backups, are the backups compatible between Plesk 9 and Plesk 12? If so, is there an easy way to copy the backups in the correct directory structure since we are forced to use clients in plesk 12 and it changes the directory structure of the backups folders.
View 2 Replies
View Related
Feb 15, 2015
I have a fresh server running CentOS 6 (final). I am trying to install Plesk 11.5.30 but i am experiencing some problems. When i run the plesk-installer i get this message:
Your host name must resolve to the correct IP address of your server, unless you are using network address translation (NAT).
Please quit Parallels Installer, fix the host name resolution problem, and then try installing again.
You can skip the hostname check and continue the installation, however, in such a case, the installer cannot guarantee successful installation.
Now, in my /etc/hosts file i have this:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Is this correct? Or do i need to add/change something else?
My server is in the clound.
View 3 Replies
View Related
Jan 28, 2015
CentOS 6.6
Plesk 12.0.18
64-bit
At some point, not sure when, PHPMyAdmin's (as accessed through the admin panel by clicking on a customer, manage hosting, databases, etc) permissions have changed such that I cannot view, edit or add MySQL routines/procedures. This appears to have occurred system-wide, though I have not checked every database on the server.
Is there a fix to get the permissions set so that I can make these changes again?
View 3 Replies
View Related
Sep 5, 2014
I had a old virtual Server with Ubuntu+Plesk12. I build a new dedicated Server with CentOS6+Plesk12 and migrate all Domains. Now i have a strange problem:
When i upload a file with FTP-User "user1", the file has the permissions Group=psacln & Owner=user1. All is fine, i can see and edit this file in a FTP-Program. But when my website create a file (cache html files or installed plugin folders in wordpress), I can't see, can't edit and can't download this files.
When i login to plesk with the admin account, i can see and edit this files. They have also Group=psacln & Owner=user1 and i can give them 0666 rights but when i login with FTP-User "user1" with my FTP-Program, I didn't see that files?!
View 2 Replies
View Related
Jun 4, 2014
Whenever I setup a new FTP user in Plesk and then configure my FTP client with exactly the same username and password and transfer files and folders onto the server then the file permissions allocated are incorrect. Folders get allocated a permission of 700 and files a permission of 600, whereas I want all folders to have a permission of 755 and files a permission of 644. How can I change my setup so that files and folders get the permissions I want ?
View 1 Replies
View Related
Nov 15, 2013
I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?
View 2 Replies
View Related
Oct 5, 2014
When a customer use the wordpress auto installation tool, all work ok.
But, when the customer try to install wordpress manually (Uploading by FTP), it returns different permissions errors.
Example: "wp-config.php" cant write .
I compared the permissions of both vhosts (WP-Auto-install and WP-Manually-Install), and have totally different permissions.
WP-Auto-installed : /httpdocs = 770
WP-Manually : /httpdocs = 750
How I can set permissions to 770 by default when create a vhost? to avoid the customer having to do it manually.
View 4 Replies
View Related