GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Programmers: Quick question (https://gfy.com/showthread.php?t=771971)

Gillespie 09-26-2007 08:39 AM

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?

2012 09-26-2007 08:41 AM

could be
 
file permissions? ...:Oh crap
path problems ? ...:Oh crap

Gillespie 09-26-2007 08:43 AM

I spent an hour playing with that. Changed most of the relevant stuff to 777 and nothing.

2012 09-26-2007 08:44 AM

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

it's always something stupid when it worked someplace else and you make a move ...

pussyserver - BANNED FOR LIFE 09-26-2007 08:45 AM

filename

Gillespie 09-26-2007 08:48 AM

Quote:

Originally Posted by fartfly (Post 13146165)
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

2012 09-26-2007 08:52 AM

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

I bet somethings missing. good luck :)

Gillespie 09-26-2007 09:05 AM

Yup, works from the console with a regular user, not even root.

woj 09-26-2007 10:07 AM

are you running that from php? safe_mode maybe?

mortenb 09-26-2007 10:18 AM

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

k0nr4d 09-26-2007 11:28 AM

try running it with system, shell_exec, or pass_thru

Gillespie 09-26-2007 03:08 PM

Quote:

Originally Posted by woj (Post 13146669)
are you running that from php? safe_mode maybe?

It is off, according to php.ini

Gillespie 09-26-2007 03:09 PM

Quote:

Originally Posted by mortenb (Post 13146730)
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?

Gillespie 09-26-2007 03:09 PM

Quote:

Originally Posted by k0nr4d (Post 13147115)
try running it with system, shell_exec, or pass_thru

I'm not sure what you mean. Can you please elaborate?

Thanks!

:thumbsup

jimbona 09-26-2007 04:14 PM

Quote:

Originally Posted by Gillespie (Post 13148456)
I'm not sure what you mean. Can you please elaborate?

Thanks!

:thumbsup

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.

Voodoo 09-26-2007 04:15 PM

Quick answer. No.

Gillespie 09-26-2007 05:17 PM

Quote:

Originally Posted by jimbona (Post 13148715)
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

4boxmedia 09-26-2007 06:14 PM

can you link to the php info page?


All times are GMT -7. The time now is 02:01 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123