<?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>The Error Message &#187; Apache Web Server</title>
	<atom:link href="http://www.theerrormessage.com/category/apache-web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theerrormessage.com</link>
	<description>Fix your error</description>
	<lastBuildDate>Sun, 18 Jul 2010 03:21:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SoftException in Application.cpp:544: Directory &#8220;/path/dir&#8221; is writeable by group</title>
		<link>http://www.theerrormessage.com/2009/10/softexception-in-application-cpp544-directory-pathdir-is-writeable-by-group/</link>
		<comments>http://www.theerrormessage.com/2009/10/softexception-in-application-cpp544-directory-pathdir-is-writeable-by-group/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 16:14:53 +0000</pubDate>
		<dc:creator>gbl</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/?p=25</guid>
		<description><![CDATA[Full error message: SoftException in Application.cpp:544: Directory &#8220;/path/to/directory&#8221; is writeable by group The error apeared in cpanel logs at a hosting company and was related to a directory I created via ftp and where I tried to run some php script. When accessing the script from the web browser i got the error &#8220;500 Internal [...]]]></description>
			<content:encoded><![CDATA[<p>Full error message: <em>SoftException in Application.cpp:544: Directory &#8220;/path/to/directory&#8221; is writeable by group</em></p>
<p>The error apeared in cpanel logs at a hosting company and was related to a directory I created via ftp and where I tried to run some php script. When accessing the script from the web browser i got the error &#8220;500 Internal Server Error&#8221;</p>
<p>The problem is that Apache 2.0 server doesn&#8217;t allow in some cases (i don&#8217;t know these cases yet) that the directories created with write access rights set to all unless it&#8217;s set by the same unix user as the user running apache process. In order to fix this we need to create the folder from the same user as apache user. To do this we need to create the folder or to change the access rights from php.</p>
<p>The fix is to upload a small php file with the following code:</p>
<p><code class="php">&lt;?php<br />
chmod("./dir", 0755);<br />
?&gt;</code></p>
<p>After we set the access right on &#8220;dir&#8221; to 777 we run the  php script then the error should not appear anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2009/10/softexception-in-application-cpp544-directory-pathdir-is-writeable-by-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing a MySQL data file using phpMyAdmin results in incomplete data in MySQL</title>
		<link>http://www.theerrormessage.com/2009/08/importing-a-mysql-data-file-using-phpmyadmin-results-in-incomplete-data-in-mysql/</link>
		<comments>http://www.theerrormessage.com/2009/08/importing-a-mysql-data-file-using-phpmyadmin-results-in-incomplete-data-in-mysql/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 16:56:42 +0000</pubDate>
		<dc:creator>thalissar</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/2009/08/17/importing-a-mysql-data-file-using-phpmyadmin-results-in-incomplete-data-in-mysql/</guid>
		<description><![CDATA[I tried moving all my databases from MySQL 4.1 to MySQL 5.1 on Windows and since I had some InnoDB tables I could not just copy the data files between MySQL Server versions (from C:\Documents and Settings\All Users\Application Data\MySQL\MySQL 4.1\data\ to  C:\Documents and Settings\All Users\Application Data\MySQL\MySQL 5.1\data\). So, after I exported the data from the [...]]]></description>
			<content:encoded><![CDATA[<p>I tried moving all my databases from MySQL 4.1 to MySQL 5.1 on Windows and since I had some InnoDB tables I could not just copy the data files between MySQL Server versions (from C:\Documents and Settings\All Users\Application Data\MySQL\MySQL 4.1\data\ to  C:\Documents and Settings\All Users\Application Data\MySQL\MySQL 5.1\data\).<br />
So, after I exported the data from the old MySQL Server version I tried importing it to the MySQL 5.1 using phpMyAdmin.<br />
The file to import was 42MB in size, so I had to set some PHP configuration variables (in php.ini file) to greater values:<br />
<code>post_max_size = 64M<br />
upload_max_filesize = 64M</code></p>
<p>At first it looked like the phpMyAdmin import script entered a loop or something, as it wouldn&#8217;t stop even after running for several minutes and, as I was looking into the data files it was producing, no new files appeared. It was like it blocked on a table with a large number of records, which didn&#8217;t make any sense. Then I restarted the Apache server and I tried the import all over again. The same thing was happening. I finally decided to let it run for more time and the script finally stopped. But the data imported was incomplete; a part of the records in the large table I thought script blocked on, and every table and database from there on were missing, with no PHP or MySQL error returned.<br />
Then I thought the script needed even more time to run, so I increased the value of the PHP configuration variable <em>max_execution_time</em>, but with the same result.</p>
<p><strong>The solution</strong>. It seems that the execution time limit for the import script in phpMyAdmin is defined by the variable <em>$cfg['ExecTimeLimit']</em> in &lt;path_to_phpMyAdmin&gt;/libraries/config.default.php and the value of this variable should be a lot greater than its default value of 300 seconds when importing a great amount of data. In my case it needed about an hour (3600 seconds) to complete. So you have to set this variable depending on the quantity of data you are importing.<br />
You might also need to set the MySQL configuration variable <em>max_allowed_packet</em> (in my case, in C:\Program Files\MySQL\MySQL Server 5.1\my.ini) to a greater value, if you have large queries in the data file you want to import, for avoiding MySQL error 2006, &#8216;mysql server has gone away&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2009/08/importing-a-mysql-data-file-using-phpmyadmin-results-in-incomplete-data-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to receive a failure notice when the recipient cannot be reached after sending an email using the PHP mail() function</title>
		<link>http://www.theerrormessage.com/2007/12/how-to-receive-a-failure-notice-when-the-recipient-cannot-be-reached-while-sending-an-email-using-the-php-mail-function-on-a-windows-server/</link>
		<comments>http://www.theerrormessage.com/2007/12/how-to-receive-a-failure-notice-when-the-recipient-cannot-be-reached-while-sending-an-email-using-the-php-mail-function-on-a-windows-server/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 19:24:49 +0000</pubDate>
		<dc:creator>thalissar</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/2007/12/09/how-to-receive-a-failure-notice-when-the-recipient-cannot-be-reached-while-sending-an-email-using-the-php-mail-function-on-a-windows-server/</guid>
		<description><![CDATA[I could not receive a failure notice when sending email to an email address that does not exist ($to_address), using this code: $subject = "Email subject"; $message = "line1\r\nline2\r\nline3"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $headers .= "To: &#60;$to_email&#62;\r\n"; $headers .= "From: Me &#60;$my_email_address&#62;\r\n"; $headers .= "Return-Path: &#60;$my_return_email_address&#62;r\n"; mail($to_email, $subject, $message, $headers); [...]]]></description>
			<content:encoded><![CDATA[<p>I could not receive a failure notice when sending email to an email address that does not exist ($to_address), using this code:</p>
<p><code class="php">$subject = "Email subject";<br />
$message = "line1\r\nline2\r\nline3";<br />
$headers  = "MIME-Version: 1.0\r\n";<br />
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";<br />
$headers .= "To: &lt;$to_email&gt;\r\n";<br />
$headers .= "From: Me &lt;$my_email_address&gt;\r\n";<br />
$headers .= "Return-Path: &lt;$my_return_email_address&gt;r\n";<br />
mail($to_email, $subject, $message, $headers);</code></p>
<p>The problem was that the email address I wanted to receive the failure notices to ($my_return_email_address) was not the same as the value of the configuration option sendmail_from in the php.ini file (Apache web server installed on a machine with the Windows Professional operating system). So the failure notices were sent to the sendmail_from email address if this was an existing address, instead of the email address specified in the Return-path header of the email.</p>
<p>The solution is replacing the lines:</p>
<p><code class="php">$headers .= "Return-Path: &lt;$my_return_email_address&gt;r\n";<br />
mail($to_email, $subject, $message, $headers);</code></p>
<p>with:</p>
<p><code class="php">// when the PHP server runs on Windows<br />
ini_set(sendmail_from, $my_return_email_address);<br />
mail($to_email, $subject, $message, $headers);<br />
ini_restore(sendmail_from);</code><br />
<code class="php">// when the PHP server runs on UNIX<br />
mail($to_email, addslashes($subject), $message, $headers, "-r $my_return_email_address");</code></p>
<p>This means that, before sending the email, we set the value of the sendmail_from configuration option to $my_return_email_address and we restore the default value of the configuration option after the email is sent.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2007/12/how-to-receive-a-failure-notice-when-the-recipient-cannot-be-reached-while-sending-an-email-using-the-php-mail-function-on-a-windows-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An XSLT stylesheet does not have an XML mimetype:</title>
		<link>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</link>
		<comments>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/#comments</comments>
		<pubDate>Sat, 09 Jun 2007 02:01:59 +0000</pubDate>
		<dc:creator>gbl</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/2007/06/08/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</guid>
		<description><![CDATA[Full error message: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: Error occured on Firefox 2.0 when working with XML, XSLT. xml file: &#60;?xml version="1.0" encoding="utf-8" ?&#62; &#60;?xml-stylesheet type="text/xsl" href="product-list.xslt"?&#62; &#60;f&#62;PRODUCT DETAILS&#60;/f&#62; xslt file &#60;?xml version="1.0" encoding="UTF-8" ?&#62; &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"&#62; &#60;template match="/"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Full error message: <em>Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:</em></p>
<p>Error occured on Firefox 2.0 when working with XML, XSLT.</p>
<p>xml file:<br />
<code class="html"><br />
&lt;?xml version="1.0" encoding="utf-8" ?&gt;<br />
&lt;?xml-stylesheet type="text/xsl" href="product-list.xslt"?&gt;<br />
&lt;f&gt;PRODUCT DETAILS&lt;/f&gt;<br />
</code></p>
<p>xslt file<br />
<code class="html"><br />
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"&gt;<br />
&lt;template match="/"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;aaa&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="alert('x');"&gt;<br />
&lt;value-of select="f"/&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;/template&gt;<br />
&lt;/stylesheet&gt;</code></p>
<p>The error occurs because the web server (in my case Apache) had this entry in the mime.types file:</p>
<p><code class"html">text/xml            xml xsl</code></p>
<p>The fix in my case is:<br />
<strong>Change extenstion from <em>xslt</em> to <em>xls</em> on the stylesheet file or add <em>xslt </em>to the <em>text/xml</em> entry in mime.types file in Apache.<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
