Menu

My Web Hosting Company Doesn't allow CHMOD777

Help
Anton Ross
2005-08-29
2013-06-03
  • Anton Ross

    Anton Ross - 2005-08-29

    I have run into a major snag with my Web hosting company (Catalog.com). They do NOT allow any global-writable files.

    See below:

    PHP scripts cannot be world writeable - 777 is not allowed

    If assuming register_globals=on in your scripts, you will either need to install a php.ini in the directory where the script resides, or change your scripts to be secure.
    -------------------------------------------------------------------

    So, how do I get around this and make PHPFormGen work?

    I'll gladly donate to this cause if we can figure out a solution.

    Many thanks,
    Anton

     
    • TNTEverett

      TNTEverett - 2005-08-29

      777 is not required.  What is required is that all .php files be executable, 755 should work.  All HTML and image files need to be readable, 664 should work.  All directories should be 777 unless you require some level of security. 
      Let me know if you still need help. 

       
      • Anton Ross

        Anton Ross - 2005-08-29

        Thanks for the quick reply.

        I tried the settings yous suggested, but what happens is that I get the "Thank You" page with the information displayed that was filled out in the form, but no email is being generated and sent to the email I specified during the form's creation.

        ???

        Thoughts?

        Again, many thanks. I think this is a great liitle Web app...now if only I can get it to send off the email!

        Best,
        Anton

         
    • TNTEverett

      TNTEverett - 2005-08-29

      OK, so the permissions are fine.  You won't get the thank you page without executing .php files. 
      Your problem now is the email command.  Check the line that start with mail.  Here is an example:
      mail("you@yourdomain.com","Form Submitted at your website",$message,"From: phpFormGenerator");
      Make sure the line exists.  Make sure the email account is correct. 
      Your could also send me your form.html, and process.php file and I will test it on my server. 

       
      • Anton Ross

        Anton Ross - 2005-08-29

        Looks like this may be the culprit: mail() didn't know where to access the sendmail program.

        I am adding this line just before the mail call:
        $mailprog = '/usr/local/safe/bin/sendmail -i -t';

        Is this correct? I know the path is good...it's the one specified by my hosting company.

        Thoughts?

        Thanks!
        Anton

         
    • TNTEverett

      TNTEverett - 2005-08-29

      In most cases "mail" should work all by itself.  Find out from your Host why mail is not sufficient. 
      The sendmail utility is a bit tempermental and can sometimes be difficult to implement, especially when you are attempting to make it work with a message you have not formatted yourself (formatted to work specifically with sendmail). 
      Let me know how it works for you.

       

Log in to post a comment.