There are some packages that are needed in PHP for developing Symfony 2 applications on Fedora 21.
To install what is needed:
1 |
yum install php php-dom php-posix php-mysql php-xdebug php-soap php-mbstring |
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:
1 |
date.timezone = Europe/Stockholm |
In /etc/php.d/15-xdebug.ini the following will help with debugging from NetBeans:
1 2 3 4 5 |
xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 |
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:
1 2 |
User <your username> Group apache |
To start and enable the services needed:
1 2 3 4 |
systemctl start mariadb systemctl enable mariadb systemctl start httpd systemctl enable httpd |