pwdstone Posted November 24, 2009 Posted November 24, 2009 I have followed the procedures for changing domain names on a Wordpress MU install and moving to a new host. I changed the domain in "wp-admin/options.php" whilst logged in on the previous host, then copied files over to the new host where I also edited wp-config.php in Notepad++ to give the new domain name. I similarly edited the .sql dump with a find/replace for the domain names. This was then imported with the same database (manually created in MySQL console) and user (same) names as before, with "All" permissions granted to the user on the database. I wrote a test script to connect to the DB using the credentials using PHP which worked. The hostname for the DB has been changed to "localhost" in "WP-Config.php". PHP is installed and PHP info indicates that mod-rewrite is enabled. Ubuntu Server with latest APACHE2/PHP/MySQL installs via apt-get. When visiting the site I just get a directory listing as per- http://www.sallyandpeter.co.uk/screenshot.JPG All plugins have been disabled and theme set to WP Classic with no change. Any ideas?
Willott Posted November 24, 2009 Posted November 24, 2009 index.php set as a DirectoryIndex in apache config? Can you access the index.php file if you add that in the URL and does it display correctly? Cheers Will
pwdstone Posted November 24, 2009 Author Posted November 24, 2009 (edited) I can see where you're going with this and I had already checked. Index.php directs back to /blogs/ and shows the directory listing. Some php pages contained within wp-admin (for example wp-login.php) DO work and I can use some functions. The backend seems to work perfectly. Instinct tells me this is something to do with mod_redirect but then I can see student blogs and even individual posts- and not in the ?=xx format, these directly link with /dd/mm/yy/title URLs. Something odd going on for sure. I've tried disabling plugins, but maybe I should try deleting them and themes altogether? I can copy a virgin theme back from the distribution. Edited November 24, 2009 by pwdstone
Willott Posted November 24, 2009 Posted November 24, 2009 (edited) That still seems to me to suggest the apache DirectoryIndex being either changed or removed somewhere (it's the setting that choses what file to look for when you access /blog/). Other place to check is your apache error and access logs to see if there's anything there to give you a clue. Cheers Will Edited November 24, 2009 by Willott Spelling = crap
SteveMC Posted November 24, 2009 Posted November 24, 2009 One other thing - is there anything lurking in your .htaccess file that may be upsetting the URL rewriting? Stephen
pwdstone Posted November 26, 2009 Author Posted November 26, 2009 Modifying directory index did solve this issue. I used to have a seperate .htaccess file that sat in the folder below that did this, but didn't move it when I moved the blogs. Thanks for the assist.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now