Problem With Solutions

Something Different In Linux

Home » Archive by category 'Knowledge' (Page 2)

How to disabled the suhosin for the perticular domain search suhosin in php.ini file ============================= extension=”suhosin.so” ; Filtering Options suhosin.get.max_vars = 114096 suhosin.post.max_vars = 114096 ================================ and change it to ========================== ;extension=”suhosin.so” ; Filtering Options ;suhosin.get.max_vars = 114096 ;suhosin.post.max_vars = 114096 ==============================

Difference between Windows,LINUX and Macintosh

Posted by Rishikesh Vispute Categories: Knowledge

Firstly!! We are going to have a brief Idea about what is Windows,LINUX and Macs. —>>>1)What is Windows? * A) The Windows is a operating system.This allows people to manage files and run software programs on desktop and laptop computers. * The Windows operating system is developed and maintained by Microsoft, the company founded by  [ Read More ]

Disable Mod-Security only for the particular directories or files. If the server logs shows the error with id “ “] [Mon Oct 12 16:11:20 2009] [error] [client 121.15.245.215] ModSecurity: Access denied with code 400 (phase 2). Pattern match “^\\w+:/” at REQUEST_URI_RAW. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "26"] [id "960014"] [msg "Proxy access attempt"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/PROXY_ACCESS"]  [ Read More ]

Error: Browser shows  [an error occurred while processing this directive] ” and server logs shows the error ” unable to include “http://domain name /inc/listbox.php” in parsed file /home/username/public_html/index.shtml Solution : You need to check your coding if you have used ” <!–#include virtual=”http://domain name /inc/listbox.php” –> ” in index.shtml so the proper SSI include should  [ Read More ]

Fatal error: Call to undefined function: strripos() in

Posted by Rishikesh Vispute Categories: Knowledge, PHP

Error : Fatal error: Call to undefined function: strripos() in Solution : strripos() is a working on only php5 . So you need to switch you account to php5 installed server or if php4 and php5 is installed on the same server then add the folloging code in .htaccess file to switch to php5. AddHandler  [ Read More ]

How to enable SSI includes by using .htaccess

Posted by Rishikesh Vispute Categories: Knowledge

Including executable are no longer allowed by default Apache configuration. Includes NO-EXEC is now the default, SSI includes are now disabled by default. This is done to prevent server abuse / insure server security. We recommend using PHP coding wherever possible. If using cgi includes is ABSOLUTELY necessary you may enable the includes via :  [ Read More ]

exec used but not allowed in

Posted by Rishikesh Vispute Categories: Knowledge

Error: If server logs shows error “exec used but not allowed in /home/username/public_html/test.html ” Solution : You need to add the following code in .htaccess file and save it. Options +Includes +ExecCGI AddHandler cgi-script .cgi .pl Done

How to Upgrade from moodle 1.8 to 1.9

Posted by Rishikesh Vispute Categories: How to, Knowledge

Upgrade from moodle 1.8 to 1.9 (with Nwiki upgrade) A very quick how to to upgrade moodle 1.8 to moodle 1.9 (with Nwiki upgrade from 1.8 to 1.9): 1. Stop you moodle 1.8 (mantainence mode) 2. Copy your moodle BD (ispconfig is great for this) to a new one (here is dbmoodle19) 3. cp /home/public_html/moodle18  [ Read More ]

Upload files in correct ftp mode

Posted by Rishikesh Vispute Categories: Knowledge

Most of the time all the files is correct but it shows the internal server error then you need to upload files in the particular ftp mode. .cgi files upload in ASCII Mode .pl files upload in BINARY Mode .php files upload in BINARY Mode .jsp files upload in BINARY Mode

Redirect by using php code

Posted by Rishikesh Vispute Categories: Knowledge, PHP

How to redirect index.php page to another url by using php code. If you want to redirect your index.php page to another URL or page then add the following code in your index.php page. <?php header( ‘Location: http://www.domain.com/new_page.html’ ) ; ?> Note : Replace “http://www.domain.com/new_page.html” with exact URL on which you want to redirect you  [ Read More ]

Default IP table rules for cPanel server

Posted by Rishikesh Vispute Categories: Knowledge, Network

If server is linux server then you can add this default iptable rules for open some common port and secure some ports. # Generated by iptables-save v1.2.11 *raw : PREROUTING ACCEPT [29:2132] :OUTPUT ACCEPT [20:2224] COMMIT # Completed on Fri Feb 10 12:34:10 2006 # Generated by iptables-save v1.2.11 on Fri Feb 10 12:34:10 2006  [ Read More ]

rsync commands

Posted by Rishikesh Vispute Categories: Knowledge

1) If you want to migrate  “/home/test/public_html” directory  to  another server(destination ) by using rsync command then run following command on the source server so the public_html directory migrated  from source server to destination server (192.168.0.1 ) rsync -vrplogDtH -e “ssh -p 22″ /home/test/public_html root@192.168.0.1:/home/test/ Note : Replace “22″ to exact server port number and  [ Read More ]

How to use cgiemail?

Posted by Rishikesh Vispute Categories: Knowledge

How to use cgiemail ? If you want to use the cgiemail in your site then follow the simple steps. 1) Create one .txt file (result.txt) and add the following sample code and save this file. ================================= To: test@gmail.com Subject: questions three What is your name? [yourname] What is your quest? [quest] What is your  [ Read More ]

