Topic on Project:Support desk

RESOLVED - Error 404 - Object not found. Internet access to wiki

7
213.114.173.20 (talkcontribs)

Hello!

I was able to setup a working wiki, accesible localy on the home computer. When I try to access the page over the Internet, I get a Error 404 - object not found error. I guess it has to do with som kind of file-atributes, but I don't know what. Localsetting or some kind of httpd?

The host is running a cuple of virtual hosts that is working fine. I have added one more to point to the right directory:

<VirtualHost *:80> ServerName klimatwiki ServerAlias wiki.hal1.se DocumentRoot C:/xampp/htdocs/mediawiki/ </VirtualHost>

I have also added this to http.conf in apache:

<Directory "C:\xampp\htdocs\mediawiki">

 Order Deny,Allow
 Allow from all

Options FollowSymLinks

   AllowOverride None
   Order deny,allow
   allow from all

</Directory>


Adres: http://wiki.hal1.se/wiki/Huvudsida Conf: Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9

Would be most thankful for any suggestions to solve this!

Bawolff (talkcontribs)

404 means file not found. If it was a permission problem you'd probably get a 403 forbidden.

Appears to be a re-write rule problem. Your $wgArticlePath is set in such a way to redirect to a directory that doesn't exist (for example, without redirection http://wiki.hal1.se/index.php?title=Main_Page&action=view works) It also thinks the style directory is somewhere other then it is, so there is probably a mismatch between what is in LocalSettings.php (for $wgArticlePath type variables) and what you have in your apache config.

90.230.227.43 (talkcontribs)

Hello again!

Thanks for the answer! I decided to try everything from the top again, but wirh the same problem. The link you provided still seems to work through, with no stylesheet.

This is how I did it, would be nice if you or anybode else could tell me where I'm doing something wrong.

I have a working installation of xampp with both a traditional html-site and a php joomla site, both configured as virtual hosts.

Their config in httpd.conf is:

"<VirtualHost *:80> ServerName hal1.se ServerAlias hal1.se www.hal1.se DocumentRoot C:/Hemsidan </VirtualHost>

<VirtualHost *:80> ServerName lekmera.nu ServerAlias lekmera.nu *.lekmera.nu DocumentRoot C:/xampp/htdocs/installation </VirtualHost>"

I downloaded and extracted the latest version of mediawiki in C:/xampp/htdocs/mediawiki. Used the adress http://localhost/mediawiki to access the setup. Did the config (all basic, no email-functions at all) Copied the localsettings-file to the right directory and followed the link to my new wiki. Everyting seems to work fine.

The I added another virtual host in my apache http.conf.

"<VirtualHost *:80> ServerName wiki.hal1.se ServerAlias wiki.hal1.se DocumentRoot C:/xampp/htdocs/mediawiki </VirtualHost>"

Then I restarted apache and tried to access http://wiki.hal1.se and get the Error 404 - object not found message.

Is there some part of the configuration I've missed?

Thanks in advance!

Johan

Bawolff (talkcontribs)

You need to add some things to LocalSettings.php. (Since mediawiki needs to know the path its accessed from, and you changed that since you first configuring mediawiki) Specificly

  • $wgScriptPath should be $wgScriptPath= ''; (from your description, its probably currently set to something like $wgScriptPath = "/mediawiki"; )

If you're trying to configure short url's, there other things you have to do, see Manual:Short URL

90.230.227.43 (talkcontribs)

Just wanted to add att big thank you for helping me with this. Your suggestion about the scripthpath solved the problem.

Once again, thanks!

Johan

90.230.227.43 (talkcontribs)