Posts

Showing posts from March, 2015

ForbiddenYou don't have permission to access /cgi-bin/ on this server ubuntu

Image
1) sudo gedit /etc/apache2/sites-enabled/000-default.conf 2)add                   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin">     AllowOverride None     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch     Order allow,deny     Allow from all </Directory>      3) sudo service apache2 restart  4) sudo chmod 755 /usr/lib/cgi-bin/test.pl 5) Now, if we navigate to our domain name, followed by the CGI directory (/cgi-bin/), followed by our script name (test.pl), we should see the output of our script. Point your browser to: your_domain.com /cgi-bin/test.pl          

How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu

Image
easiest way is:step 1 ) sudo vim /etc/apache2/apache2.conf step 2) add ServerName localhost in the very end of the file. Note: You can use gedit instead of vim, if u have that. #worked for me :)

How to fix E: Could not get lock /var/lib/apt/lists/lock problem

if you get this line in terminal E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?" 1) type sudo rm -r /var/lib/dpkg/lock sudo apt-get update 2) if it is not work then first go to root and then type  rm -r /var/lib/dpkg/lock  apt-get update 3) if this command not work then type  sudo fuser -vki /var/lib/apt/lists/lock      

Apache won't start in XAMPP

Image
Just press Ctrl + Alt + T on your keyboard to open Terminal. When it opens, run the command(s) below: sudo /opt/lampp/lampp start  sudo /etc/init.d/apache2 stop sudo /opt/lampp/lampp start     then     

how to get html page by perl

#how to get html page by perl use strict; use warnings; use LWP::Simple; my $value ="http://bioinfoconcepts.blogspot.in/"; my $status = getstore($value, 'anop_singh_ranawat.html'); unless (is_success($status)) {   die "An error has occured! Status code: $status\n"; }

how to Install CPAN modules in ubuntu

Install CPAN modules into your local Perl library using CPAN By default, you need to have admin (root) privileges to install Perl modules - see the next section if you don't. Installation is straightforward if your machine has Internet access. It is assumed that you have the CPAN perl module installed (this is normally the case). The make utility must be available before using Bundle::CPAN. On CentOS 6.3 minimal you must run yum install make . Invoke the CPAN shell: # perl -MCPAN -e shell   If you run this for the first time it asks you some configuration questions. In most cases it works just fine if you tell it to "go figure it out yourself." Once configured you will see a cpan> shell prompt. The first thing you should do is to upgrade your CPAN: cpan> install Bundle::CPAN Once ready, type: cpan> reload cpan   Now it is time to install the additional modules you need. For example, to retrieve, configure and install the Date