Ubuntu :: Setup Mod_perl With Scripts And Html Files In The Same Directory?
Apr 27, 2011
I have mod_cgi working perfectly. However, it turns out there are features of mod_perl that I'm trying to use. I have followed all the documentation I can find on using Ubuntu's mod_perl install with Apache2. There seems to be some type of problems with the mod_perl's documentation, as it doesn't work as it's defined. However, I found a modification to make it work, but only is designated directories. If I tried to use in a directory with my other HTML files the regular HTML files will fail.
Using these steps (but using apt-get's install rather than compiling the tar ball). I did as follows:
placed this in the httpd.conf file (which was basically the same as "a2enmod perl".
Alright this works fine to pull the directories/files in the /var/Store/2010/ directory.
But when you click on of the links it tries to http://'serveradress'/$filename
note that $filename in the url is the filename clicked on so the php script is working. but I need it to change to that dir so that you can see the folder/files there and work your way up/down/side wise thru the folder tree to where you need to go. Not try and pop it as a direct url which doesn't work.
With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?
I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.
I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).
When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:
Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.
Error 403 192.168.1.100 Mon Jun 13 23:43:29 2011 Apache/2.2.17 (Linux/SUSE)
I'm building a file server using Ubuntu. I want to setup an HTML based file upload/download system where I can create accounts for a few users and allow each user access certain folders. So that the user would open it like a webpage using a web browser and then uploads and downloads files, not needing special setup for the computer. Is there a ready made solution for that purpose? Will I have to code it?
I'm having problems with emails containing HTML content. When Google downloads the email messages via POP3 from my squirrelmail server, the message does not display using HTML. I'm not sure if this is Google's fault or Squirrelmail's fault, but I've never had problems before on other servers running the same script and using squirrelmail. If I login to squirrelmail, I have the option to download the email message as an attachment. The attachment, if opened by my local browser, shows up as HTML content, and it is properly formatted. However, I'm using Google to download my emails and file them under my Gmail account. After Gmail downloads the messages, it shows up like this:
From To admin@domainRemoved.com Date Sat, Jul 30, 2011 at 6:07 PM Subject Pending Registration
<p><b> After registering your client via your server, please visit the following URL to send them confirmation: </b></p>
I really need it to show up properly once Gmail downloads the messages, as it takes a long time to login to Squirrel mail and download each message as an attachment. My PHP Code Headers Look like this: $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; $headers .= "From: $uname <$email>";
Someone suggested that I remove the from my script. I did, and now the email shows a from sender as www-data email@example.com. Before, the from field showed up as empty. However, my PHP script is designed to change the sender's information to the clients that contact me. Thus, if customer A contacts me, the email should be from customer A <firstname.lastname@example.org>. However, it's not being changed by the PHP script. It works on every other server but mine. I think my postfix configuration isn't setup properly? What needs to be configured on it?
Installing ajaxplorer on ubuntu 10.0.4. I am new to linux. Cannot find the html root directory where installation files to be put. How to create a symbolic link from it's home (root where ajaxplorer files unzipped) to a place where the web front-end is visible and available to the HTTP server.
using this parameters the main html page and all the images will download in the same folder. Instead i would like to have the html page in a folder and all the images,css ecc in a subdirectory for example i want to have:
I recently upgraded from FC12 to FC14 due to errors using yum and rpm. I keep running into mirror sites with RPM files that don't install. These site have what appear to be valid RPM files, but if I use wget to retrieve the file and run "file" on it, it turns out to be an HTML file. I understand the fact that if a file is corrupted, it won't install, but I can open these "RPM" files using Mozilla after changing the extension from RPM to HTML. When I open the new HTML file, I'm prompted by the browser to open or save the RPM file. If I save the RPM file pointed to by the HTML file, I can download and install it using rpm -ivvh unless a dependency check fails. how does anyone install using yum if the package is an HTML file with an RPM extension. Here is a link as an example:
If I use wget on this file and then run "file" on it, here is the output:
file openoffice.org-calc-core-3.3.0-20.2.fc14.i686.rpm openoffice.org-calc-core-3.3.0-20.2.fc14.i686.rpm: HTML document text
If I change the extension of this file to HTML and open it with my browser, I am prompted to download the RPM file which turns out to be a true RPM v3.0 file. Is anyone else having this problem or can anyone point me in the right direction to download the correct RPM file. I am running behind a proxy server and have installed cntlm, configured wgetrc, yum.conf and .curlrc to use the proxy server. I am able to download and install most of the simpler applications where the dependencies are either installed or non required.
I would like to set-up a pretty fast a running apache. I would like to use him so to launch a pretty small web site of 10 static html pages. At this time there is no security concerns (even though I want to do it right) , because the computer has not even ethernet cable. I have some experience, 8 years ago I Was setting up virtual hosts in fedora, so this process is not a blackbox for me.
I am having a time at trying to get a simple FTP setup to my Var/www/html folder for my canned Joomla website. I can log in anon with no write permissions, but it will not log in using any users I have setup on the server. I've googled a bunch, but nothing to correct my 530 authentication failure when I try to log in as one of my user accounts for the server.
I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.
What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.
Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter.
There are millions of files in many directories. Wherenver i try rm * or find or use xargs, they say 'argument list too long' and exit. How can i deleted files in a directory with so many files without deleting the directory itself.
I'm trying to set up some basic websites on an Apache 2 server running on my Linux box. At the moment, I have some really basic html files that I want to load into the /var/www directory. However, for whatever reason, I cannot save my html files. First, I thought it was because I didn't have permission on my account, so I switched to localadmin (i don't know if all Linux distros come with a localadmin account, but i know localadmin has "higher" permissions than, but less that root, of course). Even as localadmin, I could not save my html files!
I just downloaded libgtk2.0-doc at the gtkmm docs to help me with some programming. I've found where the libgtk2.0 documents are (/usr/share/gtk-doc/html) and I'm not for sure where the gtkmm docs are.
My question is: what is an easy way to view all of these HTML files? I know on Ruby you can run gem-server and you can see all of your RDocs from localhost on your browser. Is there an equivalent to that on Ubuntu for gtk-doc?
I am running Ubuntu 10.10 64 bit to do testing for a web site. I have successfully added a .htaccess file to the production site to process .html files as PHP files, but cannot get my localhost to process the files the same way.
Addition to apache2.config:
HTML Code: <Directory "/home/*/public_html/*"> AllowOverride All Order Deny,Allow
i am having a very weird problem with one of my ubuntu shared maps (/home/marc/shared).I am using VMware. Windows 7 host. Ubuntu 9.10 Guest.By right clicking the shared folder (/home/marc/shared) and selecting "Sharing options" i have installed the samba software needed. The installation went fine and samba seems all good.The folder should have read write access.When using windows 7 to browse the network the shared ubuntu folder appears nicely. I use my root credentials to login wich works nicely too.
Now the following strange thing happens:When i create a file e.g. test.php, i can edit it delete it. Actually i can do whatever i want.When i create a file e.g. test.html (mind the .html extension), for some reason i can read it, delete it, but not edit it! Windows gives me somekind of message like "Please check whether if this file is opened by another program".How on earth is this possible? I never opened or used the .html file in another application so i guess it has something to do with write access credentials. Which is weird since i am able to delete the file?
I install a nautilus plug-in which in turn installed the elinks browser and now all of my .html files are opening in elinks instead of firefox so how do I get .htm/.html and other web type files to open in firefox instead of elinks.
I also tried removing elinks from my system but then the files just open in gedit so again how do I associate .html (and other web files) with firefox.
BTW firefox is already set as my default browser in System > Prefs > Prefered Applications > Web Browser
Code: include virtual="test.txt" I have tried following the advice in this thread http://ubuntuforums.org/showthread.php?t=1510098 but it makes no difference. The file is there, but the line is delivered to the browser as-is. Using Lucid and a new install of apache 2.2 from the repository.
I created a local user acount and tested FTP. This allows me to post files to this directory using filezilla. I then created a webftpaccount and set the home directory to /var/www/html. Here are the permission to this directory using ls -l drwxrwsr-x 6 webftpaccount webftpaccount 4096 Nov 23 10:32 htmlhere are the permission on the sub directories
drwxrwsr-x 2 webftpaccount ftp 4096 Nov 14 07:37 myfinanceguard drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:37 mylawguard drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:36 xpiinc
I can log into the webftpaccount using filezilla client and it lists all the directories.It will not allow me to write a file into the html directory or any of the sub directories.Can someone help me set appropriate permissions on these directories so that I can get this working? I need to get FTP working so I set up dreamwaever FTP tlich and maintain sites.
Few months ago I'd got problem with Apache on my server. Some requests required few gigabytes of memory, much more than was avaliable. I've set ulimit -v XXX and this fixed problem for single request.
I still have got problem with multiples requests. I'm using mod perl, which runs few processes for requests, we can assume, that there is one process per request. ulimit cannot handle this, because it can only limit virtual memory per process, not for a group of processes.
It does not seem to be finding perl but I do nt know why or what to do about it? could this be the problem? APACI_ARGS='--prefix=/usr/local/httpd_perl' I do not have the slightest ideal what that means or if I need it.
I'm having a weird problem while uploading a file using a standard html form in Firefox 3.6.8(No extensions, except for the preloaded ones : Ubuntu Firefox modifications 0.9Rc2, mouse gesture redox 3.0.2 ). Anytime I try to upload a file whether on my localhost or at a website that offers a form with an input file, it fails. I'm just using test files, like small images. I've reinstalled my firefox, because I got this problem since 9.10 and now that I've upgraded to Lucid Lynx, I still have this issue. That's why I decided to do a fresh re-install using the same package I've downloaded previously when I did the ugprade. However, I still have the same result, the file never uploads to the server.
This happens when I use a simple html form with enctype="multipart/form-data". Though, when I use any other browser, like chrome, chromium, opera they just work fine. At my localhost, this is my code in one page, if you want to take a look, but as I say even with other websites the problem is happening too. Btw, the temp folders have written permissions (777)