Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-16-2006, 11:56 AM   #1
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415

Rep: Reputation: 31
Question How to configure the URL in Apache for MediaWiki?

Hello friends, here at work we installed wiki in a LAMP server for use in the Intranet. What we want to do is just type the IP address and get the wiki page. Now, we type the IP: and get the folder which is: /mwiki1.7.1. We were trying to configue apache at /var/www/mwiki1.7.1 but I get an error:

Not Found
The requested URL /mwiki1.7.1/index.php/Main_Page was not found on this server.

Apache/2.0.55 (Ubuntu) PHP/5.1.2 Server at Port 80

How can I acomplish this??

Old 08-18-2006, 05:49 AM   #2
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
Are you saying that you have to enter to get to the page, but you want to just enter ?

If so then you just need to change your DocumentRoot

in /etc/apache2/sites-enabled/<yoursitename> (perhaps default)
find the reference to DocumentRoot and change it to
DocumentRoot /var/www/mwiki1.7.1

The reload apache
/etc/init.d/apache2 reload

If I've misunderstood your problem please give more details including the full urls that you are entering / wanting to be able to use.
Old 08-18-2006, 09:01 AM   #3
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415

Original Poster
Rep: Reputation: 31
Yes pinguiintutor we tried that and as I indicated above I get this error at the web browser:

Not Found
The requested URL /mwiki1.7.1/index.php/Main_Page was not found on this server.

Apache/2.0.55 (Ubuntu) PHP/5.1.2 Server at Port 80

What we decided to do is to place everything at the root (/var/www) and eliminate the mwiki directory.
Old 03-04-2012, 09:39 PM   #4
LQ Newbie
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
I don't know how old this thread is but I was having is exact same issue, when attempting to move a mediaWiki from an outdated Server to a new Server, I went from Debian to OpenSuse (Debian is great, I just prefer OpenSuse) anyway, I tried everything just like what was stated here, changing my httpd.conf and default-server.conf and nothing was working. Then after some researching I changed the htaccess section of http.conf | Allow from all | instead of Deny of all, then created the .htaccess file in my main www directory (mine was /srv/www/htdocs) and in that file set "DirecoryIndex /mediawiki/index.php5 index.html index.php" and reset my server and it finally worked!!! I hope this info helps others with this issue!
1 members found this post helpful.
Old 03-05-2012, 05:41 AM   #5
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
very well
I am not very sure about the syntax used in debian or openSUSE but in centos here is all what you need virtual hosting for the same

in httpd.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Options FollowSymlinks Multiviews
AllowOverride None
Order allow,deny
Allow from all

Instead of /var/www/html just mention the path of your file to open it on your browser



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
Apache 2.0.52 without / on the end of url ZC1 Linux - General 1 05-20-2006 10:39 AM
URL redirecting in Apache Marq Linux - Software 4 01-03-2006 12:41 PM
apache and url help cambie Linux - Software 1 08-11-2005 08:49 AM
apache, url play Robert0380 Linux - Software 5 06-08-2003 02:04 PM
Apache Url simquest Linux - Software 2 11-26-2002 03:46 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:16 AM.

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