I’ve been all over the internet since yesterday before asking.
I’ve just installed wordpress locally using XAMPP.
while trying to install anything it gives me the FTP error where I need to insert them.
I’ve tried
define('FS_METHOD','direct');
then it doesn’t ask for the FTP any longer but instead it gives me.
Unpacking the package…
Could not create directory.
I’ve tried also to use :
define('FS_METHOD','direct');
define("FTP_HOST", "localhost");
define("FTP_USER", "admin");
define("FTP_PASS", "1234");
same thing, tried to remove first line and leave the FTP lines same thing.
tried to use
chmod 777 /Users/hamudi/.bitnami/stackman/machines/xampp/volumes/root/htdocs/patron/wp-content/themes
chmod 777 /Users/hamudi/.bitnami/stackman/machines/xampp/volumes/root/htdocs/patron/wp-content/plugins
in terminal but nothing happens.
I’M LOSING MY MIND.
any chance for help here ? is there a way to access the FTP on local xampp since I thing its only a matter of permissions.
thanks in advance for the help!
2
Answers
Finally I managed to solved it , although it wasn't so different from the steps above but this solved my problem 100% now I can install plugins do changes and no need for any FTP access.
So in wp-config.php I had to add this line after the
@package WordPress
and after that in the terminal run this line at the htdocs folder path , in my case the path is :
switch (myUserNmae) with Mac username.
and then system password , Mac user pass.
and it worked for me! hope this will help someone.
thanks for all the replies and help.
Download your plugin and unzip in following directory and once logout and login to wordpress dashboard to see the plugin.
wordpress/wp-content/plugins/