Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: INI file not read

  1. #11
    Join Date
    Nov 2009
    Posts
    21

    Default Re: INI file not read

    Moved INI to:
    /usr/local/pem/vhosts/*****/webspace/httpsdocs/formmail/formmail.ini
    DB_SEE_INI now works
    but
    DEF_ALERT is sent Socket error 0: :

  2. #12
    Join Date
    Nov 2009
    Posts
    21

    Default Re: INI file not read

    Just to clarify, you would put the INI here:

    /usr/local/pem/vhosts/*****/webspace/httpsdocs/MYDOMAIN/formmail.ini
    Where MYDOMAIN has the SSL cert?

  3. #13
    Join Date
    May 2008
    Posts
    1,291

    Default Re: INI file not read

    Is your script also in the secure directory?

    I don't know what the socket error means.

    (Yes where your domain has the SSL certificate.)
    Last edited by ginger23; 13-Feb-2010 at 07:38 PM. Reason: I meant "your script" and related files, not "your form".

  4. #14
    Join Date
    Nov 2009
    Posts
    21

    Default Re: INI file not read

    Yes, this means formmail.php and formmail.ini are now in the same 'secure' directory.

    Changed

    $TEMPLATEURL = "/usr/local/pem/vhosts/*****/webspace/httpsdocs/mydomain/forms/";
    to

    It seems having 2 absolute paths is too much for the server to deal with.
    !!! IT NOW WORKS !!!

    Should I keep the INI where it is or move it up a level? Not sure how to add to .htaccess which is already redirecting from httpdocs to httpsdocs.
    Last edited by 20pictures; 13-Feb-2010 at 07:49 PM.

  5. #15
    Join Date
    May 2008
    Posts
    1,291

    Default Re: INI file not read

    So everything, including confirmation page, templates, etc., is in the secure directory, right?

    At least the script is seeing the INI file now. As for the socket error, you might have to subscribe for support with Russell on that one.

  6. #16
    Join Date
    May 2008
    Posts
    1,291

    Default Re: INI file not read

    I guess you could ask your host about the socket error as well. They may be able to sheld some light on the problem.

  7. #17
    Join Date
    May 2008
    Posts
    1,291

    Default Re: INI file not read

    I just noticed that it's now fixed. You should post a new reply rather than change an existing one if there's new information.

    As for protecting the INI file, you can try putting this in the .htaccess file in the root of the secure directory:

    Code:
    <Files ~ "\.(ini)$">
    Order allow,deny
    </Files>
    Make sure that you back up any existing .htaccess files in case there's a problem.

  8. #18
    Join Date
    Nov 2009
    Posts
    21

    Default Re: INI file not read

    Thanks for all your help 'Ginger'.

    If you have any more thoughts on the security of this setup, I would like to hear...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. mutiple recipients not working with ini file
    By saejoon in forum Bug Reports
    Replies: 3
    Last Post: 25-Sep-2006, 05:53 PM
  2. Trouble with the formmail ini function
    By Carina in forum Community Support
    Replies: 3
    Last Post: 17-Sep-2006, 02:48 PM
  3. Replies: 1
    Last Post: 23-Aug-2006, 09:32 PM
  4. Formmail ini file
    By Wayne Hammond in forum Features Questions
    Replies: 5
    Last Post: 28-Jun-2006, 02:05 PM
  5. Read This First
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 12:29 PM

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
  •