How to enable Perl Script in UserDir?
Can someone tell me how to enable perl script to be run from user directories in Apache2?
My userdir.conf is as follows: Code:
<IfModule mod_userdir.c> When trying to execute a perl script from my public_html director the log reads: Code:
Options ExecCGI is off in this directory: Thanks in advance for any suggestions or comments. -- L. James -- L. D. James ljames@apollo3.com www.apollo3.com/~ljames |
The easiest way is to add a .htaccess file to the directory concerned containing :
Code:
Options +ExecCGI Remember to restart apache after making changes to the main config files. This is not necessary for .htaccess files. |
Quote:
I added an .htaccess file to the directory with the following entry: Code:
Options +ExecCGI There might be something before the configuration gets to the userdir.conf file. I tested other options in the userdir.conf to make changes. Not of them took effect such as turning on Indexes and turning it off. I also tested to see was the userdir.conf file actually being parsed. I did this by purposely misspelling a word. It's being parsed because the server won't load if the userdir.conf syntax is incorrect. So, something before or after the loading of the userdir.conf is preventing the userdir.conf configuration from being effective. Thanks for the time and any other ideas. By the way, I've being manually configuring web servers for a long time. I'm sure I can eliminate Ubuntu's nice configuration arrangement and make one big httpd.conf file that will work. But I'm trying to take advantage of this intended convenient design. Edit: By the way, most of the other modules have two files in the mods-available area, a *.conf and a *.load. I have just one perl.load module which I used the a2enmod to enable. Is there a perl.conf file that's missing and possible defaulting to preventing ExecCGI from the /home or the public_html directories? -- L. James -- L. D. James ljames@apollo3.com www.apollo3.com/~ljames |
Hi,
Ditch the Limit directives and use Allow to see if it actually works: Code:
<IfModule mod_userdir.c> Regards |
Quote:
https://help.ubuntu.com/8.04/serverguide/C/httpd.html Quote:
http://library.linode.com/web-server...10.10-maverick Quote:
Again, no changes I make to the "userdir.conf" file makes any difference unless I either remove it with a2dismod or type a syntax error. If I remove it the ~userdir isn't available for any normal html files. If I type a syntax error Apache2 won't load. If I do anything else, it retains the defaults no matter how I configure the userdir.conf file. So it appears that something else is affecting this behavior. I'm reviewing the apparmor application which I'm not familiar with. Do you know how to check what it's doing or how to temporary disable it to see if it's the culprit? The jury is still out on this one. Thank! -- L. James -- L. D. James ljames@apollo3.com www.apollo3.com/~ljames |
Ok guys, I got it to working. Thanks, bathory, thanks, smoker. Your input helped me to feel more certain that I was missing something very simple and that there wasn't much more to the configuration than what was in the manuals I had read. I revisited each step and it appears the virtual host I was using for my browser wasn't the one that the server was choosing as the default.
I have a number of virtual host setup. When I accessed the userdir from a different host name it worked. ( http://hera5.apollo3.com , http://newhera5.apollo3.com ). By the way the hera5.apollo3.com is the one in the "default" (00default) file, so I was a bit thrown off by working solely with that one for the preceding 8 hours before posting my query. If anyone has a similar problem I'll organize the resolution clearer if my quick reference isn't making the best sense. Thanks again for the input. Your response made it clear that there wasn't something extremely complex that had to be addressed and it was just as simple as adding the Options directive as mentioned in the manual. This simplicity is most likely the reason I couldn't turn anything up in my many Google searches... it just works! -- L. James -- L. D. James ljames@apollo3.com www.apollo3.com/~ljames |
All times are GMT -5. The time now is 06:54 AM. |