Archive for July 2010

How to install svn on Linux server

Some times SVN(Subversion) is needed to install some applications such as Red5.
Refer the below steps to install SVN (SubVersion) on a Linux Server.

[email protected][#] yum install subversion

It may through below errors :

[email protected][#] yum install subversion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.team-cymru.org
* base: dist1.800hosting.com
* extras: mirror.5ninesolutions.com
* updates: mirror.team-cymru.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Processing Dependency: neon >= 0.25.5-6.el5 for package: subversion
–> Processing Dependency: libneon.so.25 for package: subversion
–> Processing Dependency: libapr-1.so.0 for package: subversion
–> Processing Dependency: libaprutil-1.so.0 for package: subversion
–> Running transaction check
—> Package apr.i386 0:1.2.7-11.el5_3.1 set to be updated
—> Package apr-util.i386 0:1.2.7-7.el5_3.2 set to be updated
—> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated
—> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
–> Processing Dependency: perl(URI) >= 1.17 for package: subversion
–> Finished Dependency Resolution
subversion-1.4.2-4.el5_3.1.i386 from base has depsolving problems
–> Missing Dependency: perl(URI) >= 1.17 is needed by package
subversion-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package
subversion-1.4.2-4.el5_3.1.i386 (base)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems
package-cleanup –dupes
rpm -Va –nofiles –nodigest
The program package-cleanup is found in the yum-utils package.

Solution :

Just remove perl* from /etc/yum.conf
it may look something like this :

[main]
exclude=apache* bind-chroot courier* dovecot* exim* httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn’t honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Just remove that perl* and then try to run this command

[email protected][#] yum install subversion

That’s all you are done.

Note : Don’t forget to add perl* once you install subversion.

ALERT – script tried to increase memory_limit

If you are getting the above error in the apache error logs then it means the php is complied with “suhosin” on the sever.
To resolve the issue open the php.ini and remove the below lines :

extension = “suhosin.so”
suhosin.post.max_vars = 2048
suhosin.memory_limit = 32M
suhosin.session.encrypt = Off
suhosin.log.sapi = 511
suhosin.get.max_value_length = 2048

This will disable the suhosin extension .

That’s all you are done.

Entropy Search showing no results

If you are facing any problem regarding Entropy Search not returning the expected results then refer the below steps :

Ask your hosting provider  to add the php extensions to the list of searchable files in :

[email protected][#] vi /usr/local/cpanel/bin/makeindex

then seach for the keyword @EXTS=

replace : my @EXTS= qw(txt html shtml htm); with my @EXTS=qw(“php”,”php3″,”txt”,”html”,”shtml”,”htm”);

save and quit.

Then from CPanel rebuild the Search index from CPanel >> Software/Services >> CGI Center >> Rebuild Search Index

That’s all you are done.

Note : The file should be chattr +i to prevent the cpanel updates to replace it , remove chattr before making the changes.