<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; crond</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/crond/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>How to test/check cron scripts</title>
		<link>https://wiki.centos-webpanel.com/how-to-testcheck-cron-scripts</link>
		<comments>https://wiki.centos-webpanel.com/how-to-testcheck-cron-scripts#comments</comments>
		<pubDate>Thu, 12 May 2016 05:34:25 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[crond]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=524</guid>
		<description><![CDATA[If you are having an issue with the NOT working cron, you can do the following to check it. Check if crond is working # service crond status crond (pid 1386) is running... You can also check cron log file and see if cron script is executed tail -n 20 /var/log/cron If your cron script [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you are having an issue with the NOT working cron, you can do the following to check it.</p>
<p><strong>Check if crond is working </strong></p>
<pre># service crond status
crond (pid  1386) is running...</pre>
<p><strong>You can also check cron log file and see if cron script is executed</strong></p>
<pre>tail -n 20 /var/log/cron</pre>
<p><strong>If your cron script is executed in the log, then you can check the following</strong><br />
Login as root on the server, and then execute cron script as a user</p>
<pre>#su USERNAME -s /bin/bash</pre>
<p><strong>Check that you will execute script as a user</strong></p>
<pre>whoami</pre>
<p><strong>Now you are ready to run your cron script manually, just execute your cron script, example:</strong></p>
<pre>/usr/local/bin/php /home/USERNAME/public_html/cron.php</pre>
<p>You will see if you have any issue and you can do a quick fix.</p>
<p><strong>Most common issues</strong><br />
- if file is executed via shell and not via http:// then the most common issue is that file needs to have execute permissions<br />
  You can try to fix that by using this command: chmod +x FILENAME<br />
- remove line "<strong>SHELL=/usr/local/cpanel/bin/jailshell</strong>" from <strong>/var/spool/cron/USERNAME</strong> file<br />
- make sure PHP bin file path is correct, example from PHP Selector <strong>/opt/alt/php72/usr/bin/php</strong></p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/how-to-testcheck-cron-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
