1

I have just setup symfony 1.4 on Amazon EC2 AMI Linux.

Every thing seems to be configured fine but when I open the default h*tp://ec2-xxxxxxx-.amazonaws.com/ URL it shows me 401 | Unauthorized | InvalidArgumentException and the error is:

Unable to load "cacheHelper.php" helper in: SF_ROOT_DIR/apps/frontend/lib/helper, SF_ROOT_DIR/lib/helper, SF_ROOT_DIR/lib/vendor/symfony/lib/helper.

Any help is appreciated.

<VirtualHost *:80>
  ServerName ec2-184-73-90-216.compute-1.amazonaws.com
  DocumentRoot "/var/www/html/project/web"
  DirectoryIndex index.php
  <Directory "/var/www/html/project/web">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>
Mahavir Munot
  • 1,464
  • 2
  • 22
  • 47
  • Could you add your vhost conf? – j0k Apr 18 '12 at 06:13
  • Did you define an use_helper('cache') ? Because the cache file is `CacheHelper.php` and not `cacheHelper.php`. – j0k Apr 18 '12 at 06:28
  • @j0k: I have set the standard_helper: [Partial, Cache, i18n]. – Mahavir Munot Apr 18 '12 at 06:49
  • @j0k: I am using free usage tier account. I launch the Amazon AMI Linux instance. I have configured and install lamp stack on the Amazon AMI Linux server. Uploaded all the symfony files to "/var/www/html" location. – Mahavir Munot Apr 18 '12 at 06:50
  • @j0k: Please see the URL http://ec2-184-73-90-216.compute-1.amazonaws.com/frontend_dev.php/login – Mahavir Munot Apr 18 '12 at 07:03
  • ServerName ec2-184-73-90-216.compute-1.amazonaws.com DocumentRoot "/var/www/html/project/web" DirectoryIndex index.php AllowOverride All Allow from All – Mahavir Munot May 07 '12 at 07:29

1 Answers1

0

Well it's more a wrong configuration here. Add a password or at least ":" in your database connection in the i18n.yml:

database: mysql://user:pass@localhost/db
database: mysql://user:@localhost/db

And by the way, you also have something wrong in your index:

Fatal error: Call to a member function getId() on a non-object in /var/www/html/project/apps/frontend/modules/user/actions/actions.class.php on line 41

Also, don't forget to add an Alias to /sf to have icon in the toolbar:

Alias /sf /var/www/html/project/lib/vendor/symfony/data/web/sf
<Directory "/var/www/html/project/lib/vendor/symfony/data/web/sf">
  AllowOverride All
  Allow from All
</Directory>
Mahavir Munot
  • 1,464
  • 2
  • 22
  • 47
j0k
  • 22,600
  • 28
  • 79
  • 90