How To Restart Plesk Services Automatically
Feb 20, 2008Is there any way to start plesk services automatically?
As my plesk control panel needs to be restarted every day..
Is there any way to start plesk services automatically?
As my plesk control panel needs to be restarted every day..
How to restart apache automatic every 12 hours ?
View 6 Replies View Relatedalmost daily my VPS httpd failed and restart automatically, after that all services show UP but my sites not working.. Only start working when I restart DNS Server (BIND).
I am using CPanel
i received 4 emails like this today, and now my sites are offline. what does "cpsrvd failed - A restart was attempted automagicly." mean and why are my sites now offline?
View 4 Replies View RelatedAnyone know a good script that I can run with cron or something? Mysql seems to be the #1 problem with a lot of my web sites, a restart usually fixes it right away for me, but I can't keep restarting my servers everyday manually.
View 1 Replies View Relatedcpanel was automatically send me this email.
cpsrvd failed @ Fri Jul 18 11:29:52 2008. A restart was attempted automatically.
how to resolve this one?
This one's pretty simple really, but given the fact that I'm constantly running into crond stops with CPanel servers (no clue why, or where, but it's happening), I'll post this here. If it helps someone, then great, if not, hey, no worries.
Firstly, login as root to your server through ssh, however you usually do .
Next, the script (we'll call it /bin/croncheck.sh). Use whatever editor you choose to create the file.
#!/bin/bash .......
I'm having a bit of trouble with one cron job that doesn't seem to work.
I have others scripts that run hourly fine. However this one does not.
The script:
restart_monitoring.sh
Code:
#!/bin/bash
service iptables stop
service iptables start
/root/bandwidth_rules.sh
/root/portforward_config.sh
exit
The two scripts at the end just load a lot of iptables rules back in.
The cron job should run hourly (59th minute)
The cron job entry
Code:
59 * * * * /root/restart_monitoring.sh
I have restart crond to enable the new job, still doesn't run.
The job is to restart iptables, thus flushing all rules that I have running, then reloading them. I have figured out the problem to be with the "service iptables stop/start" command, it doesn't seem to like doing this...?
In the past i've read up on software capable of restarting services that go down. I was wondering what the best free option is right now. I've got three dedicated centos boxes that I need to monitor. I don't need to monitor them all from one place, but would like something that can identify processes such as httpd, mysql, and mydns, then restart them if necessary.
View 2 Replies View RelatedMy license is updated every month, however it is not automatic, i have to go to Tools & settings > license management and click on "Retrieve Keys" every month.
Iguess there should a cron job that should do this for me every month in Centos.
What this cron job should be ?
i've set up a new Debian 7 server with Plesk 12. After the basic configuration, i've installed nginx via Plesk updater.Now, when restarting the whole server, nginx doesnt start for some reason. Plesk shows it as running, but `service nginx status` shows, that it isnt running. But an `nginx.pid` exists in /var/run, but it's empty.
However, starting it manually via `service nginx start` works fine without any error.I've already tried `update-rc.d nginx remove && update-rc.d nginx defaults` but without any success. I've also tried another init script, but same results.
if I disable SSL on Plesk server some days/weeks later it is activated again.
To disable SSL I use the script from Parallels in this post: [URL]
After running this script to deactivate SSL I did some checks to verify if its deactivated and it definitely was deactivated.
I guess that SSL is activated again by the parallels updates or micro updates.
So Everything was going great! Until I needed to reboot, and then after that only Plesk panel worked not my IP or any domains setup with it.
BUT when I restart Nginx it all starts working again! (Had to /usr/local/psa/admin/bin/httpdmng --reconfigure-all to get the domains to go to the right directory though)
But now everytime I reboot the server Nginx has to be restarted
Is this Normal?
I`m running Plesk 12 fresh clean install yesterday
CentOS 7 64BitÂ
I wanted to permanently get rid of xcache from my Plesk 12 as some softwares we are using crashes if xcache is installed or enabled on server.
At present I am doing yum remove to remove xcache php extension from server which is allowing our software to work but after couple of days, its coming back again.
I found traces in autoinstaller log, but I am not sure how to completely disable only xcache for all php versions installed on server i.e. PHP 5.3, 5.4, 5.5
Ho can I configure that in the mail accounts the mails are deleted after downloading with outlook?
View 2 Replies View RelatedI'm using PHP cURL with the Plesk API to dynamically create Subscriptions. The problem I'm having is that the Apache server tends to reset before the response is returned, ultimately interrupting the connection.
I found a Plesk setting to define the Apache restart interval. I set it to 120 seconds, which I thought solved the issue, but I'm still having unreliable connection issues.
The request to create/remove a subscription always completes, but it's the response that I'm struggling to have returned.
Is there a way to restart IIS via the Plesk 11.5 service provider panel (windows 2008 server with no root access).
I am trying to setup custom error pages and the documentation says to restart IIS after you make the change. At i dont have root access i currently have to ring Webfusion and ask them to do it
it is possible to run services such as Apache, Mail, MySQL etc on the Management Node.
I have PBAS setup and have registered the PPA server with PBAS, the PPA Management Node is marked as ready to provide, I have added the appropriate attributes to the MN under Service Nodes, however according to PBAS I need to install the ppa_apache package (and probably others), and when I go to install the packages it's trying to install the ppa_agent package which is conflicting with ppa_core.
In PP12 all the add new domain buttons link to the Parallels shop page to purchase etchings like SSL certs, Domain Regitsrations, etc.
How do I tell PP to link to my WHMCS cart to order such things?
What could I fix by trying to start mysql server, recieve following errors:
plesk interface:
Code:
Failed to restart the "mysql" service.
Cannot start/stop/restart service: Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop mysql ; start mysql. The restart(8) utility is also available.
start: Job failed to start
from the console:
Code:
sudo service mysql start
start: Job failed to start
Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
output of plesk_11.5.30_reset_instance_data.log:
[Code] ...
If you rename a domain, fail2ban will stop working, since it still tries to open the old path the the web access log.
One workaround is to restart the server after renaming the domain, then fail2ban paths are updated.
I'm using plesk 12.0.18.
I have a strange issue on a Plesk 12 VPS. Sometimes the sites result in a "502 Bad Gateway (nginx)". This happens 1 or 2 times a day on different times.
In the httpd log I see a record "can't apply process slot" and in nginx log I see "connect() failed (111: Connection refused) while connecting to upstream" but restarting apache and/or nginx will not always result in a working site.
When I restart iptables everything is working fine again.
If I go to Hosting Services - Domains and try to switch page, i get this error:
plesk TypeError: item.owner Name is null undefined
And beyond that point, no domains are displayed in Domains...
When I attempt to go to Tools & Settings > External Services > View Services I am redirected to [URL] .... where the page attempts to load for around 2-3 minutes at which point I receive the error :
"Error: Error validating license."
I have checked the logs and event viewer but see no warnings or errors related to the issue. As far as I can tell it is a problem on Plesks side as it seems that the handoff from my panel is already done.
I'm not sure if it's a technical or a license issue. When I try to retrieve external services, such as purchase an ssl certificate or buy an application; I see the the following error: "Error: Error validating license."
For example: If I click on 'Tools and Settings' > 'External Services' > 'View Services' , the browser redirects to [URL] .... (as it should) and then gives me the license error. I have re-retrieved my license key, and even downloaded and reinstalled it from the Parallels Partner Channel and the problem persists. When I check the license key status from the Panel it says, "Key Update Status: License key PLSK.02557481.0016 is up-to-date." Everything else is working fine.
I am running Plesk version 12.0.18 Update #37 on Centos 6.6
we compile a php 4 with all the modules that we require. However, after a day or so, it automatically becomes a fresh compilation of php 5. We then recompile to php 4, but same thing, after a day or so it become php 5 again. We've checked cron, and there's nothing to do with recompiling php.
View 5 Replies View Relatedreboot my vps every 30 min automatically in my hypervm control panel. How can i do that?
View 12 Replies View Relatedi install csf/lfd with centos and cpanel,
i find certain waste many use a lot of resource and it does not work now,
is it possible csf/lfd block it?
if possible,how can i check if it is blocking?
I'm not 100% sure where to ask this, so feel free to move it to a more appropriate place if necessary.
At present, my webhost provides me with some statistics about my website through "AWStats". The problem I have is that if I don't update the 'stats' everyday, then I lose that day's records and I have a gap in my statistics.
is there a way I can automate the updating of the AWStats?
I use rfxnetworks.com/sim.php on my cpanel server and it all worked fine until the last week where each morning 6am GMT I get a status warning telling me that XINET was down and that it had to restart it.
Has something changed? Is there now something weird about XINETD and cpanel? My cpanel is stable and set to automatically update.
In fact it looks like something ALWAYS shuts it down and then SIM restarts it looking at a section of messages:-
Jul 2 05:57:02 tkey-29dd xinetd: xinetd shutdown succeeded
Jul 2 06:00:01 tkey-29dd xinetd: xinetd shutdown failed
Jul 2 06:00:01 tkey-29dd xinetd: xinetd startup succeeded
What is causing my server to shutdown xinetd in the first place?
I manage a website which runs on the cpanel/whm interface and was wondering if there was anything my host could do to prevent DoS attacks on the server...at the moment we are having huge DoS attacks on our website therefore taking the whole website down for quite long periods of time.
My host just seems to be manually blocking the DoS'ers IP's manually but this is just too tedious and not efficient enough.
Is there any program for example that he can install which will block andy ip which sends a certain amount of requests within a given time period?