New answers tagged

0

Error: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. Solution: Check SELinux, make sure it is disabled, and if not, you should disable it. In Putty, #sestatus, the output must be disabled, and if not, edit it at: /etc/selinux/config Change /var/www/html to 777. In ...


0

In order to understand why you're having these problems, you need to understand the underlying concepts of ownership. Basically, you know that apache is running as the www-data user. This is why setting everything to be owned by that user works, because WordPress is verifying that it can create files as the user that owns its own files. So, what you're ...


-1

You need to give write permissions to the relevant directories. Ideally, you should do it only for the relevant file or folder and then revert the permissions back so as to not leave your site vulnerable. You can fix this using the following commands from the command line (assuming that you are in the Wordpress root folder): # cd wp-content # chmod -R a+w ...


1

There are three ways you could do this: 1. Upload all into the Media Library The most tiresome way, IMHO, is to upload all the images you got via the media library. 2. Use a plugin You can use plugins like Add From Server to import your images easily to the Media Library 3. WP-CLI Easiest way once you got WP-CLI installed. Run wp media import to import ...


0

Just more exmple : function allow_tags_content() { global $allowedposttags, $allowedtags; $allowedposttags['div']['data-hello'] = true; $allowedtags['div']['data-hello'] = true; $allowedposttags['div']['data-world'] = true; $allowedtags['div']['data-world'] = true; } add_action('init','allow_tags_content');


0

I think the real question you have here is — what user/group WordPress belongs to? WordPress itself essentially doesn't have a user/group. From perspective of filesystem it is just a bunch of PHP source files lying around. What is really "has" a user here is your web server and/or PHP binary. Together they execute WordPress source files and any file ...


0

Ok, so in answer to the second part of the question. if I SFTP the file to the server, will it retain the same owner and group? Will it retain the same permissions? I just tried it out – uploaded a file via SFTP then SSH'ed onto the server to see if the owner or permissions match the file I uploaded. They don't, so it seems safe to set local ...



Top 50 recent answers are included