video not converting

Posted April 29, 2009 by Shijil T S

Hi Its common that video files are not getting converted into flv format for streaming. This can be caused due to deprecated option that is still used for mencoder in the scripts of phpmotion and clipshare. All you have to do is to replace the existing options with the latest one in the convertor.php file of these scripts. I will give you a easy approach to accomplish this. copy paste the sample code to a file named fixscript.sh in your home directory below public_html find . ( -name…

Read more...

nginx wordpress permalink

Posted by Shijil T S

As you are aware nginx don't read .htaccess rewrite rule nginx has its own rewrite rule. Wordpress has already embraced nginx, wordpress.com works with nginx. There will be problems if you enable permalink option in wordpress nginx. Here is the workaround for it. You can find permalink option at Login as wordpress admin Click on settings -> permalinks Custom Structure /%postname%/ # This is the one I am using you can opt any other which is given as example in that page. Now goto wp-content/plugin directory of your…

Read more...

startup scripts for nginx

Posted April 28, 2009 by Shijil T S

Startup script for nginx that can be used for centos. Save the below code in a file named nginx in /etc/init.d/. Chmod its permission to 755. Also make sure that you give the correct path for your conf file in NGINX_CONF_FILE and of the nginx binary location. #!/bin/sh # # nginx - this script starts and stops the nginx daemin # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse # proxy and IMAP/POP3 proxy server # processname: nginx # config: /usr/local/nginx/conf/nginx.conf #…

Read more...

kernel 2.6 compile steps

Posted by Shijil T S

I decided to compile my own kernel for my centos.Here are the steps I have followed and which worked without any errors. Goto kernel.org for the list of kernel source available http://kernel.org/pub/linux/kernel/v2.6/ Download the one you like to the directory /usr/src If you are using wget and by chance you got disconnected and if you wanted to continue from the last point you stopped use the command with -c option wget -c [kernelsourceurl] You can also apply the patch which can be downloaded from this Index page of…

Read more...

named capset failed

Posted April 27, 2009 by admin

Today I have come across an error when starting named service in cpanel. I could fix it by inserting the modules to the kernel using modprobe command. modprobe capability modprobe commoncap

Read more...

random password generator

Posted April 23, 2009 by admin

I was searching in google how to generate random password and got two good easy to use methods. First one is the most simplest one uuidgen -r | cut -c-8 or uuidgen -t | cut -c-8 The -r option is for random based uuid generation with help of /dev/random and -t uses system clock plus ethernet address. Second method is to call a function function randompass { pass= /dev/null 2>&1 || head -c 7) echo $pass } now you can call this function in the shell script by…

Read more...

zlibVersion, version libmysqlclient_15 not defined in file libmysqlcli...

Posted April 16, 2009 by admin

Hi, I have come across this strange error after installing php-fpm for nginx. zlibVersion, version libmysqlclient_15 not defined in file libmysqlclient.so.15 From the error it was clear that there is a version mismatch that is defined for ZlibVersion in libmysqlclient.so.15. So next step was to find out which all libmysqlclient.so files are there in the server. Since I was not sure about the path of libmysqlclient locate was my command but before that I should update my database. root@server1 [~]# updatedb & root@server1 [~]# locate libmysqlclient.so and the…

Read more...

Using FreeBSD ports and packages

Posted April 11, 2009 by Shijil T S

FreeBsd Ports/Packages New to FreeBsd and only familiar with RPM ? This will article will guide you through how to install third-party applications and system tools using ports and packages Ports Port is a technology used to install from source. Each Port is a collection of scripts that when executed, automatically download source of softwares from the Internet, patches, configures if necessary, compiles and install it. Any dependencies on other applications or libraries a port may have are also installed for the user. Each port, or software package,…

Read more...

virtuozzo ostemplate creation

Posted April 3, 2009 by Shijil T S

There might be plenty of reasons why you want to have custom ostemplate Here is the method you can create it, assuming that you have already installed a ostemplate in your node and its name is centOS cp -rpf /vz/template/centOS /vz/template/centOScustom It will take some minutes now traverse through the directories until you reach the folder named "default" cd /vz/template/centOScustom/5/x86/config/os/default There you can customize the files description distribution repositories packages summary Now if you issue the command vzpkg list -O you will see the name centOScustom Time to…

Read more...

Tcpdump checking connections

Posted March 10, 2009 by admin

Hosting servers at some point of time should have faced a ddos attack. You will have lot of trouble in identifying the right command to use and check the connections to your server.Here is a small tip with tcpdump tcpdump -v nn -w attack dst port 80 Catch upto 200 packets you can change the port number as well as the filename "attack" as per your need. Having done that you can now figure out the number of connections from the ips by following command tcpdump -nr attack…

Read more...

← Newer posts Older posts →