如何将wordpress从xampp窗口迁移到ubuntu

I am trying to move my wordpress site from local xampp, windows machine to ubuntu server.

I have tried exporting database from xampp panel. Moved all wordpress files to apache directory and imported database. Used selects from this article: https://blog.templatetoaster.com/move-wordpress-localhost-to-live-server/ to change urls to current server.

UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://127.0.0.1/directory', 'http://server_ip/directory'); UPDATE wp_options SET option_value='http://server_ip/directory' WHERE option_name='home'; UPDATE wp_options SET option_value='http://server_ip/directory' WHERE option_name='siteurl';

All images on site should work and all pages but only home page and admin works but when I try to click on other pages I get error: "The requested URL /directory/page1/ was not found on this server." And all images don't show.