Problem With Solutions

Something Different In Linux

Home » 2010 » April

How to install imagick on linux server ? Solution : ================ cd /usr/local/src wget http://pecl.php.net/get/imagick-2.2.0.tgz tar -zxvf imagick-2.2.0.tgz cd imagick-2.2.0 phpize ./configure make make install ================ Done

reset mysql password in plesk

Posted by Rishikesh Vispute Categories: mysql, Plesk

Error :  ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES) Solution : To find password for user admin, run [root@server22 ~]# cat /etc/psa/.psa.shadow FfRBehWy [root@server22 ~]# To login to MySQL mysql -u admin -pFfRBehWy For example [root@server22 ~]# mysql -u admin -pFfRBehWy Welcome to the MySQL monitor. Commands end with ; or  [ Read More ]

Error : … cannot restore segment prot after reloc: Permission denied Solution : This problem is most probably caused by the security extension SeLinux.  I am sure that the “SeLinux” is enable on the server. You need to disable the SeLinux on the server. By Default SELinux is set to “enforcing” in CentOS on boot,  [ Read More ]

start/stop tomcat in cpanel server

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Tomcat

How to start/stop tomcat by using  ” /etc/init.d/tomcat” command. Ans : 1) Check  linux server  run level by using following command who -r If  runlevel is 3 then create the file vi /etc/rc.d/init.d/tomcat and add the following code ==================================== #!/bin/sh JAVA_HOME=/usr/local/jdk; export JAVA_HOME TOMCAT_HOME=/usr/local/jakarta/tomcat; export TOMCAT_HOME $TOMCAT_HOME/bin/catalina.sh $* ==================================== Save the file and then change  [ Read More ]

How to install RvSiteBuilder on cpanel server

Posted by Rishikesh Vispute Categories: Installation

If you want to install Rvsite builder on cpanel server then use the following simple steps. cd /usr/local/cpanel/whostmgr/docroot/cgi/ rm -f rvsitebuilderinstaller.tar wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar tar -xvf rvsitebuilderinstaller.tar chmod 755 addon_rvsitebuilder.cgi Login to WHM as root, you will find RVSiteBuilder Installer menu under the Plugins Section. Click RVSiteBuilder Installer to begin the installation process. You will be  [ Read More ]

Some common script

Posted by Rishikesh Vispute Categories: Shell Programming and Scripting

1 ) Script to change server wide ownership for all cpanel users. ==================== #!/bin/bash cd /var/cpanel/users for user in * do chown -Rv $user.$mail /home/$user/etc chown -v $user.$nobody /home/$user/public_html chown -Rv $user.$user /home/$user done ====================

Custom 404 page in joomla

Posted by Rishikesh Vispute Categories: Joomla

How to set the custom 404 page in joomla? or Change default “Joomla 404 component not found” page Ans : Create 404.shtml file under the document root then open the error.php file vi   /home/username/public_html/templates/system/error.php then add the following code below the line  “defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );” ======================================= if (($this->error->code) == ’404′)  [ Read More ]

Page optimized by WP Minify WordPress Plugin

Optimized by SEO Ultimate