Last modified: 2010-05-15 15:56:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6298 - Use exec() function when shell_exec() function is disabled
Use exec() function when shell_exec() function is disabled
Status: RESOLVED DUPLICATE of bug 5405
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.6.x
PC Windows XP
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.captainwiki.com
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-13 17:50 UTC by Ben
Modified: 2010-05-15 15:56 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ben 2006-06-13 17:50:21 UTC
While uploading images I was getting the error "shell_exec() has been disabled for 
security reasons".  To fix this problem I have made the following core code changes to 
the "wfShellExec()" function in the includes/Globalfunctions.php file.  I am receiving 
this error because my ISP has disabled the shell_exec php function but this problem can 
also be reproduced if the server is in safe mode.

I would like to know if this basic functionality can be added to the core code.  Error 
code would be needed to be added to check if shell_exec() is disabled on the server or 
not, it should then use the exec() function instead of shell_exec().

What are your thoughts?  Can this be added?


"changes made to -- Globalfunctions.php --
1616	#return shell_exec( $cmd );
1617	 return exec( $cmd );"


You can view [http://meta.wikimedia.org/wiki/Help_talk:Installation#I.
60m_receive_this_warning_during_installing_Wiki_.26_then_Thumb.60s_don.27t_created] as a 
reference.
Comment 1 Brion Vibber 2006-06-13 18:52:16 UTC

*** This bug has been marked as a duplicate of 5405 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links