LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2012, 09:07 AM   #1
imran042
Member
 
Registered: Feb 2012
Posts: 35

Rep: Reputation: Disabled
configuring apache2 for form uploads to be seen at localhost


the default configuration document is in "/var/www/index.html.

the index.html file has a text,

"It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet"

my apache2 server is running, but if i want to look a simple perl form upload script on my browser at local host, then how do i do it?

because, i am unable to move my perl upload script in /var/www .
but, if i try to save the .pl file in /var/www/fileupload.pl from the commandline then, a message saying "write protected" displays.

how so i see my script in the local browser?

Last edited by imran042; 05-01-2012 at 09:10 AM.
 
Old 05-01-2012, 11:22 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,327

Rep: Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881
Quote:
Originally Posted by imran042 View Post
the default configuration document is in "/var/www/index.html.
the index.html file has a text,

"It works! This is the default web page for this server. The web server software is running but no content has been added, yet"

my apache2 server is running, but if i want to look a simple perl form upload script on my browser at local host, then how do i do it?

because, i am unable to move my perl upload script in /var/www. but, if i try to save the .pl file in /var/www/fileupload.pl from the commandline then, a message saying "write protected" displays. how so i see my script in the local browser?
Similar to your other thread, where you ask about this same question (although here, you provide more information).

You're getting that message, because the /var/www directory isn't owned by you, but apache and/or root. So, use sudo (or "su - root"), to get root privileges, then copy the file. Be sure to change it to be owned by the apache user. And I'm not sure what you're trying to actually ACCOMPLISH by 'looking at' a perl script via web browser. If you're trying to RUN that script, it needs to be in your cgi-bin directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 problem with uploads from IE using html form input type file miedward Programming 3 04-06-2010 02:24 PM
Apache2: Localhost works, but outside doesn't Navanax Linux - Server 17 08-27-2008 05:12 PM
localhost on apache2 radiodee1 Debian 7 12-06-2006 06:49 PM
mod_python: Handling Uploads from HTML Form nko Programming 0 04-12-2005 06:33 PM
[apache2] could not connect to host localhost LordFrancis Linux - Networking 1 09-30-2004 03:37 PM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration