mod_flvx FLV Progressive download streaming for Apache 2
If you are using cpanel server you should have already installed Apache. Make sure that you have apache 2.2 version on the server or else you might have errors during compiling mod_flv.
Download mod_flvx.c from http://github.com/osantana/mod_flvx
wget http://github.com/osantana/mod_flvx/blob/master/mod_flvx.c
Compile and install module:
/usr/local/apache/bin/apxs -i -a -c mod_flvx.c
Add the following handler in /usr/local/apache/conf/httpd.conf
AddHandler flv-stream .flv
Reload configuration:
or
kill -1 `cat /usr/local/apache2/logs/httpd.pid`
How to upgrade Mysql on Plesk with CentOS Linux
The procedure for upgrade of Mysql is quite simple.
wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh
How to upgrade:
yum –enablerepo=atomic-testing upgrade mysql
–enablerepo=repoidglob
Enables specific repositories by id or glob that have been disabled in the configuration file using the enabled=0 option.
To upgrade php run ‘yum upgrade php‘
With the above methods mysql will be upgraded to latest release.
Sometimes we may see the mysql database size as zero in cPanel
This can be fixed as follows: SSH to the server as root and edit the cpanel.config file
vi /var/cpanel/cpanel.config
search for
disk_usage_include_sqldbs=0
and then make change to
disk_usage_include_sqldbs=1
If the parameter is not present, add it. Save the file and execute the following command:
This may take few minutes to get fixed if you have a large number of users with databases, but once done, we should be able see the database disk usage show up accurately in cPanel.
How to include the crond service to chkservd
First we need to create a crond file under the chkservd.d directory where all the services files are placed:
Add the following line to the file:
service[crond]=x,x,x,/etc/init.d/crond restart,crond,root
Now we need to edit the chkservd configuration file and enable the crond service for monitoring
vi /etc/chkserv.d/chkservd.conf
add the following line at the end of the file
Restart the chkservd service for the new changes to take affect:
/scripts/restartsrv chkservd
Stop the service manually and watch chkservd logs to verify auto-restart.
service crond stop; tail -f /var/log/chkservd.log
You should notice that the crond service is restarted automatically.
Creating Account with wwwacct
To create hosting account for a domain through SSH use /scripts/wwwacct.
Example:
serverbuddies.com is the domain name.
buddy is the user name
123abcd is the password
Now From the command Line:
/scripts/wwwacct serverbuddies.com buddy 123abcd 50 advanced n