Greetings
Have used MediaWiki for years at work, but have never had to install it
before. So when I needed a wiki for an extracurricular activity, I wanted
to use what I was familiar with.
I have a website with an 'internal' password-protected directory (Exec)
sitting off document root so we can run a few admin scripts, etc. I want to
include a private wiki in that space.
For technical reasons, I am unable to run a browser to run the
installation, so I have to do it manually via command line.
So I untarred mediawiki, named it wiki, and place it at
.../httpdocs/Exec/wiki. I manually create the empty database and user then
run the following command from that directory
# php maintenance/install.php mediawiki mediawiki --pass xxxxxxx
--scriptpath wiki --dbuser xxxxx --dbpass xxxxxx --dbname xxxxxxx
I get a few warnings about optional libs missing, and one in particular
which might be relevant:
"Warning: Your default directory for uploads (/var/www/vhosts/
mysite.com/httpdocs/Exec/wiki/images/) is not checked for vulnerability to
arbitrary script execution during the CLI install."
then it proceeds to:
=================================
Setting up database
done
Creating tables
done
Creating database user
done
Populating default interwiki table
done
Initializing statistics
done
Generating secret keys
done
Creating administrator user account
done
Creating main page with default content
done
================================
Looks good so far. I go to
www.mysite.com/Exec/wiki/index.php, it redirects
to
www.mysite.com/Exec/wiki/index.php/Main_Page. It exists, but its butt
ugly and a couple of broken image links. While I'm not completely sure what
a skin is, this ain't it. Furthermore, selecting certain links (e.g.
"Read") sends me to a recursive url like this:
http://www.mysite.com/Exec/wiki/index.php/wiki/index.php/wiki/index.php/Wik….......
..
and this error:
"The requested page title was invalid, empty, or an incorrectly linked
inter-language or inter-wiki title. It may contain one or more characters
that cannot be used in titles."
Somehow my "scriptpath" (aka $wgScriptPath) must be wrong, but I can't
figure it out. Really hoping my wiki have to be sitting directly below
document root (which isn;t an option). I've started from scratch a couple
of times, but nothing changes. To the experienced admins on this mailing
list, is there anything obviously wrong?
Any help would be appreciated.
Greg