LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to configure the URL in Apache for MediaWiki? (https://www.linuxquestions.org/questions/linux-server-73/how-to-configure-the-url-in-apache-for-mediawiki-474445/)

cucolin@ 08-16-2006 11:56 AM

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: 10.0.0.1 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 10.0.3.107 Port 80

How can I acomplish this??

Thanks...

penguintutor 08-18-2006 05:49 AM

Are you saying that you have to enter http://10.0.0.1/mwiki1.7.1 to get to the page, but you want to just enter http://10.0.0.1 ?

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.

cucolin@ 08-18-2006 09:01 AM

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 10.0.3.107 Port 80

What we decided to do is to place everything at the root (/var/www) and eliminate the mwiki directory.

Zew 03-04-2012 09:39 PM

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!

deep27ak 03-05-2012 05:41 AM

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
Code:

<VirtualHost *:80>
ServerAdmin root@server.example.com
DocumentRoot /var/www/html/
ServerName server.example.com
<Directory /var/www/html/>
Options FollowSymlinks Multiviews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</Virtualhost>


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

Code:

http://localhost


All times are GMT -5. The time now is 09:55 AM.