If you are getting this Warning: mkdir() [function.mkdir]: Permission denied in …. (path) then you need to set the 777 permission to all of the directories and files.

Roundcube not send emails

Posted by Rishikesh Vispute Categories: Knowledge

Error : When the click the send button, it starts to sending but nothing happens, the roundcube shows only the process state. Solution : Then you need to follows the steps If the server is cpanel server then open the file /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php and search the $rcmail_config['smtp_user'] = ‘%u’; and replace it with $rcmail_config['smtp_user'] = ‘  [ Read More ]

PHP Fatal error: Call to undefined function

Posted by Rishikesh Vispute Categories: Knowledge, PHP

Error : PHP Fatal error: Call to undefined function Solution : The server shows this warning because your script is not working on php4 version so you need to switch to php5 version for the domain who is facing the problem. If on the server both php4 and php5 installed then you can switch to  [ Read More ]

What Is SEO?

Posted by Rishikesh Vispute Categories: Knowledge

What Is SEO? Search engine optimization (SEO) is the art of getting a website to work optimally with search engines like Google, Yahoo, MSN etc. What is SEO (search engine optimization)? SEO is the things you do in order to optimize your page so that it gets picked up with high rankings in the search  [ Read More ]

Notice:Undefined variable: HTTP_POST_VARS in

Posted by Rishikesh Vispute Categories: Knowledge

If your server logs shows the error “Notice: Undefined variable: HTTP_POST_VARS in ” then Use $_POST  instead of  $HTTP_POST_VARS Or Add the following line at the top of your script put: $HTTP_POST_VARS = $_POST;

Unable to include potential exec

Posted by Rishikesh Vispute Categories: Knowledge

Solution [Mon March 13 12:11:27 2009] [error] [client XX.XX.XX.XX] unable to include potential exec “/cgi-bin/script.cgi” in parsed file “/public_html/file.html” Including executables are no longer allowed by default. IncludesNOEXEC is now the default, SSI includes are now disabled by default the Options -IncludesNoExec directive. This is due to server abuse. We recommend using PHP coding wherever  [ Read More ]

If you are not able to connect to ftp account with the correct login details and the cpanel server logs shows the error “Sorry, cleartext sessions are not accepted on this server. Please reconnect using SSL/TLS security mechanisms” then follow the steps The problem due to some ftp client not support the “TLS Encryption Support”  [ Read More ]

How to Redirect a Web Page Using a 301 Redirect

Posted by Rishikesh Vispute Categories: How to, Knowledge

How to Redirect a Web Page Using a 301 Redirect You’ve just edited or modified some pages of your web site and those pages have high search engine rankings that you don’t want to lose. How can you safely redirect web site traffic from your old pages to the new pages without losing your rankings?  [ Read More ]

Defination of webhosting tools

Posted by Rishikesh Vispute Categories: Knowledge

APACHE The Apache is a web server that parses types of HTML pages  and sends it back to you as a human readable web page.Apache is an open source Web server that is distributed free. Apache runs on Unix-based operating systems (including Linux and Solaris) and Windows 95/98/NT. CGI CGI means common gateway interface, it  [ Read More ]

Types of web hosting control panels

Posted by Rishikesh Vispute Categories: Knowledge

Web hosting Control Panel Types : The control panel is designed to simplify the management and administration of web sites.Control panel automates a large number of tasks that allow service providers to reduce operating costs and resources while at the same time increasing profitability, efficiency and customer satisfaction. Clients can control there sites and other  [ Read More ]

Increase your site download speed

Posted by Rishikesh Vispute Categories: Knowledge

Increase your site download speed Increase your website download speed by reducing the HTML code size, removing extra graphics and converting text images to text. Reduce website code size : Reduce your site code size by converting your site to CSS from table layout and making your HTML code validate. Remove extra graphics : Increase  [ Read More ]

How to Increase Website Speed..

Posted by Rishikesh Vispute Categories: Knowledge

How to Increase Website Speed

Which Is the Best Web Hosting Company?

Posted by Rishikesh Vispute Categories: Knowledge

Which Is the Best Web Hosting Company? Finding a reliable and quality web hosting service provider for small busines is a so much difficult task today for business owners and entrepreneurs. There are many hosting services providers who offers cheap web hostings for small business. In many cases various companies charges different high charges for  [ Read More ]

.htaccess rule

Posted by Rishikesh Vispute Categories: Knowledge

1. Creating a custom error page with .htaccess on a linux apache is a very simple task. Using you a text editor like notepad you create an .htaccess files. Custom error pages give your website an professional look and catch those visitors who reach your website following a back link. ErrorDocument 401 /error/401.php ErrorDocument 403  [ Read More ]

Optimized by SEO Ultimate