All posts in PHP and Frameworks

Error with setfacl “Option -m: Invalid argument near character”

If you are setting permissions with the setfacl command when using Symfony or any other PHP framework that requires write access to certain directories or files, and you get the following error:

This usually means that the user provided in the command does not exist, for example:

In . . . Read more

Installing PHP extensions

The most commonly used extensions are available in our CentOS, Ubuntu and Debian repositories. CentOS To install an extension in CentOS, just execute the following command:

Change php55-imap for the PHP extension that you need. To search for extensions:

Ubuntu and Debian The process is basically the same. . . . Read more

APC in PHP 5.5

APC is not available in PHP 5.5, and it’s been replaced by Zend OPcache, which is included and enabled by default in PHP. Zend OPCache provides increased performance over APC, but it does not include user space caching. If you require this, consider installing APCu Since it’s now part of . . . Read more

Error installing pecl packages

If you get an error when trying to install packages, consider the following options: 1) Try downloading the pecl package and then compiling it, following steps like these: $ cd /usr/src $ pecl download apc $ tar zxf apc-1.0.tgz $ cd apc-1.0 $ phpize $ ./configure $ make && make . . . Read more