<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing PostfixAdmin 2.2.x</title>
	<atom:link href="http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/feed/" rel="self" type="application/rss+xml" />
	<link>http://diymacserver.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 16:07:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-9577</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 03 Mar 2011 18:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-9577</guid>
		<description>@lingtalfi, If there is no socket definition in a php based app configuration it uses the one in php.in. So this would work for any php based application.</description>
		<content:encoded><![CDATA[<p>@lingtalfi, If there is no socket definition in a php based app configuration it uses the one in php.in. So this would work for any php based application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lingtalfi</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-9575</link>
		<dc:creator>lingtalfi</dc:creator>
		<pubDate>Thu, 03 Mar 2011 18:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-9575</guid>
		<description>@Richard, yes sure (sudo pico -w +1064 /etc/php.ini), but what if another &quot;myadmin&quot; like has socket config somewhere else ? I personally like it in /tmp/mysql.sock as it is mysql&#039;s default location, hence I would not permit a php programm to impose his will against mine (lol)</description>
		<content:encoded><![CDATA[<p>@Richard, yes sure (sudo pico -w +1064 /etc/php.ini), but what if another &#8220;myadmin&#8221; like has socket config somewhere else ? I personally like it in /tmp/mysql.sock as it is mysql&#8217;s default location, hence I would not permit a php programm to impose his will against mine (lol)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-9573</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 03 Mar 2011 18:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-9573</guid>
		<description>@lingtalfi, you can set the socket in your php.ini, I will add it to the document.</description>
		<content:encoded><![CDATA[<p>@lingtalfi, you can set the socket in your php.ini, I will add it to the document.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lingtalfi</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-9566</link>
		<dc:creator>lingtalfi</dc:creator>
		<pubDate>Thu, 03 Mar 2011 14:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-9566</guid>
		<description>Because my mysql.sock was /tmp/mysql.sock
and because postfixadmin php script doesn&#039;t offer the possibility
to configure it from the config.inc.file,
I had to edit the functions.inc.php file and around
line 1467, set connexion params of your own, like this

$link = mysqli_connect (
                    $CONF[&#039;database_host&#039;],
                    $CONF[&#039;database_user&#039;],
                    $CONF[&#039;database_password&#039;],
                    &#039;&#039;,
                    3306,
                    &#039;/tmp/mysql.sock&#039;
                    ) or $error_text .= (&quot;DEBUG INFORMATION:Connect: &quot; .  mysqli_connect_error () . &quot;$DEBUG_TEXT&quot;);



Note, I also added this
date_default_timezone_set(&#039;Europe/Paris&#039;);
as first php instruction to fix a timezone error.


@Lewis, I had the same problem,
you can see exactly what&#039;s going on by removing the @ symbol line 1467
of the functions.inc.php

Mean
replace this
$link = @mysqli_connect ($CONF[&#039;database_host&#039;],...

by this
$link = mysqli_connect ($CONF[&#039;database_host&#039;], ...</description>
		<content:encoded><![CDATA[<p>Because my mysql.sock was /tmp/mysql.sock<br />
and because postfixadmin php script doesn&#8217;t offer the possibility<br />
to configure it from the config.inc.file,<br />
I had to edit the functions.inc.php file and around<br />
line 1467, set connexion params of your own, like this</p>
<p>$link = mysqli_connect (<br />
                    $CONF['database_host'],<br />
                    $CONF['database_user'],<br />
                    $CONF['database_password'],<br />
                    &#8221;,<br />
                    3306,<br />
                    &#8216;/tmp/mysql.sock&#8217;<br />
                    ) or $error_text .= (&#8220;DEBUG INFORMATION:Connect: &#8221; .  mysqli_connect_error () . &#8220;$DEBUG_TEXT&#8221;);</p>
<p>Note, I also added this<br />
date_default_timezone_set(&#8216;Europe/Paris&#8217;);<br />
as first php instruction to fix a timezone error.</p>
<p>@Lewis, I had the same problem,<br />
you can see exactly what&#8217;s going on by removing the @ symbol line 1467<br />
of the functions.inc.php</p>
<p>Mean<br />
replace this<br />
$link = @mysqli_connect ($CONF['database_host'],&#8230;</p>
<p>by this<br />
$link = mysqli_connect ($CONF['database_host'], &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-8719</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Tue, 04 Jan 2011 09:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-8719</guid>
		<description>In addition to: 
mv setup.php setup.php.disabled

you&#039;ll want to: 
mv upgrade.php upgrade.php.disabled

and probably chmod 400 to both so no outsiders can read the files by accident (especially with MySQL passwords involved).</description>
		<content:encoded><![CDATA[<p>In addition to:<br />
mv setup.php setup.php.disabled</p>
<p>you&#8217;ll want to:<br />
mv upgrade.php upgrade.php.disabled</p>
<p>and probably chmod 400 to both so no outsiders can read the files by accident (especially with MySQL passwords involved).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-8692</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Sun, 02 Jan 2011 09:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-8692</guid>
		<description>If you want to have different admins set-up for each domain and want to have one postfixadmin install across all the domains:

Create symlink at the root directory of each domain.
ln -s /www/domain1.com/postfixadmin postfixadmin

And in the config.inc.php change this line to:
$CONF[&#039;postfix_admin_url&#039;] = $_SERVER[&#039;HTTP_HOST&#039;].&#039;/postfixadmin’;</description>
		<content:encoded><![CDATA[<p>If you want to have different admins set-up for each domain and want to have one postfixadmin install across all the domains:</p>
<p>Create symlink at the root directory of each domain.<br />
ln -s /www/domain1.com/postfixadmin postfixadmin</p>
<p>And in the config.inc.php change this line to:<br />
$CONF['postfix_admin_url'] = $_SERVER['HTTP_HOST'].&#8217;/postfixadmin’;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis C. Lorenz</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-8253</link>
		<dc:creator>Lewis C. Lorenz</dc:creator>
		<pubDate>Tue, 09 Nov 2010 20:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-8253</guid>
		<description>Thank you, Richard.

I got past that obstacle successfully and went to setup.php via the browser and have run into this error:

# Error: Can&#039;t connect to database
Please edit the $CONF[&#039;database_*&#039;] parameters in config.inc.php.

DEBUG INFORMATION:
Invalid $CONF[&#039;database_type&#039;]! Please fix your config.inc.php! 

I have tried &#039;mysql&#039; and &#039;mysqli&#039; for the database type and neither gets me past this error. I am using MySQL 5.x. 

Any idea? I am setting this up on a Snow Leopard Server. Could that be a problem?</description>
		<content:encoded><![CDATA[<p>Thank you, Richard.</p>
<p>I got past that obstacle successfully and went to setup.php via the browser and have run into this error:</p>
<p># Error: Can&#8217;t connect to database<br />
Please edit the $CONF['database_*'] parameters in config.inc.php.</p>
<p>DEBUG INFORMATION:<br />
Invalid $CONF['database_type']! Please fix your config.inc.php! </p>
<p>I have tried &#8216;mysql&#8217; and &#8216;mysqli&#8217; for the database type and neither gets me past this error. I am using MySQL 5.x. </p>
<p>Any idea? I am setting this up on a Snow Leopard Server. Could that be a problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-8227</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 08 Nov 2010 05:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-8227</guid>
		<description>@Lewis, you need to login to mysql with the proper admin rights you configured while installing/securing MySQL. Something like: mysql -uyouradminuser -p</description>
		<content:encoded><![CDATA[<p>@Lewis, you need to login to mysql with the proper admin rights you configured while installing/securing MySQL. Something like: mysql -uyouradminuser -p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis C. Lorenz</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-8223</link>
		<dc:creator>Lewis C. Lorenz</dc:creator>
		<pubDate>Sun, 07 Nov 2010 23:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-8223</guid>
		<description>Hello:

I keep getting the following error when I attempt to create the user postfix per the statement in these instructions:

ERROR 1396 (HY000): Operation CREATE USER failed for &#039;postfix&#039;@&#039;localhost&#039;

Any ideas, please? I have tried this as a normal user and as sudo. No luck.</description>
		<content:encoded><![CDATA[<p>Hello:</p>
<p>I keep getting the following error when I attempt to create the user postfix per the statement in these instructions:</p>
<p>ERROR 1396 (HY000): Operation CREATE USER failed for &#8216;postfix&#8217;@'localhost&#8217;</p>
<p>Any ideas, please? I have tried this as a normal user and as sudo. No luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://diymacserver.com/installing-the-mailserver/the-mailserver-on-leopard/installing-postfixadmin-22x/comment-page-1/#comment-7316</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 30 Jul 2010 13:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://diymacserver.com/?page_id=644#comment-7316</guid>
		<description>Looks like your mysql socket is configured wrong. To find out where your socket is located run the command &quot;mysql_config&quot; then edit your /etc/php.ini to change it to the correct location.</description>
		<content:encoded><![CDATA[<p>Looks like your mysql socket is configured wrong. To find out where your socket is located run the command &#8220;mysql_config&#8221; then edit your /etc/php.ini to change it to the correct location.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

