Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload a theme without FTP

Tags:

wordpress

I have downloaded a theme and I'd like to install it. Now I'm in Appearance > Themes > Add > New/Upload Theme. WordPress wants an FTP access. Well, I'm at my local machine and no FTP server is listening the port 21.

I'm inspired by this post: Can I install/update WordPress plugins without providing FTP access?

So, they say that after granting write permissions, no FTP prompt will appear.

For simplicity of the learning (!) process I've allowed everything on the directory now.

michael@hp:/var/www/html$ ls -la | grep wp-content
drwxrwxrwx  5 root root  4096 дек 20 20:50 wp-content

Well, WordPress continues to ask for FTP access. Could you give me a kick here?

like image 819
Michael Avatar asked Aug 30 '26 18:08

Michael


1 Answers

Check, that httpd user have permission "rw" to wp-content folder and add into wp-config.php file:

define('FS_METHOD', 'direct');
like image 65
George Avatar answered Sep 05 '26 09:09

George



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!