SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Zealot
    Join Date
    May 2005
    Location
    London
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Mail stopped working

    Hi

    A client has a web site, which I was formerly hosting on a dedicated server leased from Fasthosts running their Matrix control panel. It has a contact page where users can fill in their details and fire off en email to the client. Now I've moved to one of Fasthosts Plesk servers and it will no longer work; it gives an internal server error:
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.

    More info:
    Config Error: Cannot read configuration file due to insufficient permissions

    The file it's complaining about appears to be web.config, which doesn't exist in the folder it shows:
    \\?\D:\vhosts\artmongers.com\cgi-bin\web.config

    I've looked at the permissions for the folder and they seem OK.

    Formmail.pl is where it should be (and always has been) - in cgi-bin, so I'm at a loss to know what's going on. Unfortunately, Fasthosts just blank me, saying they "don't provide scripting support". Seems to me they should accept that it's their responsibility, but if not, perhaps one of you out there might have an idea for me?

    Here's hoping.

    Many thanks.
    Soft and Sound

  2. #2
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    I've looked at the permissions for the folder and they seem OK.
    Does perl call anything that requires permissions for anything?

    This might be better in the server area, because likely the script itself is fine.

  3. #3
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    Are you using Matt's formmail from Matt's script archive (scriptarchive-dot-com)? As far as I know its config is self-contained. It should not have to depend on external configuration.

    web.config is the configuration file for an ASP.NET application, however you are mentioning formmail.pl so it seems a perl script. I'm assuming the rest of the site is written in ASP?

    This error only happens with formmail.pl, not with any other requests? If you can provide me with any further information, that'd be great.

    Hope to hear from you.

  4. #4
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    I hope he's not using Matt's Scripts : (

    Hopefully it's at least updated or something.

  5. #5
    SitePoint Zealot
    Join Date
    May 2005
    Location
    London
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi JawsOfLife

    Thanks for your reply. The site is only HTML, so it's interesting that you say web.config is associated with ASP.NET. Maybe that's a clue.

    The first line of the reply form looks like this:
    <form action="http://www.artmongers.com/cgi-bin/formmail.pl" method="post" onsubmit="return validateform();" id="contactQuery">

    The thing is, it always worked fine on the old server and nothing was changed.

    I have another site using CDO and VBScript to send an email, and that's stopped as well, complaining that the 'SendUsing' configuration was wrong. I did find something on MSDN that said there were changes when moving to IIS7 and tried implementing their code, but got a syntax error I can't work out when trying to set the SMTP server. All very confusing, but it seems likely that both problems are to do with the change of server, IIS version, or both.

    If you're any the wiser, I'd love to hear from you!

    Cheers

    Paul
    Soft and Sound

  6. #6
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    Thanks for providing me with the link to your formmail.pl. I've visited it and got a blurb about error 500.

    I noticed an Error code: 0x80070005
    According to Microsoft on support-dot-microsoft-dot-com/kb/942055, this is caused by:
    This problem occurs for one of the following reasons:
    Quote Originally Posted by Microsoft
    * You are using IIS 7.0 on a computer that is running Windows Vista. Additionally, you configure the Web site to use UNC Passthrough authentication to access a remote Universal Naming Convention (UNC) share.
    * The IIS_IUSRS group does not have the appropriate permissions for the ApplicationHost.config file or for the Web.config file.
    and the resolution for this is

    Quote Originally Posted by Microsoft
    To resolve this problem, use one of the following methods.
    Method 1
    Do not configure the Web site to use UNC Passthrough authentication to access the remote UNC share. Instead, specify a user account that has the appropriate permissions to access the remote UNC share.
    Method 2
    Grant the Read permission to the IIS_IUSRS group for the ApplicationHost.config file or for the Web.config file. To do this, follow these steps:

    1. In Windows Explorer, locate the ApplicationHost.config file that is associated with the Web site, or locate the Web.config file that is associated with the Web site.
    2. Right-click the ApplicationHost.config file, or right-click the Web.config file.
    3. Click Properties.
    4. Click the Security tab, and then click Edit.
    5. Click Add.
    6. In the Enter the object names to select box, type computername\IIS_IUSRS, click Check Names, and then click OK.

    Note Computername is a placeholder for the computer name.
    7. Click to select the Read check box, and then click OK.
    8. In the ApplicationHost.config Properties dialog box or in the Web.config Properties dialog box, click OK.
    Since the config error is "Cannot read configuration file due to insufficient permissions", it looks to me Method 2 is most likely to fix this.

    If that is already a solution you've tried, please let me know.
    Tell me, do other Perl scripts work on this server? I wonder if it's failing to execute all of them due to configuration issues.

  7. #7
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stomme poes View Post
    Hopefully it's at least updated or something.
    Last time it was updated appears to be about 6 years ago.
    Are there any modern formmail scripts available elsewhere?
    .

  8. #8
    SitePoint Zealot
    Join Date
    May 2005
    Location
    London
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the various replies. I rewrote the mailing page in vbScript in the end, and it's all fine now.

    Perhaps formamil has had its day!

    Cheers

    Paul
    Soft and Sound

  9. #9
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dresden View Post
    Perhaps formamil has had its day!
    Are there any alternatives?
    If so, what are they?
    .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •