configuring apache2 for form uploads to be seen at localhost
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.