Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Migrating to new server, questions.
Avatar
pruckelshaus #1
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
Subject: Migrating to new server, questions.
Old server: Windows 2012 R2 VPS, IIS, PHP 5.3
New server: Windows 2016 VPS, IIS, PHP 7.1

Got IIS configured, installed PHP 7.1 via the Web Platform Installer.  Tested a very basic PHP page and it processed it fine.

Copied my old DokuWiki site from the old server to the new server, pointed a test subdomain at it, get a 500 Internal Server Error.  Should I uninstall PHP 7.1 and install PHP 5.3 instead?  Is there a way to just do a clean install of the latest DokuWiki files (I was having trouble updating anyway) and then copy just data over?

Thanks,

Pete
Avatar
LarsDW223 #2
Member since Sep 2014 · 462 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
The problem is maybe a plugin. For a test you could manually copy the plugins to a backup and delete the plugins in the dokuwiki installation. Then try again. Not all plugins work with PHP 7.1. But DokuWiki itself should work.

By the way the minimum PHP version for DokuWiki itself if 5.6, see https://www.dokuwiki.org/requirements.
Avatar
pruckelshaus #3
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the tip.

I'm OK with not being bleeding edge, would rather just get the site up and forget about it.  Is DokuWiki more reliable/stable with 5.6 or should I just install the latest stable version of PHP?
Avatar
StarArmy #4
Member since Nov 2011 · 124 posts
Group memberships: Members
Show profile · Link to this post
I run a large Dokuwiki installation on PHP 7.1 (Ubuntu server) and it's working without any issues, so I don't think there's a problem with using PHP 7.1 with Dokuwiki. You could try uninstalling your plugins temporarily and install them one by one on the new server until you find the one that is the problem.
Avatar
pruckelshaus #5
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
OK, spent the evening getting a clean install running on the new server after not being able to get a complete copy of the old server's dokuwiki files to work properly.  I have the same plugins installed and do not have any issues with any of them (so far).

I have not replicated all of the admin settings from the old server, but can if I need to.  Will I need to?  Where are those settings stored in DokuWiki?

To import the data from the old install to the new install without messing anything else up with my new configuration/install, it is my understanding that I can copy over the following directories:

- conf
- data

Is that all there is to it?

Thanks again
Avatar
LarsDW223 #6
Member since Sep 2014 · 462 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
After copying conf and data you should update the index, see https://www.dokuwiki.org/indexer.
Avatar
pruckelshaus #7
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
I'm about to tear my hair out...

New Amazon VM running Windows 2016 Server/IIS with PHP 7 installed.  PHP works, a test page displayed fine.

Initially just tried the copy from one server to another migration plan.  Got errors, couldn't even see the site.

Did a clean install.  Was able to see the bare Dokuwiki site and go through setup.  Needed to add IUSR permissions to a couple of directories, but got it working without too many issues.  OK, we're on the right track, or so I thought. 

Delete the "clean" /conf/ and /data/ directories (well, actually I moved them elsewhere).  Copied the /conf/ and /data/ directories from the old site on the old host.  Added IUSR permissions to a few directories.  As recommended, I ran the indexer, http://test.ruckelshaus.com/ lib/ exe/ indexer.php.  Main page loads properly, yay, progress.  Click on a link, 404 File not found.  I go look in /data/pages/ and see the directory, see the files, everything is there, but the pages are all giving 404's.

Here is the main page for the new web site (temporarily on a subdomain on my new host): http://test.ruckelshaus.com/doku.php
And here is the site on the old host (still the "live" one but I'd like to be off it sooner than later): http://www.vexwiki.org/

As soon as I get the site working on the new host, I will change the DNS settings to point the domain to the new host.

For instance, when you try to go to this page: http://test.ruckelshaus.com/robot_design/gear_ratios you get a 404, yet you can see in the attached screen shot of my filesystem that the files are indeed there.

Does anyone have ANY idea of what is happening here?  I feel like I wouldn't be having these issues if there was some sort of backup/restore data functionality that was baked into dokuwiki...

Thank you,

Pete
The author has attached one file to this post:
doku.PNG 13.7 kBytes
You have no permission to open this file.
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4785 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
make sure that the basedir value is pointing to your current dokuwiki.  There's a setting for this in the config manager, usually left empty, and in the .htaccess file for redirecting.  Also clear out the dokuwiki cache completely: data/cache.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
pruckelshaus #9
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
Quote by turnermm on 2018-02-24, 00:12:
make sure that the basedir value is pointing to your current dokuwiki.  There's a setting for this in the config manager, usually left empty, and in the .htaccess file for redirecting.  Also clear out the dokuwiki cache completely: data/cache.

I cleared out the cache.  The problem is that I can't get anywhere except the main page, so I can't log in, and I can't do anything with the basedir value.  I did find /conf/dokuwiki.php which does appear to set the basedir value, but changing the empty value to c:\phprool\dokuwiki broke everything.

Thanks for the help, but still stuck.

Pete
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4785 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Should simply be \dokuwiki
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
pruckelshaus #11
Member since May 2017 · 21 posts
Group memberships: Members
Show profile · Link to this post
I'm at my wits' end.  This is a community wiki, I pay for the hosting myself, and I just want it up and running again.  I tried again today a clean DokuWiki install.  Once I enabled IUSR access in IIS to the dokuwiki folder, I was able to get to the entire base site just fine, admin, all the things.  No problems whatsoever.

Go to the old site (the current live site, at http://vexwiki.org/ that I need to move off the server), use the backup plugin to create an archive.  Find the backup file, copy it to the new server, open up, and copy the contents to the dokuwiki install, allowing files to be overwritten.  I ensure that the IUSR account has access to the directories.

Main page displays fine - http://test.ruckelshaus.com/doku.php?id=start - but going to literally any other page gives a 404 in IIS.  I am neither a PHP nor a DokuWiki expert.  I just want to get this site running again so I can get on with my life.

Is there any such thing as a DokuWiki consultant?  Someone who can take a look at the server for a reasonable fee and get the site running again?

Pete
Avatar
turnermm (Moderator) #12
Member since Oct 2009 · 4785 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #1
Disable nice urls and see what happens.  See: https://www.dokuwiki.org/config:userewrite.  This should be changed to 0.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-26, 15:08:49 (UTC +01:00)