Symfony 2 development on Fedora 21

There are some packages that are needed in PHP for developing Symfony 2 applications on Fedora 21.

To install what is needed:

This will resolve and install some dependencies such as php-xml and php-pdo. It will even install the apache webserver (httpd). MariaDB is installed by default in at least the KDE spin so there’s no need to install that specifically and php-mysql would resolve to install mariadb any way.

It’s also good to edit some .ini files after this. In /etc/php.ini it’s a good idea to set the timezone variable:

In /etc/php.d/15-xdebug.ini the following will help with debugging from NetBeans:

To simplify access to logs it could be an idea to run the httpd server as your own user, in /etc/httpd/conf/httpd.conf change the user setting, leave the group as is:

To start and enable the services needed:

 

Fedora 21 in VirtualBox

Just installed Fedora 21 as a guest on a Windows 7. Some weird problems getting everything to work but a couple of things to remember:

  • To get full screen working properly make sure you check “Auto resize Guest Display”, in the View menu of a running VM.
  • Chromium based browsers (Chrome, Opera and Vivaldi) have been having some problems with mouse integration in VirtualBox, at least on linux guests. A workaround is to disable mouse integration if you can’t select any text by dragging in one of these browsers (Host+I).