Ask your WordPress questions! Pay money and get answers fast! (more info)

Access denied. WordPress

  • SOLVED

Ok, So my server was hacked recently. All files and folders were changed to 200 permissions.

There was all a code that was sending out spam!

My hosting provider was extremely unhelpful.

I have got rid of the spam code but many of my sites are still down.

Please reply here and I'll PM someone login details.

I just need help to get it all back and working again.

Many Thanks


Here are some notes:

Fatal error: Call to undefined function get_taxonomies_for_attachments()

on http://www.bencamera.com/wp-admin/


Warning: require_once(/homepages/25/d161120255/htdocs/rockwell/wp-admin/includes/admin.php) [function.require-once]: failed to open stream:

on http://www.rockwellhouse.co/wp-admin/


Access denied.

on http://squittybubbler.com/


Warning: require_once(./admin.php) [function.require-once]: failed to open stream: Permission denied

on http://www.samanthawhates.com/wp-admin/

etc..........!

Answers (3)

2012-12-13

Martin Pham answers:

You can use ssh to chmod all files and directories. [[LINK href="http://phim16.com/"]]phim[[/LINK]]

How do:
Request ssh login: [[LINK href="http://faq.1and1.com/web_space__access/ssh/4.html"]]http://faq.1and1.com/web_space__access/ssh/4.html[[/LINK]]

if you use windows can use putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

1. Login ssh
--- using linux command ----
2. Change all the directories to 755
find /homepages/25/d161120255/htdocs/rockwell -type d -exec chmod 755 {} \;
3. Change all the files to 644:
find /homepages/25/d161120255/htdocs/rockwell -type f -exec chmod 644 {} \;
4. Change wp-config.php to 777

chmod 777 /homepages/25/d161120255/htdocs/rockwell/wp-config.php


DONE!


yepyeh comments:

Hey Man!

Ok this has worked for rockwellhouse.co, Great!
Will I need to do this for all the other directories?
What is this actually doing?
Do you know why it was like this firstly?

Thanks


Martin Pham comments:

Hi there,
I instruct you to use this code to search all files or folders then change their permissions of 755 for directories and 644 for files.

You can read more at: [[LINK href="http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively"]]http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively[[/LINK]]


yepyeh comments:

I am still getting this but other than that all working.

Fatal error: Call to undefined function get_taxonomies_for_attachments()

on http://www.bencamera.com/wp-admin/

Thanks


Martin Pham comments:

Hi there,
Please check file wp-includes/media.php see it exists or permissions incorrect.

or find a solution here: http://wordpress.org/support/topic/automatic-update-to-35-failed?replies=5

I noticed that, if you use update-core in wp-admin to the recent upgrade to 3.5, it can not complete or error message in the process of implementation.

Best Regards,
Martin

2012-12-13

Asad Iqbal answers:

Please check pm.

2012-12-13

Agus Setiawan answers:

ok. let me help you.