LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2009, 04:50 PM   #1
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
Mediawiki install on Debian Etch over ssh


For experimenting purposes I set up a clean install of Debian Etch and apt-got Mediawiki. If I test the lan ip of that box in a browser Apache pops up with the
"It works!" message.

What I cannot figure out, and I do have googled , is how I can access Mediawiki's
setup php script. That is , access it from the lan. I tried ssh'ing into it and viewing localhost on links2.. no good.

The server has a fixed ip, 192.168.1.160 and that one is accesible from the lan (ping/apache as mentioned) , and name resolving is good.

It seems webroot is /var/www/apache and mediawiki stuff is in /var/lib/mediawiki1.7/config...
 
Old 01-28-2009, 05:10 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I installed MediaWiki into my Apache root directory, and simply entered this into a web browser:This automatically runs "setup" the first time.

In your case, it sounds like this would mean installing into "/var/www/apache/" (creating the directory "/var/www/apache/mediawiki1.7"). You could, of course, create an Apache "Alias" and corresponding "<Directory ...>" for any location you want.

This example uses "localhost", but "servername" and/or IP address should be equivalent (provided you've configured Apache for remote access, with the appropriate "allow from" directives under "<Directory ...>").

'Hope that helps .. PSM

Last edited by paulsm4; 01-28-2009 at 05:12 PM.
 
Old 01-29-2009, 01:00 AM   #3
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
This sounds like a way to go.

How would you recommend setting "<Directory ...>" so that I can access the things living in /var/lib/mediawiki1.7 ?
And how to configure Apache so that it let lan have remote access ? I know "it works" is that what you mean ?

Thanks for the reply.
 
Old 01-29-2009, 06:22 AM   #4
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
"Fixed" this in a way I don't wanna call proper:

cp /var/lib/mediawiki1.7/* -R /var/www/apache2-default/
chown www-data:www-data var/www/ -R
chmod 777 var/www/apache2-default/

Now I can go to localhost/wiki and do (succesfully) the php setup script.

Wiki up and running , but highly insecure.
 
Old 01-29-2009, 03:55 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Just by way of example, I happen to have MediaWiki installed on Windows/XP, using Wamp 2.0 (a combined Apache/PHP/mySQL package). WAMP configures Apache as follows:

1. The WAMP root directory is d:\wamp

2. The Apache document root is d:\wamp\www

3. Apache itself is in d:\wamp\bin\apache\Apache2.2.11

4. The main Apache configuration file includes these entries:
Code:
   notepad d:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf =>
ServerRoot "d:/wamp/bin/apache/apache2.2.11"
...
ServerName localhost:80

DocumentRoot "d:/wamp/www/"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "d:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Allow,Deny
    Allow from 127.0.0.1
    Allow from 192.168
</Directory>
...

Include "d:/wamp/alias/*"
The first <Directory /> sets global defaults.

The second <Directory "d:/wamp/www/"> overrides these with explicit settings for the document root (including allowing any client in the 127.0.0.1 or 192.168 address ranges to connect).

The final line, "Include 'd:/wamp/alias/*'", is intended to set up other, virtual web sites.

As it happens, I didn't set up a virtual server, I just created a simple alias. But here's the seperate, Apache include file for my MediaWiki site:
Code:
   notepad d:\wamp\alias\tngwiki.conf =>
Alias /tngwiki/ "d:/wamp/www/mediawiki-1.13.3/" 
Alias /tngwiki "d:/wamp/www/mediawiki-1.13.3/" 

<Directory "d:/wamp/www/mediawiki-1.13.3/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from 127.0.0.1
    Allow from 192.168
</Directory>
The principle is the same regardless if you're on Windows or Linux; whether you've got a virtual server or an alias.

'Hope that helps .. PSM

Last edited by paulsm4; 01-29-2009 at 04:02 PM.
 
Old 02-02-2009, 02:14 PM   #6
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
I realiced my problem, I simply don't know my apache. Amazon order placed..thx for sharing the config files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up SSH With Public-Key Authentication On Debian Etch LXer Syndicated Linux News 0 03-30-2008 11:50 AM
LXer: Chrooted SSH/SFTP Tutorial (Debian Etch) LXer Syndicated Linux News 0 09-09-2007 01:20 PM
null permissions on .ssh dir of a debian etch gabsik Linux - General 2 05-31-2007 07:23 AM
Debian Etch netinstall boot floppy with ssh fakie_flip Debian 0 08-08-2006 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration