| Author |
Message |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Host disabled PHPinfo - cant upload photos Posted: Wed Nov 28, 2007 9:47 pm |
|
Hi.
Since my host disabled phpINFO after several hack attempts and other users posting theyr phpINFO public they have put restrictions on it.
Thats causing my coppermine gallery (in DF) to not work. It cant find the GD library to rezise images and gives me the:
exec() has been disabled for security reasons
Error message. (thats how I found out that phpinfo was disabled)
Anyway to get around the GD check and re-enable image upload or do I need to change host?
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
warden


Joined: Dec 16, 2004 Posts: 196 Location: North Carolina
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Thu Nov 29, 2007 11:03 pm |
|
jzky, I feel for you. I had the exact same thing to happen to me. My host provider (soon to be old host provider) disabled, exec(), shell_exec(), escapeshellarg(), and others to try to secure their server against high load spikes. This directly effected the coppermine uploading. I finally got them to re-enable these but I was told that they would be disabled again when needed. I found this to be unacceptable, so I had to find a new host provider and am in the process of relocating now.
If there is any way around this I would like to read about it. I will be watching this thread for replies.
Good luck with yours.
_________________

warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Fri Nov 30, 2007 8:03 am |
|
Make sure you have GD as preferred imaging tool in coppermine config.
exec() is only used if you have selected ImageMagick or netbpm.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
warden


Joined: Dec 16, 2004 Posts: 196 Location: North Carolina
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Fri Nov 30, 2007 9:51 am |
|
Nano, do all image manipulators (netpbm, GD, ImageMagick) use escapeshellarg()? I received a cms warning about it being disabled also.
_________________

warden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Fri Nov 30, 2007 2:55 pm |
|
As far i can see using GD = php functions only (unless I'm missing something)
the rest of imaging tools (as well cvs) needs exec, so escapeshellarg as well.
Please make sure that GD is the preferred imaging tool in coppermine config and report back, please.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
WebSiteGuru


Joined: Jun 09, 2005 Posts: 2321
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Fri Nov 30, 2007 3:34 pm |
|
That is a nice to know info. I will definately keep this in mind.
_________________ Lead Theme Designer - WebSiteGuru Designs
WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1 |
|
| Back to top |
|
 |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Wed Dec 05, 2007 9:21 pm |
|
for me there is no way to select GD in coppermine config, if there aint a way to do it the hard-way..
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Thu Dec 06, 2007 8:30 am |
|
If you are not able to select GD then your host REALLY doesn't want you to use any kind of imaging software.
netbpm and Image Magick needs to use exec and your host disabled it.
but they also did not loaded gd into php
== no coppermine, no thumbnails for downloads ... no image manipulation at all.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Thu Dec 06, 2007 11:39 am |
|
so the only fix is to change host?
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Thu Dec 06, 2007 12:18 pm |
|
Ask your host if they are willing to enable GD, if they reply no then you can still ask about an HOW TO manipulate images in their server setup.
Changing host whitout communicating with their support first is not a good idea, they might have only forgot about enabling GD.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Thu Dec 06, 2007 9:27 pm |
|
rgr on that. I've sent them a mail now. Will post back the reply.
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Sat Dec 08, 2007 7:46 pm |
|
Got the reply from my host now. They say that GD lib is loaded - but still I cant select it in coppermine config. Since GD is loaded is there a way to make coppermine config use it without having it to check for it first?
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Sat Dec 08, 2007 11:52 pm |
|
Coppermine must check if GD is enabled or not. If it is, then coppermine -> config is where it needs to be changed.
You can also check using this simple php script
PHP:
<?php if (function_exists('imagecreatefrompng')) echo 'GD is installed'; else echo 'GD not installed'; ?>
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
jzky


Joined: Jun 25, 2004 Posts: 220 Location: Norway - Harstad
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Tue Dec 11, 2007 9:36 am |
|
script reports: GD is installed
Coppermine gives me option of Image magic or netpbm.
So now that I know that GD is there, how to "force" coppermine to use it?
_________________ www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih My home town
jzky's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / Apache / PHP Version 5.2.0 /MySQL Version 4.1.21-standard / CMS Version 9.1.1 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Host disabled PHPinfo - cant upload photos Posted: Tue Dec 11, 2007 10:26 am |
|
Strange, lets try the same function that coppermine use, but this time we debug a bit more:
PHP:
<?php if (!extension_loaded('gd')) { echo 'function failed'; } ob_start(); phpinfo(8); $info=ob_get_contents(); ob_end_clean(); $info=stristr($info, 'gd version'); preg_match('/\d/', $info, $gd); echo '<pre>'; print_r($gd); echo '</pre>'; ?>
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |