Host disabled PHPinfo - cant upload photos
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine
Author Message
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Host disabled PHPinfo - cant upload photos
Posted: Wed Nov 28, 2007 9:47 pm
Reply with quote

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 WinkMy 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
View user's profile Visit poster's website
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Thu Nov 29, 2007 11:03 pm
Reply with quote

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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Fri Nov 30, 2007 8:03 am
Reply with quote

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
View user's profile Visit poster's website
warden
Silver Supporter


Joined: Dec 16, 2004
Posts: 196
Location: North Carolina

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Fri Nov 30, 2007 9:51 am
Reply with quote

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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Fri Nov 30, 2007 2:55 pm
Reply with quote

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
View user's profile Visit poster's website
WebSiteGuru
1000+ Posts Club


Joined: Jun 09, 2005
Posts: 2321

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Fri Nov 30, 2007 3:34 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Wed Dec 05, 2007 9:21 pm
Reply with quote

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 WinkMy 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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Thu Dec 06, 2007 8:30 am
Reply with quote

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
View user's profile Visit poster's website
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Thu Dec 06, 2007 11:39 am
Reply with quote

so the only fix is to change host?
_________________
www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih WinkMy 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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Thu Dec 06, 2007 12:18 pm
Reply with quote

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
View user's profile Visit poster's website
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Thu Dec 06, 2007 9:27 pm
Reply with quote

rgr on that. I've sent them a mail now. Will post back the reply. Smile
_________________
www.jzky.net a Dragonfly site. cms.jzky.net < test site. - Pardon my bad englsih WinkMy 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
View user's profile Visit poster's website
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Sat Dec 08, 2007 7:46 pm
Reply with quote

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 WinkMy 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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Sat Dec 08, 2007 11:52 pm
Reply with quote

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
View user's profile Visit poster's website
jzky
Supporter


Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Tue Dec 11, 2007 9:36 am
Reply with quote

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 WinkMy 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
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3677
Location: Melbourne, AU

PostPost subject: Re: Host disabled PHPinfo - cant upload photos
Posted: Tue Dec 11, 2007 10:26 am
Reply with quote

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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexCoppermine All times are GMT
Go to page 1, 2  Next
Page 1 of 2


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.8016 seconds with 19 DB Queries in 0.0379 seconds
Memory Usage: 3.03 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy