Plusnet
Monday 22nd March 2010Login | Register | Help
Pages: [1]

Mediawiki install failure

« on 14/02/2006, 04:37 »
I'm trying to install a copy of Mediawiki to my webspace and am stumped.

Is it possible?

I've been following the instructions here:
http://meta.wikimedia.org...ocumentation:Installation
I don't know if plusnet is running an apache server, or if that's really needed, but I proceeded on the assumption that the plusnet setup will support it.

I activated my webspace, CGI, and SQL.
The installation instructions tell me to create a database, and I have one (cybersphere_pn), but they also say to create a database user. I don't know how to do this, or if I need to. Help!

I've copied the mediawiki install files to my webspace (in a folder "wiki" under htdocs). I have set the permissions to on the wiki/config folder to 777 as instructed.
Now I'm supposed to be able to go into the config folder in my browser, click index.php,  and have a setup page run. This doesn't happen. I'm prompted instead to open a php editor.

Is this problem solvable, and if so, how?
Logged
  • theattic
  • Guest
« Reply #1 on 14/02/2006, 10:22 »
Quote

Is it possible?


Hi

Yes, it is possible, see here.


Quote

I've copied the mediawiki install files to my webspace (in a folder "wiki" under htdocs). I have set the permissions to on the wiki/config folder to 777 as instructed.


Try 770

Quote

Now I'm supposed to be able to go into the config folder in my browser, click index.php,  and have a setup page run. This doesn't happen. I'm prompted instead to open a php editor.


I'm not sure why the set up page doesn't work for you. Have you got the paths right?

Quote

Visit the directory in which the wiki resides in order to run the installation script.

For example: if your domain is example.com and you are installing your wiki in a folder called mediawiki, you will need to access http://example.com/mediawiki/ as this will lead you to the install page. The way you upload your files can cause some minor differences in how you get to your configuration screen. You can create and upload a main Wiki folder or instead you can upload all the files seperately from your Desktop to your root folder. Once uploaded, after you change permissions on your config folder you may have to type http://example.com/mediawiki/config/ or even http://example.com/mediawiki/config/index.php into your browser before your install page will load.
Logged
  • Peter Vaughan
  • Usergroup Member
  • *
  • Posts: 13702
  • Unofficial ledgendary bright spark bod!
  • View Profile
« Reply #2 on 14/02/2006, 10:35 »
Quote
I
I activated my webspace, CGI, and SQL.
The installation instructions tell me to create a database, and I have one (cybersphere_pn), but they also say to create a database user. I don't know how to do this, or if I need to. Help!


You can't (and don't need to) create a user, PN have done that for you already - it's your normal login name.

Quote
I've copied the mediawiki install files to my webspace (in a folder "wiki" under htdocs). I have set the permissions to on the wiki/config folder to 777 as instructed.


The ccgi server does not have a htdocs directory which probably means you have copied the files onto the wrong server - i.e. the www server (your www webspace is separate from your ccgi webspace). To upload to your ccgi webspace you ftp to ccgi.username.plus.com or cshell.plus.net.

Also you must never set all or world permissions on files on the ccgi server, it does not work. You must use 770 or 750.

Finally, when you do copy your files to the correct server, do not put php files into the cgi-bin directory and run the fixphpperms.sh script from your root directory before running any php files.

Quote
Now I'm supposed to be able to go into the config folder in my browser, click index.php,  and have a setup page run. This doesn't happen. I'm prompted instead to open a php editor.


You are on the wrong server - see above.
plusnet ADSL Customer (PlusNet Pro)
PlusNet Usergroup | PUG Forums | Usertools | PUG Issue Tracker - Please vote!!
Volunteer at the National Museum of Computing @ Bletchley Park - Looking for donations of old games consoles, PCs and software. Contact me for details
Logged
« Reply #3 on 14/02/2006, 11:20 »
Aha, yes, it looks like I've made an elementary mistake. So obvious now Smiley
I've uploaded the files to the CGI space, in a "wiki" directory.

