View Full Version : How come: Warning on upload
December 9th, 2008, 06:53 AM
I think after upgrading to 6.2, I get this errormessage on uploading images:
Warning: exec() has been disabled for security reasons in /photopost/image-inc.php (line 91)
As I want to use jhead to display exif-informations I added those lines in admin options:
Is there something wrong with this line maybe which causes the error?
December 9th, 2008, 09:59 AM
Try this path for jhead
December 9th, 2008, 11:35 AM
Exec has been disabled which means you can not use a program outside the actual server root of your site.
/usr/bin/jpegtran is outside the server root of /www/htdocs/myserver as an example so you can not use jpegtran.
December 10th, 2008, 02:20 AM
yeah, but than again I put in
so it would be inside the server root again, wouldn't it?
And: WHY has exec been disabled? I mean, I didn't change anything except putting in that path.
The documentation says:
(...)For this to work properly you need to have a properly installed JHEAD program which has the proper path set in the config-inc.php
But there is no entry in config-inc.php that I could edit?!?
December 10th, 2008, 02:48 AM
because the path your specifying is not within the actual server root they specify on the server and your host has disabled exec you need to email them about this.
December 10th, 2008, 02:53 AM
most probably the latter. I've emailed them. Let's see. Thanks Chuck.
So when does this exif-icon show up? Only if data could be extracted and is available to show (in my case once that exec is working) ?
I enabled the show exif-option in admin already.
December 10th, 2008, 03:24 AM
my provider has in fact disabled exec for security reasons. They told me these alternatives:
1. rename the file (image-inc.php) to *.phpx so PHP works as CGI which than is allowed to use exec
2. make a .htaccess file to have the PHP files working as CGI.
Content of .htaccess should be
with PHP5 in CGI-Mode:
AddHandler php5-cgi .php
with PHP4 in CGI-Mode:
AddHandler php4-cgi .php
But than again, they warned me of possible session problems?
HELP! What do you recommend to do?
Edited to add: I tried to change image-inc.php to image-inc.phpx and modified the call of this file in 6 other files as well. I still got the error message :(
December 10th, 2008, 10:27 AM
My suggestion would be to not use jpegtran etc simply use gd2 to process your images.
December 10th, 2008, 10:30 AM
:confused: I thought I had to use jhead in order to extract EXIF?
Could you point me to a thread or a documentation which explains how else to extract exif? In admin options I have gd2 selected to process my images.
December 10th, 2008, 10:32 AM
You can not do any of those things if your server has disabled exec. If you really want that stuff you need to move to a more non restrictive host.
December 10th, 2008, 10:33 AM
yeah, seems like. Any thoughts from your part on using the php->cgi conversion in terms of speed of photopost?
December 10th, 2008, 10:36 AM
can not say never have tried that and know of no one that has. Something like that would not be a prefered way of running php.
December 10th, 2008, 10:37 AM
All right. Thanks for your help. Always appreciated!
December 10th, 2008, 10:38 AM
have a good evening.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.