How to update the wordpress

How to update the wordpress

1. Download the zip file from – https://wordpress.org/news/

 

wget https://wordpress.org/news/

 

2. unzip the downloaded zip file

 

unzip wordpress.zip

 

3. Now go to project directory and delete the wp-admin and wp-includes and replace it with new downloaded wp-includes annd wp-admin

4. Move the wp-admin and wp-includes in project directory

 

mv wp-admin wp-includes chiraag/

 

5. Now check the worpress admin area you can see the update .

Method 2

Create ftp user and mention the project directory to it

useradd -d /var/www/html techouse

Set password

passwd techouse

chown -R techouse:techouse myproject_directory

Now add created users group to default web server user

edit

sudo vim /etc/group

nginx:x:497:techouse

Now do to wp-admin

click update button, it ask for the ftp details. Enter the created user and password

It will take some time.

Issues reported while updating

Unable to locate WordPress Content directory (wp-content)

vim wp-config.php (add below lines in the end)

if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}

 

thank You

chirag

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.