uploading a theme in wordpress - wordpress

i'm trying to upload a theme in wordpress but it is giving me an error which says "Failed to connect to FTP Server localhost:21" , though I have filled in the detils for Hostname, FTP username and FTP password. how do I go about it?

Please check the permissions of your WordPress installation.
You'll be able to find the right permission for files and folders in here.
http://codex.wordpress.org/Changing_File_Permissions

Related

How to install WordPress Theme or Plugin on XAMPP-VM (Mac OS)

I have installed WordPress on XAMPP-VM (don't use addon).
But when I add new Theme or Plugin, I need to enter FTP credentials and I don't know what username/password I should to use.
I can connect with account daemon/xampp but must change the permission of htdocs folder to 777.
What FTP account I can use that I don't need to change permission to 777?
Please see:
How to setup FTP on xampp
Alternatively, do note that you don't need to change the permissions on the htdocs folder proper, you can do it in on the plugins and themes folders in wp-content. See:
Wordpress FTP connection setting for localhost to upload and install WooCommerce
Please use your system(means laptop/desktop) username and password here
This is due to the permission issue, you can avoid it by writing the following code into your wp-config.php :
define('FS_METHOD', 'direct');
Hope this will help.

Not able to install plugins in Wordpress

I've a wordpress hosted in Rackspace cloud server. The site is working fine. To access the wordpress admin panel i have setup FTP access to the root user. I'm able to access and create files via FTP and the wordpress admin can connect to the server via FTP.
But i'm not able to install new plugins from the wordpress admin panel.I'm getting the following errors.
Downloading install package from https://downloads.wordpress.org/plugin/icon-list.0.3.zip…
Unpacking the package…
Could not create directory.
Return to Plugin Installer
First i thought it was some permission issue. But in the server i've set the permissions 777 to the wordpress project folder.But its still showing the same error.
Is there any configuration change made, to be able to install the wordpress plugins successfully.
Set the write permission for your FTP user.
Read Wordpress file permissions from here Changing_File_Permissions
It's can be also a problem with web hosting configurations. Try the FTP method. Reference here.
Add the following lines in your wp-config.php
define('FS_METHOD', 'ftpext');
define('FTP_USER', 'YOUR FTP LOGIN');
define('FTP_PASS', 'YOUR FTP PASSWORD');
define('FTP_HOST', 'YOUR FTP HOST (without http:// or ftp://)');
define('FTP_SSL', false);
Another way :
Your web server has write permissions, then add this to your wp-config.php file:
define('FS_METHOD', 'direct');
Also, wanted to add that you must NEVER set the wp-content permission or permission of any folder to 777.

wordpress asks for ftp password while installing plugins

I have a centos with user anamika with ftp loging.
I create wordpress folder loging with user anamika in webroot directory. User anamika has apache as primary group. The create folder gets user of anmika:apache when create.
When I try to install plugin it asks for ftp login.
When I changes user from anamika:apache to apache:anamika it works fine.
Please suggest a way to solve this user issue.
I checked following suggestion and wordpress blogs but didn't worked.
Wordpress plugins it asks for FTP Details
Wordpress asking for my FTP credentials to install plugins
Installing plugin for wordpress website hosted locally is asking for ftp details
If WordPress asking hostname and connection details for installing plugin and themes, we need to add a function hook in the wp-config.php file in the home directory.
define('FS_METHOD','direct');
You can use Paste the following code to your wp-config.php file,
preferably just below every other line of code to install plugin without ftp details...
define('FS_METHOD','direct');
The issue was with the permission of the user apache. I changed the user and group of the apache in httpd.conf file to the ftp user and it solved the issue.
Changed User apache Group apache to User anamika Group anamika

Unable to upload images in WordPress

I am unable to upload image in WordPress.
Error comes out like this:
"Unable to create directory wp-content/uploads/2014/04. Is its parent directory writable by the server? "
How can i change writable permission so that i can upload images properly through word press.
On some installations of WordPress, when I try to download a new theme or plugin or even update an existing plugin, I get the following message:
"To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host."
How can I remove these protection so that I can upload and delete plugins, themes, images without any FTP credentials?
You must access the control panel of your account at your hosting company. Look for File Manager and change the permissions of folder /wp-content/plugins and wp-content/uploads to 755, include sub-folders!

Wordpress Forbidden Update Pages

I already tried to look for some solutions about this, but i didn't find any.. Maybe you guys can solve my problem.
I can't update my Wordpress page
Forbidden
You don't have permission to access /demo/myfolder/wp-admin/post.php on this server.
Apache Server at www.my-site.com Port 80
some say to delete my .htaccess file and refresh the page. that didn't work..
Right now here's the content of my .htaccess file
# BEGIN WordPress
# END WordPress
I also tried "wp-admin and right click on the very folder, give permission 777"
Internal Server Error File "/var/www/vhosts/my-site.com/httpdocs/demo/myfolder/wp-admin/post.php" is writeable by group suPHP 0.7.1
Thanks
If you have ftp access go to wp-admin and right click on the very folder, give permission 777 (if you are using Filezilla).
777 permissions are unnecessary and very insecure. See the docs at WordPress.org Changing File Permissions « WordPress Codex for the correct file/folder permission structures and how to change them with an FTP client.
If that doesn't work, ask your webhost.

Resources