Hey Josh,
I believe what you are looking for is Short URLs:
http://www.mediawiki.org/wiki/Short_URL
The reason why you were able to successfully login is because the login page
link is
http://newserver.url/syswiki/index.php?action=login&other=params
http://newserver.url/syswiki/index.php/Main_Page
-or-
http://newserver.url/syswiki/index.php?title=Main_Page
-is not the same as-
http://newserver.url/syswiki/Main_Page
In the first 2 cases, the server knows you are referencing "index.php" and
"Main_Page" is a parameter passed to it.
Where as in the third case, the server is looking for a web page/file called
"Main_Page", which results in a 404/Page Not Found error.
Someone please correct me if i am wrong, but I believe the issue here is
your server's rewrite rules and the Short URLs link provided should
hopefully resolve this. :D
Walter Mazza
On Wed, Dec 3, 2008 at 10:25 AM, Josh Greenberg <josh(a)pha.jhu.edu> wrote:
I'm trying to upgrade my mediawiki version and
also move it to another
server all at once. I've followed the documentation, sometimes
performing the steps in different order, with the same result each time.
Here are the details.
Old server/versions:
OS: SL42 (SL is RHEL derivative so same as RHEL4), kernel 2.6.9-34.ELsmp
Mediawiki 1.8.2
PHP 4.3.9
MySQL 4.1.22
New server:
OS: SL51, kernel 2.6.18-92.1.10.el5PAE
Mediawiki 1.13.2
PHP 5.1.6
MySQL 5.0.45
The steps I took to do the migration are:
Backup wiki from old server (mysqldump -u root -p wikiDB > wikiDB.sql)
scp wikiDB.sql to new server
untar new version on new server
copy LocalSettings.php, AdminSettings.php, extensions dir, images dir,
and our logo to new server
import wikiDB.sql into mysql database on new server (mysql -u root -p
wikiDB < wikiDB.sql)
ran maintenance/update.php on new server with successful output
I was able to navigate to the mediawiki web page on the new server and
was able to login (got to "Login Successful" screen) but when I click on
the "Return to Main Page" link or any link in the navigation bar running
down the left side, I receive the error "The requested URL
/syswiki/Main_Page was not found on this server." Trying to navigate to
"Categories" produces the error "The requested URL
/syswiki/Special:Categories was not found on this server." The
corresponding apache errors are:
[Wed Dec 03 11:19:07 2008] [error] [client 128.222.123.123] File does
not exist: /var/www/html/default/syswiki/Main_Page, referer:
http://newserver/syswiki/index.php?title=Special:UserLogin&action=submi…
[Wed Dec 03 11:19:28 2008] [error] [client 128.222.123.123] File does
not exist: /var/www/html/default/syswiki/Special:Categories, referer:
http://newserver/syswiki/index.php?title=Special:UserLogin&action=submi…
I'm not sure what I'm doing wrong. I've followed the documentation to
the letter and have been googling this for a while with no results. I
hope its a known error but suspect that its a problem with
LocalSettings.php or an apache setting that conflicts with the newer
mediawiki version. Let me know if you need any other info like local
variables. Any help is appreciated. Thanks in advance!
Josh
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l