Changing directory now cannot get into admin
-
I was trying to follow directions from http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to redirect from a pre-existing subdirectory to the root directory. I made a mistake in the index.php:in copying, adding a line, and moving it. Now I cannot access the site nor the wp-admin.
My install is at: im.mikediane.com/wp
The root directory I was trying to use was: im.mikediane.com
I had changed the site address on the General panel.Can anyone please help?
Thank you,
Diane
-
Now, Martin, I have the wordpress install in the root. I opened the set-up and it all was working fine.
I moved the /wp/wp-config.php to the root. There is no: /wp/.htaccess What do I do about that?Now the new password does not work on the wp-admin login. Is this expected at this point?
After the action I need to take on the above two questions, I understand I’m supposed to move all the files and folders from /wp/wp-content into the new core wp-content folder. Correct?
This is going pretty well. Thanks!
DianepwDiane, when you created the new database, did you use the same password as you did w/the old install? If not, you’ll need to change that in the wp-config.php file.
Hi Martin,
This is where I am. I understand about the log in now. I can get into the admin page now. All the posts and pages are available on the admin page.I still get a 500 error when I address im.mikediane.com
I don’t have an htaccess in the root. I followed Jackie’s directions to get an htaccess by using the permalinks settings. But that still didn’t make the site live.
Any ideas?
Thanks,
DianeHi Jackie,
Thanks for your input too. When the site didn’t show up after the new install, I tried deactivating the only plugin that was active, askimet. It didn’t make any difference. The site is still blank at: im.mikediane.comWell, I can’t go any further now (it’s 3pm Sat here), so I’ll wait until you two are able to get back to me. Tomorrow is Sunday here, so I won’t be able to do anything with this for about 24 hours, unless you have the solution when I check in before bedtime tonight.
Thanks so much!
DianeThe cpanel scripted install is a likely bad idea given the various manipulations that already have occurred manually. And given the fact there are some good parts must not be overwritten.
My instructions above included nothing about running install.php nor creating a new database so there’s now some more new issues in play on top of everything else. Looking back, I could have been more clear. Not to worry, I’ve been through this manual repair literally hundreds of times. We can recover so long as your posts are present in the dashboard.
When I address im.mikediane.com I get the same language selection screen Jackie described. It think it means the erroneous install.php still is attempting to finish.
I’m going to suggest no further modifications whatsoever until we can get together synchronously for perhaps a 30 minute period, I’m on UTC-4, posting this at 0850 Sat, available now for a short while…
@pwdiane if you write @santeven in a new forum post I’ll get an email on my phone and try to check in if I’m near my workstation
I no longer get that screen. It’s just stuck. However, before it got stuck, there was a screen that said:
Intermin Just Another WordPress SiteSo I assumed that part was working.
Then you said you moved the wp/wp-config.php file to the root. So the first question that arises in my mind is was a good wp-config.php file inadvertently overwritten? The username, password, & database name need to be identical to the database you created for the site. Additionally, a database user w/all privileges needed to have been created at the time the database was created. That can still be done, actually, it’s just that you’ve got to go into the ‘MySql Databases’ aplet of your CPanel & ensure that the user created for the database governing this site has all privileges.
Also, PW Diane, could you paste any wp-config.php file lines to your next reply *that contain the word ABSPATH*. No others, please–WP-Config.php does contain some *very* sensitive information, & I surely would not want that pasted here lol (I have actually seen that occur in some posts–gulp!).
Lastly, PW Diane, your CPanel has, under its ‘Log’s tab, an area called ‘Error Logs’. It really might not be a bad idea if we could see the errors that occurred after last night’s manual install to the root. Those can be pasted into your reply, without fear, I think, of divulging sensitive information.
My idea for the CPanel install was actually *before* this last site was installed manually–again, I just thought it’d be easier.
Good morning to both of you. It is now Sunday evening here in Malaysia. I’ve had a busy weekend and couldn’t be at my computer. Martin, I don’t know exactly how to send you that message on a new forum post, but I’ll give it a try.
I am willing to wait until you have time and we can coordinate working together on this. Would you do it over Skype, or just both being on our computers at the same time and sending these forum messages back and forth? I’m just not quite sure how all of this works.
I’m usually away from my computer on Mondays, so I’m proposing we try to make a time on Monday evening, your time, or anytime after that that you want to set. I am exactly 12 hours ahead of you.
I will not do anything else on this until we can work together.
Thank you,
Diane@pwdiane … you write the @—– here in a post in THIS topic to send message… We stay here in the forum only so everything is documented. Ready to work some right now?, I’ll be around for another 10-15 minutes, otherwise lets plan for roughly 24 hours from now.
I missed your message. It’s ok. Let’s aim for tomorrow about 8? I’ll be on and watch for your message. Thanks,
DianeHere’s a pretty good reference: http://www.howtospoter.com/web-20/wordpress/wordpress-guide-dissection-of-file-structure … Please study it carefully. And note it is seven years old and applies to an older version.
I’m off to bed, will check in the morning. And thinking a different tack is in order. Instead of me telling you what to do, why don’t you tell all of us what you think you should do?
I’m on line and ready to go.
Hi Martin,
My son taught me to build web sites with php and html, by showing me where I could read material and then helping me sort out the problems. I do like that way of learning, so I am not so dependent on others in the future.I read the article from the link you sent. I found a line in the htaccess file that was additional to the one in the article.
I also remember that I never removed the two lines from the functions.php file.
Am I on the right track?
From the last previous reference: http://www.howtospoter.com/web-20/wordpress/wordpress-guide-dissection-of-file-structure
1. WordPress Installation Path
Point one on the image above it is simply a location of ALL your WordPress blog files on your host.
From the very first reference provided by @songdogtech: http://codex.wordpress.org/Changing_The_Site_URL
On the Settings->General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”. They are important settings, since they control where WordPress thinks your site is located. They control the display of the URL in the admin section of your page, as well as the front end, and are used throughout the WordPress code.
The “Site Address (URL)” setting is the address you want people to type in their browser to reach your WordPress blog.
The “WordPress Address (URL)” setting is the address where your WordPress core files reside.Note: Both settings should include the http:// part and should not have a slash “/” at the end.
***************
Edit functions.php
If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.
1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor and upload it back to the site.
2. Add these two lines to the file, immediately after the initial “<?php” line.
update_option(‘siteurl’,’http://example.com’);
update_option(‘home’,’http://example.com’);Use your own URL instead of example.com, obviously.
3. Upload the file back to your site, in the same location. FileZilla offers a handy “edit file” function to do all of the above rapidly; if you can use that, do so.
4. Load the login or admin page a couple of times. The site should come back up.
Important! Do not leave those lines in the functions.php file. Remove them after the site is up and running again.Thank you, Martin. I will do this. I have Filezilla, so it should be pretty straightforward.
I’ll let you know how it goes.
I’ve tried to add another post, but it is not showing up.
I changed the functions.php file and saved it. I logged out of admin and back in about a half dozen times and cleared by browser cache and still get the 500 error.
The general settings are correct too.I’ve logged out of wp-admin and logged in again about a half dozen times and I cleared the cache on my browser, but I’m still getting the 500 error.
The topic ‘Changing directory now cannot get into admin’ is closed to new replies.