IndianWebPortal.com

Something Different In Linux

Home » Archive by category 'Uncategorized'

Commonly used LINUX command

Posted by Rishikesh Vispute Categories: Uncategorized

How to display the 10th line of a file? head -10 filename | tail -1 How to remove the header from a file? sed -i ‘1 d’ filename How to remove the footer from a file? sed -i ‘$ d’ filename Write a command to find the length of a line in a file? The  [ Read More ]

MySQL server has gone away

Posted by Rishikesh Vispute Categories: Uncategorized

Error :MySQL server has gone away Solution: If you get MySQL server has gone away when using MySQL ODBC driver then you need to add the following variables into my.cnf file1 1) Open /etc/my.cnf file and add the following variable max_allowed_packet= 64M wait_timeout= 6000 2) Restart Mysql service /etc/init.d/mysqld restart  

daily mysql databases backup on cpanel server

Posted by Rishikesh Vispute Categories: cpanel, mysql, Uncategorized

Question: How to back up MySQL databases using cron jobs on cpanel server ? Ans: You can take the mysql backup of all databases for last 10 days and keep on the server.  You need to add the cron to create the daily mysql backup of all the databases. The backup is stored in the folder  [ Read More ]

restart Apache automatically when high load

Posted by Rishikesh Vispute Categories: Uncategorized

Question: How to set Cron to restart Apache automatically ? Ans: You can add the following cron to restart  Apache automatically when it was down for any reason or if the server load is 20. vi /var/spool/cron/root */2 * * * * /bin/sh /root/apache-load-checker.sh > /dev/null 2>&1 #!/bin/bash #You can set the Load limit as  [ 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 ]

How to install red5 on linux server

Posted by Rishikesh Vispute Categories: How to, Installation, Uncategorized

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 []  [ Read More ]

reset ssh port through WHM

Posted by Rishikesh Vispute Categories: cpanel, Uncategorized

If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps : Login to your WHM on a non secure port that is : 2086 for example : http://serverip:2086 And then browse the URL  [ Read More ]

http://localhost/removecookies”

Posted by Rishikesh Vispute Categories: Uncategorized

When any page shows blank page and redirected to the URL http://localhost/removecookies” Then the problem due the mod security check the server  logs and disable the mod security rules which is affected for your domain. If server logs not shows any error logs then completely disable the mod security for your domain.

view the content of .csr file

Posted by Rishikesh Vispute Categories: Uncategorized

If you want to check the .csr file content then use the following command to check the details of CSR. openssl req -text -noout -in host.csr Note: change the host.csr to original .csf file name.

How to install tomcat 6 on the linux server ? When you have installed tomcat by using Easy-Apache then  it installed Tomcat 5.5 and if you want to installed Tomcat 6.0 then you need to made some necessary changes on the server. 1) First install  Tomcat 5  by using Easy-Apache means java is also installed  [ Read More ]

Enable mssql support on Linux server

Posted by Rishikesh Vispute Categories: PHP, Uncategorized

How to enable mssql support on Linux server ? Ans : You need to first compile freetds and then compile PHP with freetds support. What is FreeTDS? FreeTDS is a free implementation of the TDS (Tabular Data Stream) protocol that is used by Sybase and Microsoft for their database products. It implements TDS 4.2, 5.0,  [ Read More ]

Error : Curl webservice CURLE_SSL_CACERT (60) Peer certificate cannot be authenticated with known CA certificates. Solution:  Add the following line in your file on which you have access the domain. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);Done

There was a problem importing the database. The following error had occured: 1071: Specified key was too long; max key length is 1000 bytes; http://forums.oscommerce.com/topic/331202-1071-specified-key-was-too-long-max-key-length-is-1000-bytes-create-table/

What is Web Hosting?

Posted by Rishikesh Vispute Categories: Uncategorized

What is Web Hosting? Web hosting is a service that allows organizations and individuals to post a website or web page on to the Internet. A web host, or web hosting service provider, is a business that provides the technologies and services needed for the website or webpage to be viewed in the Internet. Websites  [ Read More ]

find site information

Posted by Rishikesh Vispute Categories: Network, Uncategorized

How to find the domain name (DNS) information. http://network-tools.com or http://xwhois.com http://intodns.com/ http://centralops.net/co/ http://www.dnsstuff.com/ http://www.ipmango.com/megadns.php http://www.dnswatch.info

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

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

Set expiration for y

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

Warning: Parameter 1

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

domain pointing to e

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