General
Install php mysql apache on Ubuntu
0It’s simple like that:
sudo apt-get install php5 apache2 mysql-server libapache2-mod-auth-mysql php5-mysql
that’s all
Install Symfony 1.4 under Git
0$ git svn clone http://svn.symfony-project.com/branches/1.4 lib/vendor/symfony-1.4
$ git svn rebase
$ git clone git://git-sue.git.sourceforge.net/gitroot/git-sue/git-sue lib/vendor/git-sue $ cd lib/vendor/symfony-1.4 $ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony -V
PHP Fatal error: require(): Failed opening required '/home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/event_dispatcher/sfEventDispatcher.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php on line 99
$ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony generate:project {project_name}
register_shutdown_function(create_function('', 'touch("cache/.ignore");
touch("log/.cache");'));
$ ./symfony generate:app {app_name}
$ git init
$ git config user.name {real_name}
$ git config user.email {email_address}
$ # git config user.signingkey {gpg_key}
$ # git remote add origin {repo_url}
~ cache/* !cache/.ignore log/* !log/.ignore
$ touch cache/.ignore log/.ignore
$ git add . $ git commit -a -m 'Initial commit.' $ # git push origin master
Symfony build model error: Unable to return ‘affix’ for unknown CreoleType
17When I upgraded my local php to 5.3 version I’ve got the problem that symfony model won’t build.
The error appeared was like: “Unable to return ‘affix’ for unknown CreoleType”
This is Creole issue – it cannot accept LONGVARCHAR and TEXT fields from Symfony schema.
To fix this please change text constant in CreoleTypes.php file (line 39 in my Creole version).
const TEXT = 30; //php 5.3.0 fix, using an unused int
This is not good solution but you need to build your model somehow. As temporary solution this is OK but we need to wait bugfix from Creole developers.