Work note about my website on WordPress

@20190221

1, Login link: http://***.com/wp-login.php

2,  I moved my website on a online hosting server to my local server on my computer. It always went to its online website. Later I changed ‘***.com’(online url) to ‘localhost’ in the values of a few records in the option_value column of the wp_options table and and meta_value column of wp_postmeta table. It shows it’s not need to change all of them. It works fine now. 

3, If it’s alway redirected to dashboard, check config.php.

Add the two lines or change related lines:

define(‘WP_HOME’, ‘http://localhost/yourwebsite’);
define(‘WP_SITEURL’, ‘http://localhost/yourwebsite’);

Then visit http://localhost/yourwebsite/wp-admin.

@20190221

Try to update wordpress:
1, need ftp username and password to local XAMPP server.
It’s said on the terminal run this command as below, it will show it.
/Applications/XAMPP/xamppfiles/xampp security
But it shows: You need to be root to perform this action.
2, Go to Mac Apple menu, follow an instruction on apple website, to active su (super user) and set a password.
3, go back to the terminal, get ftp user and password.
4, the hostname is ‘localhost’; put the line as below in the wp-config.php as a posting on the website said:
define(‘FS_METHOD’,’direct’);
5, the download is ok, but it’s said: Could not create directory.
This command works:
chown -R ftp-user-name:ftp-user-name /Applications/XAMPP/xamppfiles/htdocs/iblog

In addition, I tried “chmod 777” first and it didn’t work.

chmod -R 777 ...  --- recursively

The ‘ls -l’ command is useful to see the details of folder’s right assignment.

Leave a Reply

Your email address will not be published. Required fields are marked *