Programmers: Quick question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gillespie
    Confirmed User
    • Aug 2006
    • 1391

    #1

    Programmers: Quick question

    I'm getting this error:

    couldn't execute /usr/local/bin/mogrify -resize 250x79 /var/www/vhosts/domain.com/httpdocs/imagenes/imagenes/umfqo_qok02_L.gif 2>&1


    Basically it is an image uploading script that I use a lot. Never had a problem with it up until now that I'm trying to run it on a new VPS.

    What are the possible reasons why it can't execute mogrify?
    Blue Design Studios
    My choice for web design.
    Click this to see why.


    Get a REAL host. Try JaguarPC.

    294-659-259
  • 2012
    So Fucking What
    • Jul 2006
    • 17189

    #2
    could be

    file permissions? ...
    path problems ? ...
    Last edited by 2012; 09-26-2007, 07:43 AM.
    best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

    Comment

    • Gillespie
      Confirmed User
      • Aug 2006
      • 1391

      #3
      I spent an hour playing with that. Changed most of the relevant stuff to 777 and nothing.
      Blue Design Studios
      My choice for web design.
      Click this to see why.


      Get a REAL host. Try JaguarPC.

      294-659-259

      Comment

      • 2012
        So Fucking What
        • Jul 2006
        • 17189

        #4
        is "mogrify" whatever that is installed on the server ?

        it's always something stupid when it worked someplace else and you make a move ...
        Last edited by 2012; 09-26-2007, 07:46 AM.
        best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

        Comment

        • pussyserver - BANNED FOR LIFE
          So Fucking Banned
          • Oct 2005
          • 5133

          #5
          filename

          Comment

          • Gillespie
            Confirmed User
            • Aug 2006
            • 1391

            #6
            Originally posted by fartfly
            is "mogrify" whatever that is installed on the server ?

            it's always something stupid when it worked someplace else and you make a move ...
            Ya, installed it with my bare hands. It's part of ImageMagick I suppose.

            Filename works in other VPSs. :S
            Blue Design Studios
            My choice for web design.
            Click this to see why.


            Get a REAL host. Try JaguarPC.

            294-659-259

            Comment

            • 2012
              So Fucking What
              • Jul 2006
              • 17189

              #7
              have you tried mogrify -resize 250x79 directly from putty or whatever your using for a console.

              I bet somethings missing. good luck
              best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

              Comment

              • Gillespie
                Confirmed User
                • Aug 2006
                • 1391

                #8
                Yup, works from the console with a regular user, not even root.
                Blue Design Studios
                My choice for web design.
                Click this to see why.


                Get a REAL host. Try JaguarPC.

                294-659-259

                Comment

                • woj
                  <&(©¿©)&>
                  • Jul 2002
                  • 47882

                  #9
                  are you running that from php? safe_mode maybe?
                  Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                  Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                  Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                  Comment

                  • mortenb
                    Confirmed User
                    • Jul 2004
                    • 2203

                    #10
                    is php set up to allow exec() to run at all? i've had problems with servers that were set up like that in the past

                    Comment

                    • k0nr4d
                      Confirmed User
                      • Aug 2006
                      • 9231

                      #11
                      try running it with system, shell_exec, or pass_thru
                      Mechanical Bunny Media
                      Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

                      Comment

                      • Gillespie
                        Confirmed User
                        • Aug 2006
                        • 1391

                        #12
                        Originally posted by woj
                        are you running that from php? safe_mode maybe?
                        It is off, according to php.ini
                        Blue Design Studios
                        My choice for web design.
                        Click this to see why.


                        Get a REAL host. Try JaguarPC.

                        294-659-259

                        Comment

                        • Gillespie
                          Confirmed User
                          • Aug 2006
                          • 1391

                          #13
                          Originally posted by mortenb
                          is php set up to allow exec() to run at all? i've had problems with servers that were set up like that in the past
                          Where can I find this?
                          Blue Design Studios
                          My choice for web design.
                          Click this to see why.


                          Get a REAL host. Try JaguarPC.

                          294-659-259

                          Comment

                          • Gillespie
                            Confirmed User
                            • Aug 2006
                            • 1391

                            #14
                            Originally posted by k0nr4d
                            try running it with system, shell_exec, or pass_thru
                            I'm not sure what you mean. Can you please elaborate?

                            Thanks!

                            Blue Design Studios
                            My choice for web design.
                            Click this to see why.


                            Get a REAL host. Try JaguarPC.

                            294-659-259

                            Comment

                            • jimbona
                              Confirmed User
                              • Jan 2007
                              • 190

                              #15
                              Originally posted by Gillespie
                              I'm not sure what you mean. Can you please elaborate?

                              Thanks!

                              what they are saying is to use the PHP functions to pass the resize string.
                              http://uk2.php.net/system
                              http://uk2.php.net/manual/en/function.exec.php
                              http://uk2.php.net/manual/en/function.passthru.php

                              create a php file with

                              PHP Code:
                              <?php phpinfo();?>
                              upload it onto your server and see if any of these functions are on the disabled list.
                              Thanks
                              Paul
                              Thunder-Ball.net - Member

                              Comment

                              • Voodoo
                                ♥ ♦ ♣ ♠
                                • Sep 2002
                                • 10600

                                #16
                                Quick answer. No.

                                "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

                                Comment

                                • Gillespie
                                  Confirmed User
                                  • Aug 2006
                                  • 1391

                                  #17
                                  Originally posted by jimbona
                                  what they are saying is to use the PHP functions to pass the resize string.
                                  http://uk2.php.net/system
                                  http://uk2.php.net/manual/en/function.exec.php
                                  http://uk2.php.net/manual/en/function.passthru.php

                                  create a php file with

                                  PHP Code:
                                  <?php phpinfo();?>
                                  upload it onto your server and see if any of these functions are on the disabled list.
                                  None of them are even present in the info page.

                                  I'm really starting to wonder wtf is going on with this script :S
                                  Blue Design Studios
                                  My choice for web design.
                                  Click this to see why.


                                  Get a REAL host. Try JaguarPC.

                                  294-659-259

                                  Comment

                                  • 4boxmedia
                                    Registered User
                                    • Sep 2007
                                    • 29

                                    #18
                                    can you link to the php info page?

                                    Comment

                                    Working...