How to change permission for writing in WordPress - wordpress

I am running WordPress on my computer (localhost). I am unable to load plugins, pictures etc.. Is it possible to change the permission for writing in a easy way?
I know this is a beginner question but i really need help..

Related

My wordpress website being hacked with code eval($_SERVER['HTTP_81DB2B3']

I have a problem with my website, I get information from wordfence about my WordPress website getting hacked
enter image description here add found a code eval($_SERVER['HTTP_81DB2B3'] so i removed it but in a few second the code going back. someone, please help me
I had something very similar to this. Go to your cPanel and search for "Cron Jobs" and scroll down to see if there's any malicious cronjobs setup. You might have some that look like eval(gzinflate(base64_decode(.... that are essentially causing this to reoccur. Not a complete fix to this issue, but you'll have to delete those cronjobs to ensure that that line of code doesn't keep reappearing. In addition to that, you'll also need to make sure those cronjobs don't show up again. Use a plugin like Wordfence (suggested above as well) to look for malicious files and if it helps replace your home directory (except for wp-content and wp-config) with fresh files.
If your website got hacked then I guess more than 1 file was affected by it,
case-1: If you are able to access the Wordpress Backend In this case, if you are able to access the Wordpress backend then I suggest you
Step-1: Add one plugin called (Wordfence Security – Firewall & Malware Scan
) and scan your website with it.
Step-2: After scanning the site remove all suspicious code from the site.
Case 2: If you are not able to access the Wordpress backend then you have to update your Wordpress manually with the hosting file manager or FTP.
Please Note: Please take a backup of your website before do any changes.

How Can I Fix a Hacked Wordpress Website?

I have seen lots of critical errors on my WordPress website. I attached a screenshot below that shows some of these issues. Please look at this and provide some suggestions so that I can fix this problem.
Thank you so much.
Depends how badly broken your site has become.
What is it doing to make you think it's been hacked? Is it just the warnings in the Wordfence scan report?
Before going much further you should for sure grab a backup of your database, wp-config.php, and the contents of the directories wp-content/themes, wp-content/uploads, and wp-content/plugins. Might be a good idea to make a separate backup of the entire WordPress installation directory.
Since you can still access the administration panel, might as well change your password just to be safe. Are there multiple users for your WP installation?
What changes have been made if you click "Details" button in the Wordfence scan?
If you're sure changes to the wp-core files are due to a hack, you can try to repair them using Wordfence's repair feature--it'll restore them to their base WordPress version. But if significant differences are showing for dozens of core files, might be a good idea start over with a clean installation of WordPress.
You'll also want to track down what allowed these malicious changes to be made (has an unknown IP logged into your administration panel recently? Are you using a plugin with a known security issue?), or it'll just happen again.

Local instance of wordpress edit plugin

I've having an annoying issue with Wordpress.
First I have to say that I'm not very familiar with Wordpress, I’m using it because I agree to take the management of the website of my sport club.
Now let’s me explain the issue. The previous manager of the website found a plugin that he think will be nice for the website.
But now that I’m managing, I want to make some change to this plugin (which is under GNU GPLv3 License so I have the right to do it).
So I install wamp on my computer, then wordpress and then I add the plugin to it in the purpose to test my changes.
I was thinking that when editing the files under “…\wp-content\plugins...” it will take effect instantly but it’s not.
I try to restart wamp after making some changes but it does not solve my issue.
A bit later I found that in wordpress there is a plugin modification interface and when going in it I found that the changes that I made on the files where not taken. Is there a cache of the files or something?
So my question is the following: Is there a way to edit the files in the folders (I’m using Visual Studio Code) and that the changes are applied instantly to the “running” plugin in my local instance?
I hope I was able to be clear enough so you guys can understand me
Thanks in advance

WP File Manager got an error

I think I messed up I don't have the Cpanel access to this site and I'm using the WP File Manager to edit the function.php and I made a mistake and save it now I can't open it and it's returning as a parse error. I can't open anything it keeps showing the error. Anyone know how to fix this without Cpanel? I don't really wanna let my client know that I messed up I think I'm not gonna ask for the CPanel is it possible?
In short: No.
Own your mistake. Tell the client as soon as you can. In future, Always ask for FTP or cPanel access beforehand.
If you cause a parse error in wordpress and have no FTP or SSH access, there's nothing that can be done.

Drupal multisite setup with suExec/suPHP and symlinks

I want to have one Drupal copy to maintain, but a lot of sites running from that copy.
I'm using cPanel to create users and add bandwidth and disk space limits, therefor I need to place uploads within the cPanel user's home dir.
A user's site config should not be viewable by other users, therefor I do believe I need to use some kind of suExec or suPHP.
This is the guide I've tried following: http://drupal.org/node/1274642
Basically I have a frontend where a user enters a subdomain and then via a cPanel API I create a user for that subdomain and add limits for bandwidth and disk space.
Can anyone help creating this setup?
I've been thinking about making a symlink from /home/dp1234/public_html to /path/to/drupal/copy, but then everyone would be able to view the setting files in Drupal's sites folder - I think?
I keep getting weird permission problems. I got it working a couple of times but all of the sudden it didn't work.
Any help would be greatly appreciated! Thanks!
So I finally figured out why it wasn't working.
It was an Apache configuration thing that was checked true: [x] SymLinksIfOwnerMatch
I unchecked that and finally everything started to work!

Resources