Recover MySQL root Password

1. Stop the MySQL server. # /etc/init.d/mysql stop 2. Start the MySQL server process with the –skip-grant-tables option so that it will not prompt for password. # mysqld_safe –skip-grant-tables & 3. Connect to mysql server as the root. # mysql -u root Welcome to the MySQL monitor…. ……….. Type ‘help;’ or ‘\h’ for help. Type … Read more

Make New Application in Red5

1. Make a new directory “svnlabs” under the webapps directory, it will be name of the application “svnlabs”. 2. Create a sub-directory called WEB-INF – red5-web.properties – red5-web.xml – web.xml webapp.contextPath=/svnlabs webapp.virtualHosts=*, localhost, localhost:8088, 127.0.0.1:8088 Download “svnlabs” Red5 App here… 3. Restart Red5 Server

Install ImageMagick

ImageMagick can be installed on Windows, Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others. Note: Make sure you have installed GhostScript and FreeType already 😉 More help https://www.svnlabs.com/blogs/install-openmeetings/ Download & Unpack # wget http://www.imagemagick.org/download/ImageMagick.tar.gz # tar xvfz ImageMagick.tar.gz Configure # cd ImageMagick-6.8.0-4 (or current version) # ./configure Build # … Read more

FFMpeg Video to Image Gallery

1. FFMpeg create images using video source # ffmpeg -i video.mp4 -s 560×315 images/image%d.jpg 2. Create image sequence gallery <?php $files = array(); foreach (glob(“images/*.jpg”) as $filename) { $files[] = $filename; } natsort($files); ?> <div id=”slideshow”> <?php $i=1; foreach ($files as $filename) { if($i%15==0) { ?> <img src=”<?php echo $filename; ?>” <?php if($i==15) { ?> … Read more

Install rtmpdump in CentOS

I was compiling FFmpeg with RTMP support, but it requires librtmp >= 2.2.f [root@svnlabs ffmpeg]# ./configure –enable-gpl –enable-nonfree –enable-libmp3lame –enable-libfaac –enable-librtmp –enable-libtheora –enable-libvorbis –enable-libx264 –enable-shared –enable-postproc –disable-yasm Package librtmp was not found in the pkg-config search path. Perhaps you should add the directory containing `librtmp.pc’ to the PKG_CONFIG_PATH environment variable No package ‘librtmp’ found ERROR: … Read more

Install ionCube Loader

1. Download ionCube loaders # wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 2. Extract # tar zxvf ioncube_loaders_lin_x86.tar.gz 3. Move to /usr/local # mv ioncube /usr/local/ 4. Add reference to php.ini file Depending on PHP version select ioncube_loader_lin_5.x.so and ioncube_loader_lin_5.x_ts.so files # ls /usr/local/ioncube/ ioncube_loader_lin_4.1.so ioncube_loader_lin_4.4.so ioncube_loader_lin_5.1.so ioncube_loader_lin_5.3.so ioncube_loader_lin_4.2.so ioncube_loader_lin_4.4_ts.so ioncube_loader_lin_5.1_ts.so ioncube_loader_lin_5.3_ts.so ioncube_loader_lin_4.3.so ioncube_loader_lin_5.0.so ioncube_loader_lin_5.2.so ioncube_loader_lin_5.4.so ioncube_loader_lin_4.3_ts.so ioncube_loader_lin_5.0_ts.so ioncube_loader_lin_5.2_ts.so ioncube_loader_lin_5.4_ts.so … Read more

MySQL open files limit

Upgrade Migration – Kaltura CE 4.0 to 5.0 I was migrating Kaltura from CE 4.0 to 5.0 but following MySQL error made me unhappy 🙁 One or more prerequisites required to install Kaltura failed: Please set ‘open_files_limit >= 20000’ in my.cnf and restart MySQL (current value is 1024) # ulimit -a | grep “open files” # … Read more

Install cURL on Ubuntu

Run the following command to enable curl package php5-curl. $ sudo apt-get install php5-curl Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: php5-curl 0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded. Need to get 27.1kB of archives. After this operation, 127kB … Read more

Upgrade PHP & MySQL on Plesk 10

1. Stop Running Apache & MySQL Server # /etc/init.d/mysqld stop # /etc/init.d/httpd stop 2. Set up the atomic channel # wget -q -O – http://www.atomicorp.com/installers/atomic | sh 3. Upgrade to PHP 5.3.x on plesk 10 # yum upgrade Now I can install “uploadprogress” extension easily pecl/uploadprogress requires PHP (version >= 5.2.0), installed version is 5.1.3 … Read more