Author Archives: k3rn3l3rr0r

APC cache and Symfony projects in Fedora 25/26

To be able to run Symfony project on Fedora 25/26 server with Apache (httpd) you need to install the “APCu Backwards Compatibility Module” $ dnf install php-pecl-apcu-bc Otherwise you will be getting the following error: PHP Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /home/maf/symfony/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php on line 40

Require specific commit and branch from GitHub with Composer

If you need to include specific branch and/or specific commit from GitHub into your project via Composer use following syntax: { “minimum-stability”: “dev”, “require”: { “vendor/package”: “dev-branchname#6bdd====full commit id====a9c6”, } , “repositories”: [ { “type”: “git”, “url”: “https://github.com/user/repo.git” } ] } branch name gets always dev- in front (so branch “features” translates to “dev-features”) you […]

PHP var_dump() to error log

Nice function to var_dump() any variable into php error_log()… Sometimes it can be very usefull for debugging purposes. function var_error_log( $object=null ){ ob_start(); // start buffer capture var_dump( $object ); // dump the values $contents = ob_get_contents(); // put the buffer into a variable ob_end_clean(); // end capture error_log( $contents ); // log contents of […]

Fedup from Fedora 19 to 20 fails because of missing GPG keys

Fedup upgrade from Fedora 19 to Fedora 20 fails with the message: Importing GPG key 0xB5F29883: Userid : “RPM Fusion nonfree repository for Fedora (20) <rpmfusion-buildsys@lists.rpmfusion.org>” Fingerprint: a84d cf58 46cb 10b6 5c47 6c35 63c0 de8c b5f2 9883 Package : rpmfusion-nonfree-release-19-1.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-20 Downloading failed: Didn’t install any keys You can manually import the […]

Fedora LiveCD default username and password

The default username and password setting for Fedora LiveCD is: Login: “liveuser” Password: “” [yes, it’s blank] If you need to remote login into the machine running the LiveCD you have first to start sshd and set new password for the liveuser: Start sshd.service: [root@localhost ~]# systemctl start sshd.service Set new password for liveuser: [root@localhost […]