Welcome to Geeklog, Anonymous Monday, May 06 2024 @ 02:25 pm EDT

Geeklog Forums

Broken Site after php.ini disable_functions


Status: offline

BigBirdy

Forum User
Newbie
Registered: 02/12/07
Posts: 7
I have been tightening up my php settings and it looks like this broke geeklog. Below are my current disable_functions set so what would I need to add in the .htaccess file to allow the required functions to get geeklog back up?

disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, allow_url_fopen;

This is the debug output (url and ips changed)

n error has occurred:
2 - shell_exec() has been disabled for security reasons @ /home/opensour/geeklog/plugins/gus/functions.inc line 222

array(3) {
["ip"]=>
string(14) "123.123.123.123"
["_GUS_CONF"]=>
&array(17) {
["host_lookup"]=>
string(4) "host"
["host_lookup_timeout"]=>
int(1)
["SQL_use_TEMPORARY"]=>
bool(true)
["show_left_blocks"]=>
bool(true)
["show_right_blocks"]=>
bool(false)
["allow_ignore_anonymous"]=>
bool(false)
["hide_in_day_summary"]=>
array(1) {
[0]=>
string(28) "http://www.mygeeglogsite.com"
}
["wo_fullname"]=>
bool(false)
["wo_users_anonymous"]=>
bool(true)
["wo_online"]=>
bool(true)
["wo_show_bots"]=>
bool(true)
["wo_registered"]=>
bool(true)
["wo_new"]=>
bool(true)
["wo_daily"]=>
bool(true)
["wo_refs"]=>
bool(true)
["wo_hide_referrers"]=>
array(1) {
[0]=>
string(28) "http://www.mygeeklogsite.com"
}
["wo_max_referrers"]=>
int(100)
}
["timeout"]=>
int(1)
}
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So you disabled shell_exec and now the error message is telling you that the GUS plugins tried to use shell_exec but can't, since you disabled it ...

What was your question again?

bye, Dirk
 Quote

Status: offline

BigBirdy

Forum User
Newbie
Registered: 02/12/07
Posts: 7
Nice attitude...too bad your reading skills seem to be deficient. My post had the details of the problem, debug output which shows which function failed....and which as you so brilliantly identified...amazing actually. Too bad you missed the question

"what would I need to add in the .htaccess file to allow the required functions to get geeklog back up?"

I never respond to snide, rude or ignorant comments, but its late, I am tired and you get my attitude back.....
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sure, it was a snide remark. I still don't understand the question, though. If you did something and it broke your site, then the obvious answer would be "don't do that then".

The PHP manual has disable_functions listed as "php.ini only", so I very much doubt there is a way to override it from the .htaccess.

bye, Dirk
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
You could also disable GUS. That might correct your error.
 Quote

All times are EDT. The time is now 02:25 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content