I am a beginner with WordPress and I have no idea what hostname I should specify when I try to install a theme. Thank you for a help!
Wordpress asks for an FTP account there. So you have to enter the data for the FTP account. You will get that data from your provider. Mostly you have entered it already to your FTP client.
This happens when Wordpress cannot directly (via php) create files inside the
Wordpress asks for FTP credentials to try and upload "manually" the files, you should provide the hostname of the ftp server (example:
ftp.yourdomain.com), username and password. Of course you have to have an FTP server set up, which is usually straightforward on an shared hosting. If you are inside a self-hosted environment (i.e. VPS, AWS ec2 instance) you should solve this at the root of the problem:
To solve this you have to set as
755 the permissions to
sudo chmod -R 755 /you/html/root/wp-content) and make sure that the owner of the directory is the user as whom apache/nginx/php-fpm runs with the
ls -l command.