IndianWebPortal.com

Something Different In Linux

Previous Next
  • upgrade mysql version on linux server

    You can upgrade your mysql version from 5.0 to 5.5 by using following steps 1. Enable remi repository for yum wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 2. Run mysqldump to export data out from MySQL 5.0 mysqldump -uroot -p --all-databases > mysqlbackup.sql 3. Run 'yum --enablerepo=remi install mysql mysql-server mysqlclient' 4. Run mysql_upgrade (part of ...

  • Install ConfigServer

    Install ConfigServer Security & Firewall rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Remove installation files: cd .. rm -Rfv csf/ csf.tgz Install ConfigServer Mail Manage rm -fv cmm.tgz wget http://www.configserver.com/free/cmm.tgz tar -xzf cmm.tgz cd cmm sh install.sh Remove installation files: cd .. rm -Rfv cmm/ cmm.tgz To uninstall: rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm/ Install ConfigServer Mail Queues rm -fv cmq.tgz wget http://www.configserver.com/free/cmq.tgz tar -xzf cmq.tgz cd cmq sh install.sh Remove installation ...

  • Custom php.ini not working on SuExec Enabled Server

    How to enable Custom php.ini  on SuExec Enabled Server ? Ans : Normally, on SuExec Enabled Server, you can create php.ini in your account to customize php settings for your account. If php.ini is created under an account with customize php setting and it doesn't work for you, then this is because ...

  • How to install red5 on linux server

    How to install red5 on linux server ? Ans : I have used following steps to install the red5 on linux server. root@server [] cd /etc/init.d/ root@server [] wget http://www.indianwebportal.com/downloads/red5 root@server [] chmod 755 red5 root@server [] yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel root@server [] cd /usr/src root@server [] rm -rf apache-ant-1.8.0-bin.tar.gz apache-ant-1.8.0 red5-0.8.0.tar.gz root@server [] wget http://pradeeps.in/apache-ant-1.8.0-bin.tar.gz root@server [] tar ...

  • Reset MySQL root Password

    If you have forget the mysql root password and you are not able to access your mysql service then you need to reset the password of mysql root user by using following steps Ans : 1)root@server [~] /etc/init.d/mysqld stop 2) Start to MySQL server without password: root@server [~] mysqld_safe --skip-grant-tables & 3) root@server [~] mysql After ...

How to Stop Spamming on cpanel server

Posted by Rishikesh Vispute Categories: cpanel, Email problems

Q. How to Stop Spamming on cpanel server ? Ans : There are number of steps but you must enable/disable some Tweaks on cpanel server. Setting in “Exim Configuration Manager” 1. Login to WHM control panel by using root user 2. Goto Main >> Service Configuration >> Exim Configuration Manager 3. Enable RBL filtering by  [ Read More ]

Error : You do not have sufficient permissions to access this page When try to activate the plugin in wordpress and then some time it shows the error “You do not have sufficient permissions to access this page” then you need to made some changes under that account. Solution : Open wp-config.php file  and Replace  [ Read More ]

Error : Apache error : Too many open files: could not open transfer ……..Unable to open logs Solutions: When apache is not started and the error log shows above error then you need to follow the steps 1) Open file /etc/init.d/httpd or /usr/sbin/apachectl Add `ulimit -n 65536` This is because of the low number of  [ Read More ]

upgrade mysql version on linux server

Posted by Rishikesh Vispute Categories: How to, mysql

You can upgrade your mysql version from 5.0 to 5.5 by using following steps 1. Enable remi repository for yum wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 2. Run mysqldump to export data out from MySQL 5.0 mysqldump -uroot -p –all-databases > mysqlbackup.sql 3. Run ‘yum –enablerepo=remi install mysql mysql-server mysqlclient’ 4. Run  [ Read More ]

Account modification aborted

Posted by Rishikesh Vispute Categories: cpanel, Error and solution

Error : Account modification aborted, there was a problem changing the user name. When you go to Account Functions >> Modify an Account and try to change the username of domain, sometimes you may get the following error.  There is currently a configuration error in the Apache configuration file. User name change aborted. Account modification  [ Read More ]

wordpress error Cheatin’ uh?

Posted by Rishikesh Vispute Categories: CMS, Wordpress

Error: When you try to  upload the image or logo from your theme or media library then wordpress shows the error “Cheatin’ uh?” Solution :  1) Open file media-upload.php vi   wp-admin/media-upload.php search line number 126 and replace the code From wp_die( __( ‘Cheatin’ uh?’ ) ); To // wp_die( __( ‘Cheatin’ uh?’ ) ); Save  [ Read More ]

Server Monitoring Scripts and commands

Posted by Rishikesh Vispute Categories: Basic Linux, cpanel, DDOS

Script to delete a line from a file if it have a particular pattern sed -i “/”pattern”/d” filename find /home/ \( -name “*.php” -o -name “*.html” -o -iname “*.htm” \) -exec grep -l “nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn” {} \; -exec sed -i “/”nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn”/d” {} \; To find the connections to HTTP netstat -pan | sort +4 | grep  [ Read More ]

password protect not working

Posted by Rishikesh Vispute Categories: Uncategorized

