Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Recently, I change my host server. that causing a problem. When I want upload a new theme or plugin instead of using dashboard uploader want me to enter FTP host and username and password, What I can do to come back to the previous uploader?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

If you're on a shared server, it's unlikely your host will correct this issue, but you can add the upgrade constants to your wp-config file so it will at least stop asking every time.

share|improve this answer
    
thank a lot I use define('FS_METHOD', 'direct'); on wp-config –  Ehsan Nov 17 '12 at 19:04
    
didn't know about that. nice way.... –  Oleg Butuzov Nov 17 '12 at 19:09

Depending upon your hosting providers configuration this could be the result of permissions issues on your account. Sounds like httpd (i.e. Apache) is running in a different security context than your user account.

Typically this means that httpd can't write to files or directories within your document root.

Open a ticket with your provide and ask them to check the permissions and httpd/user context.

share|improve this answer
    
I have access to cpanel, what i can do? –  Ehsan Nov 17 '12 at 18:31
    
Unless you're on a Virtual Private Server there's not a lot you can do yourself. You'll need the help of your hosting company to resolve this. –  Stephen Nov 17 '12 at 18:33

Using FTP give 0777 permitions to you wp-content (for future created nested upgrade directory and nested themes directory. Also check are you able to upload any files to server (in not do same for uploads folder). Givivng 0777 permistions to plugins directory and all files inside - will enable edition of files via Interface.

share|improve this answer
1  
This may be a valid approach for testing/debugging in an isolated environment; but it is extremely risky on a publicly accessible server or a shared hosting environment. –  Stephen Nov 17 '12 at 18:35
    
I have 0777 to theme and plugins directory but ask me for FTP account –  Ehsan Nov 17 '12 at 18:40
    
@Stephen - someone has to be able to traverse into your html directory to be able to write to your server, it being a publicly accessible or shared server doesn't necessarily make it dangerous if it's properly chrooted. –  Milo Nov 17 '12 at 18:49
    
@Milo I understand your point. But in principle why remove a layer of protection? Are you not relinquishing what little control that you have an putting your faith entirely in the hands of your hosting provider? –  Stephen Nov 17 '12 at 18:52
    
@Stephen - I agree, however in some cases one may not have other options. If your site is critical to your business, you should have proper hosting anyway :) –  Milo Nov 17 '12 at 19:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.