but when i try to save my perl upload script using the extension /var/www/fileupload.pl from the command line, then a message appears that writing is protected
and also i cant dircctly place the file in that folder
Comment on Re^2: apache2 start up after installing
You don't have permissions to copy the file into this location:
sudo cp fileupload.pl /var/www/fileupload.pl
Since you're new to Ubuntu (Linux also?) and Apache, I'd suggest spending time learning the basics. I'm sure a web search will find you many Linux tutorials. The Apache documentation is worth reading also. I usually recommend Ovid's CGI Course to those learning CGI basics also. Tutorials has a Web Programming section.