Scripting Languages

[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' failedpecl install uploadprogress …

Read More »

How to set up a cron job on a site that's protected with .htaccess/.htpasswd?

To set a cron job on a website which is protected with .htaccess/.htpasswd password protection, instead of setting cron job as wget -O - -q -t http://www.example.com/cron.php or curl --compressed http://example.com/cron.php Set the cron job as below curl -u admin:PassworD --silent --compressed http://www.example.com/cron.php In the above cron, we have specified  .htaccess /.htpasswd protection. details where username is admin and password is …

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 »

[How To] Set htaccess 301 redirect to new domain

htaccess-image

The .htaccess is a powerful file and it can be used in many ways to do settings related to Domain, PHP, Apache, etc.. In this post, you will learn how to set permanent redirection (301) for the visitors visiting domain example.com and www.example.com ( with and without wwww) to example1.com using .htaccess re-write rules. Rewrite rule: RewriteEngine on RewriteCond %{HTTP_HOST} …

Read More »

[How To] Disable Suhosin for a domain

php logo

If you are getting following error related to suhosin /usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol [Sun Jan 30 11:07:08 2011] [error] [client] Premature end of script headers: /home/username/public_html/wp-admin/index.php It means that Suhosin should be disabled for the particular domain. We are going to see how this can be achieved using php.ini. Please note that .htaccess does not support …

Read More »