Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine :: Archives ⇒ Host disabled PHPinfo - cant upload photos :: Archived


Host disabled PHPinfo - cant upload photos :: Archived
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives

Topic Archived View previous topic :: View next topic  
Author Message
jzky
Supporter
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Wed Nov 28, 2007 9:47 pm
Post subject: Host disabled PHPinfo - cant upload photos

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
Silver Supporter

Offline Offline
Joined: Dec 16, 2004
Posts: 196
Location: North Carolina
PostPosted: Thu Nov 29, 2007 11:03 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Fri Nov 30, 2007 8:03 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
warden
Silver Supporter
Silver Supporter

Offline Offline
Joined: Dec 16, 2004
Posts: 196
Location: North Carolina
PostPosted: Fri Nov 30, 2007 9:51 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Fri Nov 30, 2007 2:55 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
WebSiteGuru
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Jun 09, 2005
Posts: 2318

PostPosted: Fri Nov 30, 2007 3:34 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Wed Dec 05, 2007 9:21 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Dec 06, 2007 8:30 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
jzky
Supporter
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Thu Dec 06, 2007 11:39 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Dec 06, 2007 12:18 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
jzky
Supporter
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Thu Dec 06, 2007 9:27 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Sat Dec 08, 2007 7:46 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sat Dec 08, 2007 11:52 pm
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
jzky
Supporter
Supporter

Offline Offline
Joined: Jun 25, 2004
Posts: 220
Location: Norway - Harstad
PostPosted: Tue Dec 11, 2007 9:36 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Dec 11, 2007 10:26 am
Post subject: Re: Host disabled PHPinfo - cant upload photos

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! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy