Hot answers tagged ftp
12
If you edit your wp-config.php file you can preload these FTP settings as constants read by WordPress. Keep in mind, on a shared host, you should be mindful of possible security implications.
See Editing wp-config.php for more information.
Your settings will vary, but these work for me and my hosting setup. I've included some of the unused constants, ...
10
Check your file ownership. When the user that apache runs as can write to the wordpress directories, then the integrated upgrade process all just works without ftp. The FTP credentials are for if the web server doesn't have the right priviledges on your files, then wordpress prompts you for your FTP details, and attempts to use those to FTP back to the same ...
5
You can save this information on your wp-config.php file:
define('FTP_HOST', 'ftp_host');
define('FTP_USER', 'ftp_username');
define('FTP_PASS', 'ftp_password');
More info (WordPress Codex)
4
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/');
define('FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub');
define('FTP_PRIKEY', '/home/username/.ssh/id_rsa');
define('FTP_USER', 'username');
...
4
Short answer: yes you can upgrade your plugins via FTP.
Download the new version of the plugin.
Disable the plugin you are about to update.
Upload files over the top of the plugin.
Re-enable plugin
If the plugin is written well stats, settings and options should remain intact. As Rarst has already mentioned the automated upgrader just overwites files.
...
4
It seems that not only does WordPress check if the directories are writable, but it checks if the Apache user OWNS the directories (or at least, if the Apache user owns the temporary file it creates). Observe these lines of code at /wp-admin/includes/file.php: get_filesystem_method():
if ( $temp_handle ) {
if ( getmyuid() == ...
4
Set file permissions
On Mac OS X (Leopard), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files.
One way to do this is to ...
3
Sorry for posting the question above, I fixed it right after posting here, by following these steps I found on this site http://artofsimplicity.co.uk/wordpress-ftp-auto-upgrade-on-ubuntu
sudo apt-get install vsftpd
sudo useradd wordpress
sudo passwd wordpress # set password for wordpress when prompted.
sudo usermod -g www-data wordpress
sudo chmod -R g+w ...
3
Try to use relative URLs to your imported css files. So try to remove first / from each import URL:
@import url('styles/forms.css');
@import url('styles/tables.css');
@import url('styles/homepage.css');
@import url('styles/reset.css');
@import url('styles/stimenu.css');
@import url('styles/layout.css');
@import url('styles/demo.css');
Also pay attention ...
3
Here are a couple of options:
WP htaccess Control - will let you manually edit your .htaccess file
All-in-one htaccess Plugin - will let you dynamically create an .htaccess file based on which modules/features you want set up
When all else fails, turn to Google ...
2
It could be a problem with your file encoding. Make sure that your files are encoded in the same way as your wordpress install. In most cases your site use files encoded in UTF-8.
Go to FileZilla options: Open Site Manager > Charset tab - Custom Encoding > and see if it's UTF-8.
When it's set properly try to open and edit a file and see if it works!
2
When you do something that requires WordPress write to the filesystem, it does a check to see if it has permissions to do so by writing a temp file. If this check fails it will ask for FTP details in order to write the files to your server.
EDIT
look in wp-admin/includes/file.php, line 843, for the get_filesystem_method function that does this check.
2
Local web server is a must, it's pretty much generic web server stack (Apache, MySQL, PHP plus other bits) only running on your local computer.
Deployment depends on how you manage your code:
just resides on your computer - you will need to sync it to remote server in some way (FTP, SFTP, etc), any decent software for such is smart enough to transfer ...
2
This is most likely because of file permissions on your server. WordPress needs to be able to write to the wp-content folder. I highly suggest you read this article about changing file permissions for WordPress.
You may also need to CHOWN the directory that contains WordPress to the user that your web server uses. More here.
2
Depending on your version of OS X, you will need to configure and run FTP and open a port in the firewall. It's best if you google your OS X version - 10.6, 10.7, etc. - specifically and find the docs necessary to set up FTP and Sharing.
You also need to realize the security implications of opening up FTP to your local machine; someone port scanning your IP ...
2
You can automagically copy files from SVN, but there are steps that will always require some sort of human interaction, such as the initial database setup.
That said, a WordPress install is totally scriptable.
1
Sounds like your Template has 2 style sheets, one that is unused.
By default WordPress will look for style.css in the editor but this doesn't necessary mean its used in the header.php
Take a look at your source code and view which css files are being loaded.
I suspect your see it something like: /wp-content/themes/your-theme/css/blah.css
Rather than ...
1
What if you try http://wordpress.org/extend/plugins/ssh-sftp-updater-support/ ? If that doesn't work you can do a quick code change to get the logs with which the developer of that plugin can use do more diagnostics.
1
If you want to share the same wordpress installation for multiple sites/blogs, I'd suggest looking at WordPress Networks. And if you need different domain names (and not just subpath or subdomain) you could go with the plugin called WordPress MU Domain Mapping.
If you have lower level access to your server (and not just a shared hosting) then you could ...
1
The problem with WordPress not being able to install plugins or update itself is because WordPress uses the Apache 'user' for all its processes. In the case of Ubuntu / Linux the Apache user and group is www-data:www-data.
By doing sudo chown www-data:www-data /wordpress your changing the ownership of all files.
A problem can occur if your user account ...
1
What i found is that if all the folder containing WP own to the web-user, you can install via web interface anything. In my case, Linux, my user is www-data, so i just run the next command chown -R www-data:www-data wp-folder where wp-folder is the folder containing my WP app (use sudo if the user is not root). And that's it. Now I can install themes and ...
1
In FileZilla you use SFTP connection to access your server and it works (because it was setup on server). But in wp-admin you use FTPS connection, which is probably doesn't setup on server. Pay attention that SFTP != FTPS.
A solution could be to change File System method in your wp-config.php file by adding FS_METHOD constant with direct value, it will ...
1
If the WordPress blog in question is on wordpress.com, tough luck - you can't access the files via FTP, and the official support is only open to paying customers.
Rather than writing a custom script for this, I suggest you use something like wget or DownThemAll!.
1
The unfortunate answer is that I don't think there's anything you can really do to prevent this.
Assuming we're talking about a Linux based server as the destination for your theme, the umask settings for the ftp user determines the permissions for new files, such as a fresh upload of your theme's files.
It also could be affected by whether or not the ftp ...
1
If you are using self-hosted WordPress, i.e. that you downloaded yourself via wordpress.org, and installed yourself on the server account provided by your hosting provider, then: yes; you can FTP into your WordPress installation (and in fact, almost have to do so, in order to install it).
If you are using the hosted blogging service wordpress.COM, then: no, ...
1
Do you mean SFTP or FTPS?
For SFTP you need to enable libssh2-php on your server and link it to your PHP and restart your ssh, you can get the downloads here http://www.libssh2.org/
Once you install that you should automatically see SFTP/SSH option in your admin under "Connection", though I believe there was some recent dev talk about dropping this from ...
1
The wp-admin/includes/file.php **get_filesystem_method()** uses an erroneous test to determine if it can write a file. At line 853:
if ( getmyuid() == @fileowner($temp_file_name) )
The use of getmyuid() is wrong for unix - instead that should be posix_getuid(). The problem is the getmyuid() will return the owner of the script file not the user that is ...
1
Update: You can use WordPress QI - http://wpquickinstall.com/download/
Not all servers can run SVN, and servers which have problem in WP 5minute install, can't be cope up with another solution because there is no solution, sometimes server settings are to blame.
That said, on a server where everything works fine for a regular installation, WordPress ...
1
The widget settings (as well as plenty of other stuff) are stored in MySQL database. Actual files are mostly PHP code that runs the show, WordPress uses next to none manipulating files.
So to recover those you will need to look in backup of your database as well as some code to make sense of values (widget settings are complex and probably stored in in ...
1
All of errors you quoted refer to theme's folder, so it seems like theme breaks something at admin side. Not enough details to say what causes those errors and from quick Google theme doesn't seem to be free (and so available to check).
I suggest you contact theme's developer, if he does provide support for it.
Only top voted, non community-wiki answers of a minimum length are eligible