Problem : When wordpress is installed on main domain and you want to set the password to any directory which is under the public_html folder but when access it by using browser then the URL shows 404 error or not found error. Solution : You need to add the following code in .htaccess files in  [ Read More ]

Error : Cannot allocate memory: couldn’t create child process When you access your site and it shows the internal server error and server logs shows following error I get this error in my cpanel error log; [Sun Jun 19 04:03:02 2011] [error] [client (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/site/public_html/forum/index.php, referer: http://www.site.com/forum/index.php?topic=5930.0  [ Read More ]

auto delete old emails on CPanel

Posted by Rishikesh Vispute Categories: cpanel

How to auto delete old emails on CPanel ? Solution: You need to set the cron by using cpanel >> cronjob and add the following command to run in cron. /usr/bin/archivemail –quiet –delete –days 20 /home/{USER}/mail/inbox By using above command you can delete the 20 days old emails . Make sure you replace {USER} with  [ Read More ]

Install ConfigServer

Posted by Rishikesh Vispute Categories: How to, Installation

Install ConfigServer Security & Firewall rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Remove installation files: cd .. rm -Rfv csf/ csf.tgz Install ConfigServer Mail Manage rm -fv cmm.tgz wget http://www.configserver.com/free/cmm.tgz tar -xzf cmm.tgz cd cmm sh install.sh Remove installation files: cd .. rm -Rfv cmm/ cmm.tgz To uninstall: rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi  [ Read More ]

buagent could not be started

Posted by Rishikesh Vispute Categories: Error and solution

/etc/init.d/buagent start: buagent could not be started Error: # /etc/init.d/buagent start /etc/init.d/buagent start: buagent could not be started Solution : If you upgraded the kernel, you need to date the agent. 1)root@server [] r1soft-cki Then 2) service buagent restart. It should be working.

Custom php.ini not working on SuExec Enabled Server

Posted by Rishikesh Vispute Categories: cpanel, How to, PHP

How to enable Custom php.ini  on SuExec Enabled Server ? Ans : Normally, on SuExec Enabled Server, you can create php.ini in your account to customize php settings for your account. If php.ini is created under an account with customize php setting and it doesn’t work for you, then this is because override is disabled  [ Read More ]

yum problem + easyapache + cpanel

Posted by Rishikesh Vispute Categories: cpanel

Error : We have a server which seems to fail to start EasyApache. I get the following error : ======================================== !! The server’s system package manager, ’YUM’, failed. !! !! This is the command that failed: yum –exclude=kernel* -y install aspell aspell-devel gettext automake19 libstdc++.x86_64 libpng-devel readline-devel openssl libpng-dev zlib-devel autoconf261 libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch libltdl3-devel libltdl libopenssl0.9.7-static-devel readline-dev libtool-ltdl-devel sed libXpm-devel libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel pspell-devel libstdc++-devel.x64_64 xorg-x11-devel libtool-ltdl libssl-dev bzip2-devel pam-devel libopenssl0-devel zlib1-devel expat-devel pspell libopenssl0-dev gcc-c++ expat glibc-devel zlib bison libjpeg-devel libtool-libltdl-devel snmp-devel libtool openssl-dev libopenssl0 libz-devel bzip2-libs libjpeg-dev pam-dev net-snmp-devel fileutils libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libstdc++-dev.x86_64 libX11-devel gd net-snmp cpp xorg-x11-dev gcc ssl-dev lex autoconf !! !! Since EasyApache was unable to resolve it automatically you should: 1) Manually run the failed YUM command (shown above) via SSH 2) See if your particular error is addressed at http://www.cpanel.net/support/could_not_ensurepkgs.htm 3) Resolve the YUM problem manually 4) Re-run EasyApache !! !! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !! !! Restoring original working apache !! !! Executing ’/scripts/initsslhttpd’ !! !! Restarting ’httpd’ … !! !! ’httpd’ restart complete. !! Building global cache for cpanel…Done !! Executing ’/scripts/initfpsuexec’ !! !! Executing ’/scripts/initsslhttpd’ !! !! Executing ’/scripts/update_apachectl’ !! Compiling report… Sending report (73479 bytes)… ======================================== Solution : This error due the update openssl on the server  [ Read More ]

How to find out the reseller name with domains? Ans : If you want to list all cPanel accounts under a specific reseller, then you can use the below simple shell script. 1) Crete the file reseller.sh and add the following code. vi /home/reseller.sh ========================================================== #!/bin/bash usage() { echo “Example : $0 domain.com or username”  [ Read More ]

wordpress permalink problem in windows server

Posted by Rishikesh Vispute Categories: Wordpress

Question : wordpress permalink problem in windows server Ans: If you are using IIS 7 and have admin rights on your server, you can use Microsoft’s URL Rewrite Module instead. Though not completely compatible with mod_rewrite, it does support WordPress’s pretty permalinks. Once installed, open the web.config file in the WordPress folder and add the following rule to the system.webServer element    [ Read More ]

Popular Posts

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

domain pointing to e

If you domain uses external MX record and it is ...

Set expiration for y

If you want to set the expiration to your site ...

redirect all URLs to

If you want to redirect all the URLs  from one ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...