Title: Disabled shell_exec()
Last modified: August 30, 2016

---

# Disabled shell_exec()

 *  [luckyfox](https://wordpress.org/support/users/luckyfox/)
 * (@luckyfox)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disabled-shell_exec/)
 * On latest plugin version Version 1.2
 * Dashboard area for plugin reports: Warning: shell_exec() has been disabled for
   security reasons in /wp-content/plugins/show-ip-address/show-ip-address.php on
   line 76
 * for
 * `$uptime = shell_exec("cut -d. -f1 /proc/uptime");`
 * As seen here: [http://i.gyazo.com/b829f438573a628b4c034618812588a6.png](http://i.gyazo.com/b829f438573a628b4c034618812588a6.png)
 * [https://wordpress.org/plugins/show-ip-address/](https://wordpress.org/plugins/show-ip-address/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Keith Griffiths](https://wordpress.org/support/users/keithgriffiths76/)
 * (@keithgriffiths76)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/disabled-shell_exec/#post-6375172)
 * Hey Luckyfox
 * I understand it’s not best practice to run shell_exec() but it works, I’ll come
   up with an alternative shortly.
 * Choose a host that has this enabled: shell_exec() or ask your host to enable 
   this.
 * Here is my email address: [info@keith-griffiths.com](https://wordpress.org/support/topic/disabled-shell_exec/info@keith-griffiths.com?output_format=md),
   send me an email anytime.
 * Regards
 * Keith
 *  Thread Starter [luckyfox](https://wordpress.org/support/users/luckyfox/)
 * (@luckyfox)
 * [10 years ago](https://wordpress.org/support/topic/disabled-shell_exec/#post-6375192)
 * _I’m posting this here as well, just in case you don’t see the review response!_
 * Six months later, and still this hasn’t been updated.
 * I **_really_** don’t feel that **_switching hosts_** to accommodate an unnecessary
   shell command is a _reasonable_ alternative to simply checking if it can run 
   shell commands before actually executing and failing to throw the error every
   time I visit the dashboard.
 * Which is **still**
    `Warning: shell_exec() has been disabled for security reasons
   in /wp-content/plugins/show-ip-address/show-ip-address.php on line 76`
 * Especially for the server uptime, which this plugin _isn’t actually meant to 
   provide_ (hence it’s name of Show IP not Show Server Updtime).
 * I also don’t believe that this plugin really warrants a top-level menu item _(
   such as Wordfence as a random example)_ instead of a sub-menu entry in “Settings”_(
   such as Coming Soon Page & Maintenance Mode by SeedProd for another random example)_
   with the rest of the plugins. Especially considering the setting page doesn’t
   have any settings, it’s just a short readme to provide the shortcode for the 
   plugin.
 * And my final bit of feedback _(which all of this **really** isn’t meant to be
   offensive in any way!)_, are you aware that your dashboard widget is bigger than
   the WordPress News widget? This is mostly because of the large photo you include,
   which should probably be removed as it’s unnecessary _(and doesn’t actually serve
   a purpose besides aesthetics)_. In fact, even your [plugin page doesn’t reflect the massive new dashboard widget](https://wordpress.org/plugins/show-ip-address/screenshots/).
   There’s also a lot of additional unnecessary static information on the widget
   that could be moved to the settings page instead to save dashboard space.
 * I would very much love to give a 5-star review, even still, because it DOES do
   what it’s intended to do… And I know these alterations could be done in just 
   a minute or two! I just wish you’d finally get around to them. So the plugin 
   can do what it’s meant to, without all of the frilly fluff.
 * Still waiting to update my review~!
    -Luck
 *  Plugin Author [Keith Griffiths](https://wordpress.org/support/users/keithgriffiths76/)
 * (@keithgriffiths76)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/disabled-shell_exec/#post-6375202)
 * Hi luckyfox
 * I have removed the features that have been causing you issues.
 * Over the next couple of months my aim is to build this plugin up with a few additional
   features. Any suggestions?
 * Can you let me know if this is still cuasing any issues for you.
 * Regards
 * Keith

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disabled shell_exec()’ is closed to new replies.

 * ![](https://ps.w.org/show-ip-address/assets/icon-128x128.jpg?rev=1182928)
 * [Show IP address](https://wordpress.org/plugins/show-ip-address/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/show-ip-address/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/show-ip-address/)
 * [Active Topics](https://wordpress.org/support/plugin/show-ip-address/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/show-ip-address/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/show-ip-address/reviews/)

## Tags

 * [disabled](https://wordpress.org/support/topic-tag/disabled/)

 * 3 replies
 * 2 participants
 * Last reply from: [Keith Griffiths](https://wordpress.org/support/users/keithgriffiths76/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/disabled-shell_exec/#post-6375202)
 * Status: not resolved