Upgrading, installing, deleting wordpress plugin and themes are the most things you do in wordpress development site and in order to install, upgrade and delete files you need to have full ownership or permissions, if ever wordpressalways ask your FTP login information, don’t worry folks I’ve provide three solutions for these.
As what I’ve tried and knew there were three solutions for this and it could be helpful if you share your solution too
.
Step One:
Put this lines of code in your wp-config.php file, just before MySQL settings.
PHP
1
2
3
4
5
6
7
8
9
|
<?php
//set FTP directly in wp-config.php
define(‘FTP_HOST’, ‘ftp.domain.com’);
define(‘FTP_USER’, ‘Your_FTP_Username’);
define(‘FTP_PASS’, ‘Your_FTP_password’);
//if you’re in an SSL connection
define(‘FTP_SSL’, true);
?>
|
Step Two:
If you have full access in your server or do you have VPS server you can install “suPHP” and then after installing suPHP restart your apache, and it works fine.
Step Three:
Set all your wordpress file ownership to nobody.nobody but this is not recommended as your account easily hacked/cracked by someone else due to nobody.nobody ownership or low file ownership.
That’s it and your problem is gone
0 comments:
Post a Comment