Category Archives: PHP

Install multiple versions of PHP on Linux

You can install all versions of php either from source or install the default version using yum installer. My server has php5.3 already installed and I am going to install PHP5.6 from source. Prerequisites Create required folders mkdir -p /usr/local/php56 mkdir -p /etc/php56 mkdir -p /etc/php56/php.d Download php5.6 wget http://de1.php.net/distributions/php-5.6.19.tar.gz Compile php ./configure –prefix=/usr/local/php56 –with-config-file-path=/etc/php56 …

Read more

Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/bin/php” failed: Permission denied

Scenario: My Cpanel server is installed with multiple php version and All of a sudden all my sites thrown 500 internal server error. Troubleshooting: The logs was showing the following message Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/bin/php” failed: Permission denied Resolution: I checked and I could see that the permission of “/usr/bin/php” …

Read more

change php.ini values using htaccess

Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess php_flag register_globals off

Install ffmpeg in linux

1. Create a directory to do our work in mkdir ~/ffmpeg cd ~/ffmpeg 2. Get all the source fileswget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2 wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz 3. Extract all the source files bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar tar zxvf flvtool2_1.0.5_rc6.tgz tar zxvf lame-3.97.tar.gz bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar tar zxvf …

Read more