Can't execute cgi scripts outside the default

I had this working fine on my old imac.
On my new mac (Running Latest Lion)...
I edited /etc/apache2/httpd.conf
Updated
User wtfuser
Group staff
Updated
DocumentRoot "/Users/wtfuser/Sites"
Updated:
# This should be changed to whatever you set DocumentRoot to.
<Directory "/Users/wtfuser/Sites">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks MultiViews ExecCGI
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
</Directory>
I can execute cgi scripts if they are placed in /Library/Webserver/CGI-Executables
But if I put a test.cgi file inside /Users/wtfuser/Sites/test.cgi
I get permission denied and errors:
[Wed May 02 22:38:45 2012] [error] [client ::1] Options ExecCGI is off in this directory: /Users/wtfuser/Sites/sandbox/test.cgi
[Wed May 02 22:38:45 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
[Wed May 02 22:40:07 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
[Wed May 02 22:40:14 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
[Wed May 02 22:40:24 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
[Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
[Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
Any help is appreciated

I will send an update.
I changed this line
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Users/wtfuser/Sites/$1"
This allowed me to successfully change the location of cgi scripts to a more convenient location, or simply because I wanted to do it! Just because!
It seems like the AddHandler, and the ExecCGI isn't working. This should allow me to run .cgi files from anywhere, regardless of the script alias.
So I'm open to suggestions as to why this isn't working.  FYI. I copied my httpd.conf file from my old imac running lion onto my new imac, and it still didn't work. But it works as expected on my old imac.
Confused. But at least I have a work-around and I know the httpd.conf file I'm modifying is the right one, etc...
ANd what in gods name is that crap with the favicon.ico?
This is a brand new out of the box imac, or so I thought. Is this normal??

Similar Messages

  • Error: Executing OWB Scripts Outside the OWB Tool

    We aim to extract OWB scripts (ddls, pl/sql, etc) and run them outside of the OWB tool in Beta and Production.
    Thus far, we’re able to execute ddls and compile OWB generated pl/sql procedures. We’re encountering errors on all attempts to execute the pl/sql code outside of OWB.
    Package created.
    Package body created.
    SQL> execute RECORDED_MEDIA_MAP;
    BEGIN RECORDED_MEDIA_MAP; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00221: 'RECORDED_MEDIA_MAP' is not a procedure or is undefined
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Based on previous discussions with Oracle Sales Rep., we were under the impression that this could be done.
    Can OWB generated pl/sql execute outside of the tool? If so, what are the steps?
    Thanks,
    Carol-Ann

    OWB generates mapping as package of procedures. This package has the only external procedure/function (depend on OWB version: 9.2.0.4 - function, prev. releases - procedure).
    So, mapping that you have deployed could be executed by the following code (as for 9.2.0.4 version of OWB):
    DECLARE
    l_res NUMBER;
    l_env WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    BEGIN
    l_res := MAP_PACKAGE.MAIN(l_env);
    END;

  • I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Help please

    I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?

    In Lion the Finder folder is now invisible.  To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    For opening your domain file in Lion for the first time or to switch between multiple domain files  Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
    Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    OT

  • "cannot execute CGI script " error

    Greetings.
    I am trying to setup a Sun One version 6.1 server. When I try to run a simple cgi script, with a .pl suffix, I get:
    "cannot execute CGI script "
    Is there anything in particular I should look for in resolving hte problem ?
    Thanks.
    alan

    One thing I'd like to mention is this document:
    Document ID: 75347
    Title: Sun[TM] ONE WebServer 6 - cannot execute CGI script - Permission denied
    which states:
    case 2: The value for the chroot is NOT set and NO rights are granted
    for cgi's to execute anywhere.
    <PROPERTY name="chroot" value=""/>
    Note that the value of "value=" above will differ from your setup but that
    the location of the line within the server.xml file should be easily
    identifiable by the formatting described above.
    To quickly identify a fix, grant permissions from the root level by
    modifying the line to look thus:
    <PROPERTY name="chroot" value=""/>
    The problem and fix look to be the same. Any idea what the fix should look like ?
    Thanks.
    alan

  • I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    Adobe Reader for iOS doesn't set the default email address when you email a PDF.
    It's found in the Settings app:
    Settings > Mail, Contacts, Calendars > Mail > Default Account

  • Can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.

    Hi,
    I can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.  I can access CRM with same user id and password from our office inside the network.  I can get
    the page to give login details once I have login details I got below error. Please help me to solve this issue.  It was working before.
    Access denied You do not have sufficient access rights or privileges to perform this action. 
    Regards,
    Noushad
    [email protected]

    On Premise system Configured with AD FS server for claims-based authentication you need to update your host file with server url to access it from outside office network.
    Refer
    this on how to update host file.
    Regards, Saad

  • [svn:bz-trunk] 17772: Update the url in the tests to use a relative path instead of the default localhost : 8400 so that the tests can pass on appservers other than the default Tomcat .

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • If i bought an Iphone 6 from usa (contract free,T-mobile) can i use in srilanka (outside the usa) ? and to activate it should i have t-mobile sim?

    if i bought an Iphone 6 from usa (contract free,T-mobile) can i use in srilanka (outside the usa) ?
    and to activate it should i have t-mobile sim ?

    As Ethmoid says, it is still a CDMA phone as I told you earlier, and it will not work with t-mobile. Even if Sprint unlocked the phone, it would only unlock the GSM side for international use. They will not unlock the GSM side for domestic use in the US.

  • Can one publish iBook textbooks outside the U.S.?

    Can one publish iBook textbooks outside the U.S.?

    There is currently only a "Textbooks" category in the iBookstore in the US.
    You CAN sell your .ibooks file in other countries by uploading it to alternate categories.
    https://discussions.apple.com/message/18802771

  • Error 1502: A script has executed for longer than the default timeout period of X seconds.

    Hi,
    I have a swf that i can´t change (i don´t own the code and it´s copyrighted). In some cases, I´m getting error 1502, after 30 seconds executing the file.
    Is there a way to change or disable the default timeout period? Remember that i can´t edit the .fla...
    Thanks in advance!

    you can load that swf into another swf and adjust the timeout duration in the main swf.

  • Cannot execute CGI script in WL5.1 on Windows

    Hi
    when i execute a cgi script on WL5.1 on Windows NT machine, i get the
    following error :
    <ServletContext-General> cgi-bin: Failed to exec CGI script:myscript.pl
    The URL i use to call this cgi script is :
    http://localhost:7001/cgi-bin/myscript.pl
    I have added the following lines to weblogic.cmd file to allow for cgi
    support :
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=d:/weblogic/myserver/cgi-bin,\
    *.pl=D:\ActivePerl\Perl\bin\perl5.6.1.exe
    Can anyone help me with this ?
    Thanks

    Just a thought, did you try using forward slashes in the *.pl line?
    JSB wrote:
    Hi
    when i execute a cgi script on WL5.1 on Windows NT machine, i get the
    following error :
    <ServletContext-General> cgi-bin: Failed to exec CGI script:myscript.pl
    The URL i use to call this cgi script is :
    http://localhost:7001/cgi-bin/myscript.pl
    I have added the following lines to weblogic.cmd file to allow for cgi
    support :
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=d:/weblogic/myserver/cgi-bin,\
    *.pl=D:\ActivePerl\Perl\bin\perl5.6.1.exe
    Can anyone help me with this ?
    Thanks

  • How can i execute vb scripts in java program

    hi
    how can i execute any batch files or any other exe files (vb scripts) from java programs
    thanks

    Hi,
    You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    /Kaj

  • How can I execute a script before connection?.

    Hi ,
    I want to execute a script before retrieving the data.How can I do this?.
    Thanks...

    When you say create a command line, what exactly are you referring to? I assume you have a logical schema mapped to the ebs instance you want to run the fnd_global function in (the same one you will have reverse engineered the models from etc), just set that as the schema on the step parameters and ODI will connect through for you as a SQL session.
    Technology set to Oracle ?
    What does the error actually say in the operator log?
    ETA : might be worth checking a few of these links as the refer to EBS with ODI : Oracle EBS and ODI
    Some of the pre-shipped KM's must do something similar to what you are trying to achieve for the apps security.

  • Can you place keyword headings outside the left margin without resorting to using text boxes?

    I want to place different keyword headings outside the margins of my document. Is there a way I can do this without resorting to textboxes?

    Hi Eli,
    You cannot place text outside the document margins without placing that text into a shape or a text box. Objects, including text boxes and the text they contain, may be placed outside the margins.
    Jerry's solution involves moving the left document margin closer to the edge of the table. As you've seen, doing so also adds cmplications to managing text behaviour on the left side of the page.
    Here's a variation on Jerry's suggestion that may be easier to manage:
    In the Document Inspector, set the left margin to the position at which you want the keyword headings to begin. (0.5")
    In the Layout Inspector, set the left margin to make the document margin + this layout margin equal to the position you want for the 'regular' margin fo the body of your document. (0.5" to give the default 1" body margin).
    Assuming there is text before the first Keywordheading:
    Click immediately after that text, press return to insert a paragraph break, then go Insert > Layout Break to insert a Layout break.
    Type the single 'word' "Keywordheading" (without the quotes, and with no spaces), followed by a return, then go Insert > Layout Break to insert a second layout break.
    Double click Keywordheading to select it.
    Apply any formatting you want (I used a two point larger font size and Bold) for the heading.
    In the Layout inspector, set the left margin to zero.
    You now have a 'master copy' for your keyword heading, which can be copied, then pasted to each location you want this type of heading to appear.
    Select the first Layout Break, the line with 'Keywordheading', and the second Layout break, as shown in the image.
    Copy.
    Click immediately after the text preceding the next Keyword heading.
    Press return, then Paste.
    Repeat as needed.
    If you have alrady entered the text for these headings, you can use these steps to move them into the keyword heading spaces:
    For each heading:
    Select the words that make up the heading. Cut (command-X)
    Doubleclick 'Keywordheading'. Go Edit > Paste and Match Style.
    Repeat for next heading.
    If you have not yet entered the text for these headings:
    Doubleclick 'Keywordheading' to select it.
    Type the heading.
    Repeat.
    Note that after inserting these heaings, you can copy the three lines (Layout break, word(s)&return, Layout break) of any of them, then replace the text of that heading with the text of a new heading.
    Within the indented parts between headings, bulleted lists will behave normally.
    Rgards,
    Barry

Maybe you are looking for

  • Some videos stop playing at 480p (Chrome & IE)

    Hello, I'm new here. I know theres a "Chromium forum" to problems like this, but there I got no response, so I hope someone help me here. I'm having an unusual problem, I think. Some videos (the minority) suddenly stops playing at a specific time (no

  • Problem with a flash site...

    Hi I've got a myspace, which has a www.lovemyflash.com layout on it. All was working well untill a few days ago. It stopped animating just for me on my computer. I also can not view the www.lovemyflash.com website anymore however know that it is view

  • Multiple drop down menus in a row

    I am trying to create a bid sheet for my interior design business. For example in my first column(A) i would like to have a drop down menu with Demo, Plumbing, Electric, etc.... and if i would select Pluming in that drop down menu, next to it in colu

  • Reports & idoc

    1what is the difference between IDOC types and IDOC views? 2.What is Document Tool and what is use of it? 3.what is IDOC archiving? 4.what is the difference between watch point and break point.? 5.How to add extra functionality to a standard print pr

  • Time period over which finger taps are grouped together as one touch event

    Is this a value we can set ourselves? eg. making it longer so that two taps that are further apart are recognized as a part of a single touch event. Thanks.