PHP

[Solved] SocketException Permission denied - CakePHP

cakephp-logo

CakePHP is a PHP development framework used in many projects. CakePHP supports sending mail via built in mail functions of PHP, smtp server. One may face following error message while sending mail: SocketException Permission denied - CakePHP The issue is related to the SELinux policy of the OS. SELinux forbid PHP/Apache to make network connections. In this case, one has …

Read More »

How to install PHP pear mail on CentOS & RedHat

php logo

The PHP mail() function is use inside PHP scripts to send emails. This is the simplest way to send emails but not secure. Sometimes, the PHP mail() function might be missing and scripts migh start displaying warning/error messages. In this case, install PHP Mail extension using PEAR. This is simple and east way. 1) Make sure PHP PEAR is present …

Read More »

[Solved] ERROR: phpize failed, command not found in PECL

php logo

If you are installing PHP extensions using PECL, you might end up with an error pecl install uploadprogress   WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading uploadprogress-1.0.3.1.tgz ... Starting to download uploadprogress-1.0.3.1.tgz (9,040 bytes) ....done: 9,040 bytes 4 source files, building running: phpize sh: phpize: command not found ERROR: `phpize' failed Solution: The …

Read More »

Install PHP Intl on cPanel/RHEL/CentOS/Fedora/Ubuntu server

php logo

Internationalization extension aka Intl is a wrapper for ICU librar which enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their  PHP scripts. To enable PHP Intl (Internationalization extension) on a cPanel server, PECL can be used. pecl install intl On a plain RHEL/CentOS/Fedora, PHP Intl can be install using yum yum install php-intl On Ubuntu, PHP Intl …

Read More »

Difference between mod_deflate and zlib.output_compression

apache logo

Most of the SEO, Developers are concern about the website load time, and question about the compression from the server end. The compression is achieved from both PHP zlib output_compression and Apache's mod_gzip (old Apache version) , mod_deflate. But the one question remains unanswered is that which compression method gives good compression. this post is going to cover the same …

Read More »