Problem With Solutions

Something Different In Linux

Home » 2010 » March

If you want to set the expiration to your site   means after some date or year your site shows custom error on the page then you can add following code in index page below the “<?php” code  and set the date as per your request. ============================================ $exp_date = “2010-04-31″; $todays_date = date(“Y-m-d”); $today =  [ Read More ]

Error : When accessing the page and it shows the “Internal server errror” and the server logs shows the folloging error /home/username/public_html/rubytest2.htm:6: /usr/local/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.7) doesn’t match executable version (1.8.6) (RuntimeError) [Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228] Premature end of script headers: /home/username/public_html/cgi-bin/eruby.cgi [Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228]  [ Read More ]

You can get MPlayer via Subversion.  Issue the following command to get the latest sources: root@server[] cd /usr/local/src svn checkout svn://svn.mplayerhq.hu/mplayer/trunk  mplayer root@server[] svn update root@server[] cd mplayer root@server[]./configure root@server[] make root@server[] make install Done You can check the path of mplayer by using the command root@server [ ] which mplayer /usr/local/bin/mplayer Done

cgi_bin shows the internal server error

Posted by Rishikesh Vispute Categories: Error and solution, htaccess

Error:   500 internal server error is shown when access URL http://domain.com/cgi-bin/index.php Solution : Add the following Handler in httpd.conf file or .htaccess file. AddHandler application/x-httpd-php .php Done

Remove extensions from url

Posted by Rishikesh Vispute Categories: htaccess, Knowledge

How to remove the  .php extension from the URL  ? Ans : Add the following code in .htaccess file ====================== Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] ====================== How to remove the  .html extension from the URL  ? Ans : Add the following code in .htaccess file ====================== Options  [ Read More ]

mysqldump: Got error

Posted by Rishikesh Vispute Categories: mysql

Error : When you try to run the mysqldump command to make a backup of database then encounter the following error-exception: mysqldump databasename  > databasename.sql mysqldump: Got error: 1016: Can’t open file: ‘./databasename/wp_142_term_taxonomy.frm’ (errno: 24) when using LOCK TABLES Solution: Open the file /etc/my.cnf and  add the following line and restart the mysql service on  [ 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 : Are you getting this wordpress error whilst trying to automatically update wordpress or a plugin Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature Solution : The error due the disk space is full of your account.  You need to upgrade your hosting plan or deleted some unwanted  [ Read More ]

Optimized by SEO Ultimate