<rss version="2.0">
		<channel>
			<title>Akelos PHP Framework Forum - Stuck on install - &amp;quot;Could not load inflector rules file&amp;quot; and &amp;quot;Could not connect to the database&amp;quot;</title>
			<lastBuildDate>Fri, 10 Sep 2010 09:33:41 +0200</lastBuildDate>
			<link>http://forum.akelos.org/</link>
			<description></description>
			<generator>
				Lussumo Vanilla 1.1.4 &amp; Feed Publisher
			</generator>
			<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3233#Comment_3233</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3233#Comment_3233</guid>
		<pubDate>Fri, 21 Aug 2009 22:11:44 +0200</pubDate>
		<author>nselikoff</author>
		<description>
			<![CDATA[ Hello,<br /><br />I'm very interested in Akelos as a possible PHP framework for my next project, but I'm having a heck of a time getting past the first few steps in the booklink tutorial. <br /><br />I'm on a Mac, OS X Leopard, with Apache, PHP 5.2.6, and MySQL (I'm not using MAMP).<br /><br />I used svn to checkout Akelos, verified that Akelos could find php, and ran the setup script to create the booklink directory and symbolic link. I had to add FollowSymLinks to my /etc/apache2/users/user.conf file because I was getting a 403 error initially. I created the databases and granted the proper permissions.<br /><br />When I point my browser to http://localhost/booklink, I see a bunch of errors, backtraces, and warnings.<br /><br />The first one is this:<br />(User Error) Could not load inflector rules file: config/inflector.yml<br /><br />Then a bunch of warnings:<br />Warning: Call-time pass-by-reference has been deprecated in /Volumes/Data/Websites/akelos/lib/AkActionView/AkHelperLoader.php on line 74<br />Warning: Call-time pass-by-reference has been deprecated in /Volumes/Data/Websites/akelos/lib/AkActionView/AkHelperLoader.php on line 76<br />Warning: Call-time pass-by-reference has been deprecated in /Volumes/Data/Websites/akelos/lib/AkActionView/AkHelperLoader.php on line 78<br />Warning: Call-time pass-by-reference has been deprecated in /Volumes/Data/Websites/akelos/lib/AkActionView.php on line 113<br />Warning: Call-time pass-by-reference has been deprecated in /Volumes/Data/Websites/akelos/lib/AkActionView.php on line 226<br /><br />Then more errors related to write permissions and locale files, which I was able to fix by running the following commands in my akelos directory (not in my booklink directory)<br /><br />sudo chown -R www .<br />sudo chmod -R g+rw .<br /><br />Another thread suggested running ./script/configure -i, which I assume should be run from the booklink directory. When I run this script, after inserting the correct database name, type, user, and password, I receive the following error:<br />Could not connect to the database<br /><br />I appreciate your help.<br /><br />-Nathan ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3234#Comment_3234</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3234#Comment_3234</guid>
		<pubDate>Sat, 22 Aug 2009 13:59:57 +0200</pubDate>
		<author>kkrzyzak</author>
		<description>
			<![CDATA[ Hi Nathan,<br />All I can tell you, that I'm running akelos on my Mac (10.5.7) on MAMP - php 5.2.6 too, and mysql (as well as sqlite) - and I haven't got any problems - so try to install MAMP ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3235#Comment_3235</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3235#Comment_3235</guid>
		<pubDate>Mon, 24 Aug 2009 06:11:19 +0200</pubDate>
		<author>nselikoff</author>
		<description>
			<![CDATA[ Hi kkrzyzak,<br /><br />Thanks for the reply. I installed and tried MAMP, but am getting the same errors as above (after starting from scratch on the booklink tutorial).<br /><br />-Nathan ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3236#Comment_3236</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3236#Comment_3236</guid>
		<pubDate>Mon, 24 Aug 2009 17:11:10 +0200</pubDate>
		<author>nselikoff</author>
		<description>
			<![CDATA[ <p>OK, after playing with it for a bit longer I got it to work.</p>

<p>As described in <a href="http://forum.akelos.org/discussion/148/">this thread</a> I had to create a symlink from MAMP to the "typical" location of the MySQL socket file</p>

<pre><code>sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
</code></pre>

<p>This was the ONLY way I could get the ./script/configure -i script to work correctly without giving me a database connection error, and I still saw the errors listed above when trying to use the "web installer".</p>

<p>According to the other threads I've seen, manually changing 'localhost' to '127.0.0.1' in the config/database.yml file is also an option, though this would require foregoing the use of the configure script.</p>

<p>I have a few suggestions to the developers for making this process easier for others:</p>

<ol>
<li>Either fix the web installer so that it can be used for the initial configuration without seeing any errors, or remove it and force the use of ./script/configure -i (changing the wording in the booklink tutorial and in /script/setup)</li>
<li>Edit the configure script to ask for a socket location if the "typical" settings aren't allowing a connection to mysql. This socket location could be written into the database.yml file, as it seems from other threads that you used to be able to specify a non-standard socket in config.php, but now all of those parameters have been moved into database.yml.</li>
</ol>

<p>Hope this helps someone else trying to give Akelos a shot!</p>

<p>-Nathan</p>
 ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3308#Comment_3308</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3308#Comment_3308</guid>
		<pubDate>Tue, 03 Nov 2009 16:10:31 +0100</pubDate>
		<author>Oliver</author>
		<description>
			<![CDATA[ <blockquote>
  <p>As described in this thread I had to create a symlink from MAMP to the "typical" location of the MySQL socket file</p>
</blockquote>

<p>Under Snow Leopard, I set the following symlink:</p>

<pre><code>$ sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /usr/local/mysql-5.0.45-osx10.4-i686
</code></pre>

<p>However, I still have the same issue as described by Nathan <a href="http://forum.akelos.org/discussion/819/stuck-on-install-could-not-load-inflector-rules-file-and-could-not-connect-to-the-database/#Item_1">in the initial post</a>.</p>

<p>Anyone has another idea how I could fix this?</p>
 ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3309#Comment_3309</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3309#Comment_3309</guid>
		<pubDate>Tue, 03 Nov 2009 19:27:37 +0100</pubDate>
		<author>Oliver</author>
		<description>
			<![CDATA[ <blockquote>
  <p>Under Snow Leopard, I set the following symlink:</p>
  
  <p>$ sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /usr/local/mysql-5.0.45-osx10.4-i686</p>
  
  <p>However, I still have the same issue as described by Nathan in the initial post.</p>
</blockquote>

<p>Yay, I GOT IT WORK!</p>

<p>I had to set the following symlink (instead of what I did before):</p>

<pre><code>$ sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /private/tmp/mysql.sock
</code></pre>

<p>This seems to be the new location of the mysql.sock under Mac OS X Snow Leopard (10.6)</p>
 ]]>
		</description>
	</item>
	<item>
		<title>Stuck on install - &quot;Could not load inflector rules file&quot; and &quot;Could not connect to the database&quot;</title>
		<link>http://forum.akelos.org/discussion/819/?Focus=3315#Comment_3315</link>
		<guid isPermaLink="false">http://forum.akelos.org/discussion/819/?Focus=3315#Comment_3315</guid>
		<pubDate>Thu, 05 Nov 2009 22:06:04 +0100</pubDate>
		<author>Oliver</author>
		<description>
			<![CDATA[ <p>A helpful address when dealing with MAMP's MySQL on Mac OS X:</p>

<p><a href="Mac OS X: Trouble with MAMP MySQL">http://fischerlaender.net/apple-mac/mac-os-x-trouble-with-mamp-mysql</a></p>
 ]]>
		</description>
	</item>
	
		</channel>
	</rss>