<?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>Linux Servers cPanel webhosting blog &#187; suexec</title>
	<atom:link href="http://www.theperfectarts.com/tag/suexec/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:18:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Parse error: syntax error, unexpected T_STRING?</title>
		<link>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/</link>
		<comments>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 05:26:24 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Parse error]]></category>
		<category><![CDATA[PHP Parse error: syntax error]]></category>
		<category><![CDATA[php_flag short_open_tag X]]></category>
		<category><![CDATA[short_open_tag]]></category>
		<category><![CDATA[suexec]]></category>
		<category><![CDATA[unexpected T_STRING]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=795</guid>
		<description><![CDATA[If you receive following error in the error logs &#8221; PHP Parse error: syntax error, unexpected T_STRING&#8221; Then you can add following line in the .htaccess file php_flag short_open_tag X Or If your server is SuExec enabled then you can use following code in php.ini file short_open_tag = X &#169;2012 Linux Servers cPanel webhosting blog. [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive following error in the error logs</p>
<p><span style="color: #800000;">&#8221; PHP Parse error: syntax error, unexpected T_STRING&#8221;</span><br />
Then you can add following line in the .htaccess file</p>
<p><span style="color: #800000;">php_flag short_open_tag X </span></p>
<p>Or</p>
<p>If your server is <a href="http://www.theperfectarts.com/2009/08/simply-check-server-is-suexec-or-not/" target="_blank">SuExec enabled </a>then you can use following code in php.ini file<br />
<span style="color: #800000;">short_open_tag = X</span><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simply check server is SuExec or not?</title>
		<link>http://www.theperfectarts.com/2009/08/simply-check-server-is-suexec-or-not/</link>
		<comments>http://www.theperfectarts.com/2009/08/simply-check-server-is-suexec-or-not/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 22:17:33 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Install server side software / script]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api apahe or cgi]]></category>
		<category><![CDATA[check api]]></category>
		<category><![CDATA[check suexec]]></category>
		<category><![CDATA[error logs in suexec]]></category>
		<category><![CDATA[explain suexec]]></category>
		<category><![CDATA[how to check sever is suexec or not]]></category>
		<category><![CDATA[suexec]]></category>
		<category><![CDATA[SuExec configuration]]></category>
		<category><![CDATA[what is sueexec]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/2008/08/simply-check-server-is-suexec-or-not/</guid>
		<description><![CDATA[From your shell run following command [root@xx.xx.xx.xx ~]#/usr/local/cpanel/bin/rebuild_phpconf &#8211;current DEFAULT PHP: 5 PHP4 SAPI: suphp PHP5 SAPI: suphp SUEXEC: enabled or make a php file under any account and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, your most probably running suPHP. [...]]]></description>
			<content:encoded><![CDATA[<p>From your shell run following command</p>
<p><strong><span style="color: #800000;">[root@xx.xx.xx.xx ~]#/usr/local/cpanel/bin/rebuild_phpconf &#8211;current</span></strong></p>
<p><strong><span style="color: #800000;">DEFAULT PHP: 5</span></strong><br />
<strong><span style="color: #800000;"> PHP4 SAPI: suphp</span></strong><br />
<strong><span style="color: #800000;"> PHP5 SAPI: suphp</span></strong><br />
<strong><span style="color: #800000;"> SUEXEC: enabled</span></strong></p>
<p>or make a php file under any account and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, your most probably running suPHP.</p>
<p>Alternatively,<br />
If you have access to WHM &#8211; login, in the menu find Configure PHP and SuExec<br />
Check the drop down box for &#8220;PHP 4/5 Handler&#8221; &#8211; and if beside that it says &#8220;suPHP&#8221; &#8211; then your server is running it.</p>
<p>SuPHP activity is logged in /usr/local/apache/logs/suexec_log. If you tail it, you will see if there is any current activity:<br />
Code:<br />
<strong><span style="color: #800000;">tail -f /usr/local/apache/logs/suexec_log</span></strong></p>
<p>you can also get this information from PHP INFO page:</p>
<p>IF</p>
<p>Server <strong><span style="color: #800000;">API = Apache</span></strong> then server is not running PHP in SuExec mode</p>
<p>And if</p>
<p>Server<strong><span style="color: #800000;"> API = CGI</span></strong> the server is running PHP in SuExec mode</p>
<p>That’s all now you are sure about your server is SuExec or not</p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/08/simply-check-server-is-suexec-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

