Help installing a mediawiki

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
I'm installing a media wiki, but when ever I try to access cofig, it says:

Warning: shell_exec() has been disabled for security reasons in /home/alexmac/public_html/tutorials/mediawiki-1.12.0/config/index.php on line 1822

And that is the last thing I see in the source code as well.

My PHP version is intermediate, but I don't know much PHP, and so I don't know what to do.

Please can I have some help?

Thanks in advance.
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
It is what it says, that function has been disabled by x10 staff for security reasons.

try
PHP:
<?php
phpinfo();
?>

And you'll see this somewhere (for the intermidate version):
suhosin.executor.func.blacklist
passthru, leak, listen, diskfreespace, link, dl, exec, system, source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_getgrnam, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getrlimit, posix_getsid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_ttyname, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, ini_alter, mb_send_mail, proc_open, pfsockopen, openlog, syslog, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual, shell_exec

So you'll never get this function to work.

Possible solutions:
- Maybe it is allowed in the advanced php version? (Hint to some kind mod ^^)
- Try to find a way to do the same with a different function.
This is what php.net has to say about shell_exec().

I hope I was able to help you,
Marshian
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Well, I know that kllctcat has a mediawiki on his website, but he is a moderator, so maybe they have different settings.
Isn't it meant to be really hard to get advanced PHP though?

The strange thing is, is that on line 1822 I can't see anything saying shell_exec()
I can't find it anywhere in the file.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I have MediaWiki installed and running so it is posible, but I have the Advanced PHP version.
You could try to request an upgrade, and see if it will be accepted. Or you could try a different Wiki system (there are many out there including pmwiki, DokuWiki and WikkaWiki).
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
Alex, when I was looking for info about your problem, I found out shell_exec() is connected to the operator ` (as in ò, ì, à).
The code
PHP:
$string = shell_exec("command");
is the same as saying
PHP:
$string = `command`;

And as I said before, maybe it does work with the advanced version. (once more, hinting to some kind mod)
and it's always worth trying to get it ;-)

Marshian
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
The best thing to do would be to post a thread in free hosting support about requesting an upgrade to advanced PHP for installing media wiki.

Corey or Brandon or Bryon would then look into it and let you know a reply.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Thanks for all the help, I have asked for an upgrade to advanced PHP. I just hope they upgrade!
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
it's fun because I have mediawiki installed but I never got that error. But I may have a old version... Try to comment that line. In some cases it works.
 

hopper

Member
Messages
225
Reaction score
0
Points
16
have you tried asking for a less strict php version on your hosting cp?
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
have you tried asking for a less strict php version on your hosting cp?

that is what we were talking about the whole time...
the advanced version is the less strict version. he's now requesting an upgrade.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
I didn't receive a confirmation email, and more than 24hrs has passed.
Do I apply again?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Because you are applying for advanced PHP your application must be reviewed by one of the administrators (I think Brandon or Byron do them). This means it can take longer for it to be accepted.
Wait another day or so, it should have been accepted by then.
 
Last edited:

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Two weeks later:

They haven't said anything at all.
What now?
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
OK, I've done that and I still have the upgrade.
It doesn't work.
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
What status is your php version saying right now? Is it pending/installed/accepted or what?
 

kkenny

Active Member
Messages
1,950
Reaction score
0
Points
36
Make a post for request for php version 3 in the free hosting forum, and if they ask for the reason, post your reason and show a link to this thread. that should be suitable for a php version 3.
 
Top