This post describes how to quickly enable SSL on Apache and create SSL enabled website on Apache/Linux environment. In this post I assume that apache2 is properly installed on your linux server, and you’re running a Debian or Ubuntu distribution of Linux.
A quick reminder: SSL enabled website is just another web service (more precisely, virtual host), that is running on a port different than a standard http port 80. Typically, port on which are SSL enabled websites running is 443, and address usually begins with https://… instead of usual http://… on a regular website.
Embedding relations in Symfony
Posted on Category:SymfonyThis quick post describes a necessary step in embedding a relation in a Symfony 1.4 form.
If you have followed Symfony’s official documentation and forums regarding embedding relations in a form, you may have already seen an example of product and productPhoto forms in a single form.
Creating Autocomplete input field for Symfony based web form
Posted on Category:SymfonyThis post describes steps required to create jQuery/AJAX input text field with autocomplete feature using Symfony php framework. It is assumed that you know how to create a web form, and install Symfony plugins, so that part won’t be explained here.
A Symfony plugin sfFormExtraPlugin is required, and, of course, jQuery (I’m using sfJqueryReloadedPlugin).
Generating url using routing from anywhere in Symfony
Posted on Category:SymfonyThis post describes how to generate URL from anywhere in Symfony application. For example, I needed to create URL for forgotten password within an error message for invalid e-mail address. Needless to say, this should be done in user registration form class.
Troubleshooting /sf directory with mod-rewrite on Symfony projects
Posted on Category:SymfonyThis post shows example for setting up /sf directory required for default css and javascript files on Symfony projects. Symfony documentation describes how to create Alias for /sf directory, and on most configurations it works perfectly. Directory and all assets are visible, and usable by your web application.
Setting up new VirtualHost for Symfony 1.4 project
Posted on Category:SymfonyThis post shows an example how to setup apache2 virtual host for symfony 1.4 based project. Although there’s already an documented VirtualHost example on official Symfony website, I think that this virtualHost setup is more practical for development purposes.
Moving MySQL databases to ramdisk in Ubuntu linux
Posted on Category:UNIX/Linux in generalThis post describes steps required to tranfer MySQL database files to RAM by using ramdisk on Linux. If you ever had to work with symfony and frequently rebuilding database schema, this could come in handy…
In this example I’m using Ubuntu 10 64bit LTS distribution.
Enabling logging in production enviroment for Symfony project
Posted on Category:PHP, MySQLThis post describes steps required to enable logging in Symfony project in production enviroment.
By default logging is disabled in prod enviroment, and if you want to enable it, you need to edit settings.yml and factories.yml files in your app directory.