Today I had to add IMAP support to PHP 5.6, built from sources. When I tried to add it, here’s the error I received: Just a quick solution today: Install autoconf, if you don’t have it yet: Now it’s time to configure PHP – add this to your configure line: Verify it’s installed: You should see something like… Read More »
If you are trying to use PHP7 for the first time, you might not know that is does not support short tags by default. So if you are going to test the following code: <? phpinfo(); ?> it will not work and will be displayed as text. How to resolve this issue? There are at least 2 simple… Read More »
If you have recently updated PHP on a Directadmin server through custombuild, you should notice that not all modules are available with the fresh installation. But don’t worry, in case of Imagemagich it’s pretty simple. cd /usr/local/php70/bin; ./pecl install imagick After that you can add the extension line to your php.ini. Path to extension will be shown upon… Read More »
If you need to add composer to your server, there are just 2 command to input: And then That’s it! Now you can run composer from command line.
If you’re getting this error while configuring PHP: configure: error: utf8_mime2text() has new signature You should use a simple solution to resolve this: yum install libc-client-devel.i686 and libc-client-devel.x86_64 This error usually appears when you’re trying to install IMAP support on a 64-bit system.
If you need to install IMAP support for php on a 64-bit machine, it is not that simple. There are some additional steps you need to follow to make it working. First of all, you may try to reconfigure PHP. If you have Directadmin or any other control panel installed, you might have imap library installed. Just add… Read More »
This is not a trick, but a must for server security. If you would like to limit your users’ ability to execute the code, located on remote servers, you should ensure your php.ini has the following lines: allow_url_fopen=Off allow_url_include=Off Of course, this will not save you from insecure code, but this is one of the first steps you… Read More »
If you are trying to compile PHP on a 64-bit OS (e.g. CentOS 6.4), you can see various error messages. The only reason is the different location of libraries, that causes the configure script to break. Let me tell you about a popular fix for DB4 support, that is not enabled by default. I have tried to configure… Read More »
php auto prepend using httpd.conf
lltdl error on PHP make: here is the solution for you.