WordPress automatically updates and installs the online theme when you need to enter the FTP information
Open/opt/lampp/htdocs/wordpress/wp-config.php File
Define (' Fs_method ', ' direct ');
Insert the above code into the file on a random line, save, you can.
WordPress Local test, install the online theme appears "Unable to create directory (Could not created directory)"
This situation occurs because of a permissions problem with the folder.
Online themes are generally saved in the/opt/lampp/htdocs/wordpress/wp-content folder, and the following commands are entered in the terminal:
sudo chmod-r 777/opt/lampp/htdocs/wordpress/wp-content
The above command allows us to obtain full read and write access to this folder, and then we refresh the online installation page to show that the installation was successful.
Installation and configuration issues for ubuntu+xampp+wordpress