To run the mediawiki setup script, I need to set permissions on the "wiki/config" config folder, as described here:
http://meta.wikimedia.org...ns_on_.22config.22_folder
( or: http://tinyurl.com/7trj5 if that link is broken).
How do I do this? I'm new to to this php/cgi stuff, and don't know how to create or run a script file.
One method listed is:
Quote

So you need to change the group of all files to www-data, and give group write access to the config directory:
cd /var/www/mediawiki-xyz
chown -R root:www-data *
chmod -R o-rwx *
chmod -R g+rw config

How do I run commands like those? Do I put them in a php file and upload them, then click on them, or is there some command line app I should be using? I'm in the dark here.

Also, I've found that fixphpperms.sh script, but obviously don't know how to run it.
Logged
  • Peter Vaughan
  • Usergroup Member
  • *
  • Posts: 13702
  • Unofficial ledgendary bright spark bod!
  • View Profile
« Reply #4 on 14/02/2006, 11:30 »
You need to telnet to the ccgi shell (cshell.plus.net) and from their you can issue the commads given, but don't do the chmod -R root: one as it is not required.
plusnet ADSL Customer (PlusNet Pro)
PlusNet Usergroup | PUG Forums | Usertools | PUG Issue Tracker - Please vote!!
Volunteer at the National Museum of Computing @ Bletchley Park - Looking for donations of old games consoles, PCs and software. Contact me for details
Logged
« Reply #5 on 14/02/2006, 11:36 »
By the way, I tried setting the permissions on config to 770 in CuteFTP, and then when I went to the folder in my browser, recieived this error page:
Quote
Execution of (wiki/config/index.php) is not permitted for the following reason:

Script is not executable. Issue 'chmod 755 filename'

Server Data:

Server Administrator/Contact: support@plus.net
Server Name: ccgi.cybersphere.plus.com
Server Port: 80
Server Protocol: HTTP/1.1
Virtual Host: ccgi.cybersphere.plus.com

Request Data:

User Agent/Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 9.00
Request Method: GET
Remote Address: 80.229.224.127
Remote Port: 3141

(I've tried opera, firefox, and IE, just in case.)
Logged
« Reply #6 on 14/02/2006, 11:39 »
I didn't see the telnet reply before my last post.
Any recommendations for a good free or shareware telnet client?
Logged
  • theattic
  • Guest
« Reply #7 on 14/02/2006, 11:41 »
Quote

Script is not executable. Issue 'chmod 755 filename'


You need to change 755 to 750.

Run the  fixphpperms.sh script in the way that Peter  has posted.
Logged
  • theattic
  • Guest
« Reply #8 on 14/02/2006, 11:51 »
Quote

Any recommendations for a good free or shareware telnet client?


You can do it from the msdos prompt.

Start > cmd ( or command if you are using windows 98 ) > run > type in telnet. You will then get the telnet page. Enter cshell.plus.net and enter your PlusNet user name and password.

I think you can get to Telnet direct from the msdos prompt but I've forgotten now.
 :wink:
Logged
« Reply #9 on 14/02/2006, 12:09 »
After running the fixphpperms script, I now recieve a slightly different error:

Quote

Execution of (wiki/config/index.php) is not permitted for the following reason:

Script is group writable.
<snip the rest: same as before>


I also followed this by running the two chmod commands (not the root:www-data one), and the error stays the same.
Logged
Pages: [1]
Jump to:  

Related Sites

Community Apps

Here at Plusnet we're always trying to use clever open source things to make our lives easier. Sometimes we write our own and make other people's lives easier too!

View the Plusnet Open Source applications page

About Plusnet

We sell broadband, phone, VoIP and more to homes and businesses in the UK. Winner of 9 out of 11 Categories in the 2008 USwitch survey. Winner of "Best Consumer ISP" at 2008 ISPA awards. Voted number 1 in the Broadband Choices 2008 survey.

© Plusnet plc All Rights Reserved. E&OE

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Add to Technorati Favourites