Creating/Managing Cron Tasks With PHP
May 7, 2009
I want to create a simple PHP script to manage cron jobs. Say I want to create a front end like a control panel.
I know, many of the WHT members are using custom coded control panels, and surely they have implemented this already.
What is the right approach to do it ?
- Using exec() function and execute commands
- Write directly to /var/spool/cron/<username>
View 10 Replies
ADVERTISEMENT
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
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
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
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
Jan 8, 2009
which type of CPU would be better for a web server that will run Windows, PHP, ColdFusion, mail, DNS, and IIS. Would a dual core CPU with a higher clock speed do better than a quad core CPU with lower clock speed? For instance, would a dual core 3 Ghz processor do better than a quad core at 2.4Ghz?
View 6 Replies
View Related
Jan 19, 2008
i got mod suexec / phpsuexec installed on the server recently. if i click on view cpu/memory/mysql usage in WHM i can see this in the first row:
<username><domain>3.170.110.1
Top Process%CPU 145/usr/bin/php
Top Process%CPU 100/usr/bin/php
Top Process%CPU 81.7/usr/bin/php
now this info is pretty useless. ok, php is evidently bursting to pretty damned high cpu levels. BUT, what are the actual FILES causing this load?
View 2 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
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
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
View Related
May 28, 2009
I'm trying to set up a new site on a new server, primarily informational, while maintaining the old order-taking and database functionality of the existing one. This new one is an Ubuntu vm with samba and apache all set, but the old one is running Tomcat and basically takes java programming to update. How can I properly route incoming requests to the proper server, pass back and forth login information (which resides on the old server), etc? I'm a relative newbie to all this, so the solution might be blindingly obvious, but it's a bit daunting to get them working in tandem.
View 4 Replies
View Related
Mar 8, 2009
I have 65 parked domains that are reasonably high traffic (26000 hits per day).
I'm looking to run my own VPS server to manage these domains.
I would like to have all the domains nameserver records pointing to my VPS and redirect traffic from different Countries to different parking companies based on a php script.
Can anyone reccomend what sort of VPS setup I would need as regards to RAM,bandwidth etc. And a good hosting company?
View 3 Replies
View Related
Nov 17, 2008
I am planning to drop ESXi on a company server to consolidate some existing boxes, however I cannot for the life of me figure out VMWare's licensing structure, with regards to managing the 'free' version of ESXi. It's free, only VirtualCenter (apparently required to manage the hypervisor) works for 60 days. I'm pretty sure I must be missing something here, anyone got experience with deploying ESXi, if so, what's required to remotely manage it?
View 2 Replies
View Related
Nov 17, 2007
I use cPanel for managing my hosting.
There are about 18,000 emails in my default email account (username@mydomain.com). These emails are using more than 50% of my hosting space.
Therefore, I want to delete all of them. One way is to delete them through webmail but it will take alot of time.
Can anyone suggest a way to delete all of them in one go?
View 14 Replies
View Related
Aug 18, 2007
site or resource that offers worth thing for managing linux server from begin to end about any category for instant, linux basics, Security, Optimizing Mysql, Installing 3rd party software.... and whatever else ?
View 7 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
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
Sep 13, 2008
Let's say I buy my domains from godaddy and have the DNS records pointed to the shared host.
From there, the shared host creates your CNAME records, or whatever you want to add to your domain name.
What happens if I wanted to control the CNAME records? Can I do this from godaddy? If so, how? Are there negatives to this method?
View 10 Replies
View Related
May 3, 2009
I had a thread about this several years ago here but it petered out without a satisfactory resolution and when I tried to restart it the Sitepoint bot suggested I start a new thread . . .
Briefly, I'm into lots of stuff - software, art, poetry, business, etc, so I want to have different email addresses for each activity but I want them all to go to the same inbox so I don't have to log into n different accounts to check my email.
My website is hosted by HostMySite but their webmail offering ("Smartermail") is lame. I don't have the option of installing a different email client (at least not for what I'm paying) but I DO have the option of routing my email to a different provider while retaining my @pnArt.com email address.
Aliases don't solve this because if someone sends email to an alias, e.g., myalias@pnart.com it goes to my root account inbox, say, myroot@pnart.com so when I hit "reply" the recipient sees the mail coming from myroot@pnart.com, not myalias@pnart.com. Furthermore, if HE replies it goes to the global "reply-to" address which is a THIRD address because I don't want the root address in general circulation, to minimize spam to my root email.
I'm getting complaints from clients and customers about this because they're not sure which email address they're expected to use.. Is there any third-party email provider that lets me have multiple aliases or identities that I can process from ONE inbox, but where the alias or identity is applied in a consistent way so my clients see just ONE email address from me?
View 22 Replies
View Related
Oct 30, 2009
I'm planning a website at the moment but I'm wondering about a slight issue, regarding the local root folder of a website.
Currently, I'm using Dreamweaver to create a website and I have had no problems of uploading my files to a site through Dreamweaver before. But I will not have access to my computer for about one month every year. However, I have a laptop available during that month. But since my local root folder is located on my stationary computer it seems impossible for me to, in any way, use that laptop to manage my site (upload new files to the server).
View 0 Replies
View Related
Sep 26, 2007
If there's a moderator lurking that knows of a better spot for this inquiry, by all means point away.
We're an ad agency in the very vertical market of Recruitment Communications.
We've developed an employment site that we host on our Multi-site account.
They have today requested a quote on what it would take to create 100 email accounts for their various employees and administrators on this employment site.
I initially think we tell them in the proposal that having their employees utilize webmail for their accounts would be least problematic (read: least cost support) for them. It's still going to present a bit of manual labor on our part creating the names, but not too daunting.
The client has no experience on staff that would be able to undertake the task as outlined above, so naturally we're concerned that their needs are indeed met in the best possible way.
One of our company's goals for all of our clients is to, as much as is possible, Under-promise/Over-Deliver. But as we're not specifically a "provider" in the typical sense of what they're asking, I am also thinking that it might be better for both the client and ourselves to examine whether this is a feasible undertaking.
If we were to undertake this 'project', and this is something you've experienced or read about, might you care to offer guidance on what guidelines we should assert/set-up? Web-mail versus Pop? Pricing structure? Support fees? Etceteras, etceteras.
View 5 Replies
View Related
Oct 19, 2007
I'm a window type of guys and considered myself more proficient using windows operating system. However, when it comes to linux, i have not really a clue except some simple command i learnt from CMD that also applied to linux.
I have a root access to my dedicated box and I use putty for SSH. Problem is from there, what kind of usual and daily web admin do to the ssh?
In other words, what is the daily routine of Network Admin in Linux?
Any recommendation of website that introduce me to using ssh to use remote linux server?
View 3 Replies
View Related
May 6, 2008
I just heard this story on NPR yesterday discussing cloud computing, how you can use external computers to do super-computer sized tasks without having the hardware in house yourself.
If we host colocated servers, how feasible is it to get our servers into that game?
View 14 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
May 30, 2009
I want to get on my own ded server for free hosting and have it fully managed by the provider e.g. they have the capability to look for spammers/hackers/phishers/ etc while I'll be on my marry way providing free hosting. Is there such a provider? Any recommendations?
View 7 Replies
View Related
Nov 2, 2009
I'm planning a website at the moment but I'm wondering about a slight issue, regarding the local root folder of a website.
Currently, I'm using Dreamweaver to create a website and I have had no problems of uploading my files to a site through Dreamweaver before. But I will not have access to my computer for about one month every year. However, I have a laptop available during that month. But since my local root folder is located on my stationary computer it seems impossible for me to, in any way, use that laptop to manage my site (upload new files to the server).
View 3 Replies
View Related
Jul 25, 2009
Building, running and managing your own Server Farm.
This thread is dedicated to those who find themselves on or considering this path.
Here, I am not hosting any ‘foreign business interests’ or associating with any other ‘hostile networks’. I am needing to create many sub-nets, with 3 to 5 WAN’s inbound and outbound. I have a ‘research sub-net’ needing special considerations and will link associates/contractors by VPN. The product-line will also require Radius Server(s). Plus more details and requirements that make the whole project most complicated.
(Thanks to ‘leeware’ for this beginning theme)
1.0 Objective: Building a 30-50 Server facility:
I checked my records and made this decision 2 - ˝ months ago. Since then I have acquired 28 servers, an internet security device, two 3com’s, two 4-port kvm’s, a few small Cisco switches and a host of power related stuff.
2.0 Justification for Building vs leasing:
Control. Costs. Open options. Unique demands more easily appreciated by myself as I am the one possessing the vision. Choosing who I work with as I do the hiring/contracting or initiate associations.
We are generally molded by personal experiences and these set-up our prejudices. I am certainly no exception. My experiences with hosts generated an excellent introduction to the wide world of websites/control panels etc and some products that support it. But the too often cryptic communications, some surprise costs due to my ignorance and that vulnerable ‘boxed in’ feeling made me wonder…
2.1 What is your rational for building vs leasing?
One of my major ‘cross the line’ rational came when I discovered I could buy a used server each month for a similar cost of leasing one. Next, were all my own confounded ‘special circumstances’ that kept cropping up and of course these were not the fault of any hosting company. Lastly technology came to my street in the form of good multiple pipes and my zoning is acceptable because I am off a major highway.
3.0 Business Objectives:
My business objectives center around a very long-run project that I have already long ago completed and keep updated to viability. And I would rather keep that subject to another venue.
4.0 Budgetary Information:
I have enough ‘resources’ to pull it off.
4.2 What is your operating budget (How much money do you plan to spend on an ongoing basis to keep the place running for 12-24 months?)
Same as previous and I will note that ‘time and attention’ is keenly important.
4.3 More importantly, where is this money going to come from? If from investors they generally require a sound business plan.
I require a sound business plan and have it.
5.0 Return on Investment:
Accomplish goals on and on…
5.1 After you account for the initial capital expense to get everything up and running + your on going operating costs, how long will it take you to make back your initial investment and then reach profitability? (12/24/36 months for longer?)
View 14 Replies
View Related
Jun 24, 2008
is there any program for windows that i can put all of my domains and my clients personal info and keep an eye when a domain is going to expire or in which server is a domain... or who client has a domain etc... ?
View 7 Replies
View Related