In CentOS website, there is a warning about using EPEL:
...So, make SURE you are using the Priorities yum plugin if you are using EPEL...
Below are the steps to install and set the correct priorities:
CentOS 5: yum install yum-priorities
CentOS 6: yum install yum-plugin-priorities
&n
rpm -e perl.i386
In order to change PHP execution mode to CGI wrapper for better control for shared hosting, we need to recompile apache to change the Suexec default directory. Below are the steps:
wget http://mirror.centos.org/centos/5/updates/SRPMS/httpd-2.2.3-53.el5.centos.1.src.rpm
useradd mockbuild
rpm -Uvh
After a very long waiting for the update...finally it is announced officially on the centos website that CentOS 5.6 is released.
Simply run 'yum list updates' and then 'yum update' to upgrade from 5.0 - 5.5 version to 5.6.
Check the version of CentOS: 'rpm -q centos-release'
It should return: 'centos-r
When upgrade to the latest Awstats, the previously installed GeoIPfree has a problem about its location path.
If you get this error: "Error: Plugin load for plugin 'geoipfree' failed with return code: Error: Can't locate Geo/IPfree.pm in @INC (@INC contains:..." Just download and unzip to the plugin folder in awstats: /var/www/awstats/plugins/
Upgrade to latest Nagios:
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz
tar xzf nagios-3.2.3.tar.gz
cd nagios-3.2.3
./configure --with-command-group=nagcmd
make all
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios restart
Using yum to install openjdk, simple and fast.
yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
java -version
nano /etc/profile
#Add the following lines at the bottom:
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/l
yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2
When encoding mp3 for audio, the correct codec to use is libmp3lame.
Install cURL for php on Ubuntu:
sudo apt-get install curl php5-curl php5-xmlrpc
sudo /etc/init.d/apache2 restart
Install cURL for php on CentOS:
yum install curl curl-devel php-xmlrpc
sudo /etc/init.d/httpd restart
ProFTPD time does not show correctly on our server. After writing TimesGMT off in proftpd.conf, and restart FTP server, the time is still displaying in GMT.
Here is a way to get around this problem: insert export TZ=":/etc/localtime" into /etc/init.d/proftpd and save it. In proftpd.conf insert TimesGMT off, then restart FTP serser. It works on our server (CentOS 5.5 with ProFTPD).
- 2013
- 2012
- 2011
- 2010
