a how to guide for installing wikimedia

trainzguy1160

New Member
Messages
13
Reaction score
0
Points
0
Hi there. I'd like to put a wiki on my site, but find the instructions confusing and hard to follow.
Does anyone know how to install a wiki?
If so, could a guide be written to help others out?
It'd have to be easy to follow though.
Thanks for helping me to install a wiki on my site.
trainzguy :biggrin:
 

Xemnas

New Member
Messages
812
Reaction score
0
Points
0
To install MediaWiki:
1. Download the latest version as a compressed file from the MediaWiki website (Wikimedia is an NPO, or non-profit organisation)
2. Upload the file to your public_html directory. The cPanel File Manager has an upload function, but I prefer to use an FTP client.
3. Extract the files and folders.
4. You'll now need to create a MySQL database. In cPanel select "MySQL databases" and follow the instructions to create the DB. You can name it whatever you want, but make sure to remember the name.
5. Next, follow the instructions to create a MySQL user. Make sure to remember the username and password. Once created, there should be an option to add the user to your wiki's database. Select it and give the user ONLY the following permissions:
create
select
insert
update
delete
alter
lock tables​
6. In your web browser, navigate to the wiki directory of your site (if you installed MediaWiki into a folder named "wiki" in public_html, on a site name "example.x10hosting.com", the path will be "example.x10hosting.com/wiki").
7. There should be a link to the installation script. Click it and follow the instructions to set up your wiki.
8. Once the wiki has been installed successfully, go to your wiki directory and delete the folder named "config".​
Note that you can expect to be following these same steps for nearly every kind of site software out there.

Once you've installed MediaWiki, you may want to look at the MW web site for extensions and ways to rewrite the URL to look like "/wiki/Page_Title" using a .htaccess file.
 
Last edited:

trainzguy1160

New Member
Messages
13
Reaction score
0
Points
0
Hey, thanks Xemnas!
trainzguy
PS. Could we sticky this to help other people out?
Edit:
Xemnas, when I finish installing MW, it tells me to move LocalSettings.php back to the parent directory. And when I delete the config file and follow the link to my wiki, it comes back up with "set up" mediawiki link.
I followed all your instructions to the letter.
PS. I'll see if I need to move the LocalSettings.php first
What am I doing wrong?
EDIT: All fixed!
 
Last edited:

slpixe

New Member
Messages
23
Reaction score
0
Points
0
Hey, sorry, but I encountered a problem, I upgraded to intermediate PHP as I looked up I needed to do before, and I followed these instructions perfectly, and after loading up wiki, and clicking set up wiki, it gives me a instilation but looks stuck on this

Warning: shell_exec() has been disabled for security reasons in /home/******/public_html/wiki/config/index.php on line 1822

so I look into it, and I find this

http://forums.x10hosting.com/free-hosting/57163-mediawiki-help.html
we need to stop the shell_exec by looks of it

so to stop posting on there, I will ask here, I had a go at commenting out the function, the whole "locate_executable" function, and have just been having it load, the solution on the other thread, was to install it on home pc, and then upload it all, is there any way of being able to easily do it on this remote server?
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
You could see if the Admins will let you have the Advanced PHP version as shell_exec() is enabled in that version.
 

slpixe

New Member
Messages
23
Reaction score
0
Points
0
I would love to apply for it, but as it appears some people have been able to get around the exec, and after looking it up, theres been messages saying you can chance the exec to a different sort of execute command, but I have just been unable to find the exec in any of the codes (yes I ran a find).

so if I am unable to receive either the exact part I need to change, then I may as well ask for the advanced, as I still plan to install an image galley, and I believe it may require the exec as well.

Anyway I'm still awaiting methods around this.

Thanks in advance
 
Top