Turning PHP safemode off?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iMind
    Confirmed User
    • Nov 2007
    • 937

    #1

    Turning PHP safemode off?

    Anyone know how to turn PHP safemode off via plesk ?
    Sorry .. I read the docs, but the buttons they describe aren't even there :P
  • just a punk
    So fuckin' bored
    • Jun 2003
    • 32393

    #2
    Go to your domain/site settings page and click the appropriate checkbox
    Obey the Cowgod

    Comment

    • iMind
      Confirmed User
      • Nov 2007
      • 937

      #3
      Yeah, I think I'm using some dummied down version of plesk or something

      There is no setting for anything like that .. I have a choice to turn support for PHP on or off .. but there's no setting for safemode at all,
      And half the fucking buttons in the docs are missing and it's beginning to upset me!

      Comment

      • CurrentlySober
        Too lazy to wipe my ass
        • Aug 2002
        • 38946

        #4
        Perhaps they have simply rolled under the couch, and are next to that tv remote you last saw at xmas?


        👁️ 👍️ 💩

        Comment

        • iMind
          Confirmed User
          • Nov 2007
          • 937

          #5
          Originally posted by ThatGuyInTheCorner
          Perhaps they have simply rolled under the couch, and are next to that tv remote you last saw at xmas?
          Seems that way!

          bump for help! :D

          Comment

          • GrouchyAdmin
            Now choke yourself!
            • Apr 2006
            • 12085

            #6
            So long as AuthConfig is set correctly, you can put this:

            Code:
            php_admin_flag safe_mode Off
            in your .htaccess

            Comment

            • iMind
              Confirmed User
              • Nov 2007
              • 937

              #7
              Originally posted by GrouchyAdmin
              So long as AuthConfig is set correctly, you can put this:

              Code:
              php_admin_flag safe_mode Off
              in your .htaccess
              Hmm , After adding that the server just throws errors ..
              So I'll assume Authconfig isn't set correctly

              I hate working on other peoples servers

              Comment

              • GrouchyAdmin
                Now choke yourself!
                • Apr 2006
                • 12085

                #8
                Originally posted by iMind
                I hate working on other peoples servers
                Likely not, since it's a php_admin value and not a php_value. Find the applicable httpd.conf (looks like /home/httpd/vhosts/sitegoeshere/conf/vhost.conf) and place it the primary <Directory> set, there.

                Since it's Plesk, you need to notify:
                sudo /usr/local/psa/admin/bin/websrvmng -a -v

                Restart Apache.

                Comment

                • tiger
                  Confirmed User
                  • Apr 2002
                  • 6986

                  #9
                  nano /usr/lib/php.ini

                  safe mode = off

                  restart apache.

                  Comment

                  • GrouchyAdmin
                    Now choke yourself!
                    • Apr 2006
                    • 12085

                    #10
                    Originally posted by tiger
                    nano /usr/lib/php.ini

                    safe mode = off

                    restart apache.
                    This would be a server wide change, not a single site - which might not be a brilliant idea.

                    Comment

                    Working...