Wordpress admin not accessible - php

My wordpress site was working perfectly all right for last 2 years. Suddenly yesterday it started saying "Sorry, you are not allowed to access this page." when I try to access wp-admin.
I have not changed anything yesterday, the only change which has happened is increase in traffic, since the site is getting 4x traffic.
I have tried disabling all the plugins, checked user details in the database everything appears intact. Tried many commonly suggestions for this problem but still the issue persists.
One observation is some of the plugins are not working apart from access issues to the wp-admin. 15 days back I had installed certificates and moved to HTTPS can, but had no issues due to the move.
Can anyone suggest something, please?

Might be an issue with unix permissions, if your is a linux server (you did not specify anything about your system).
Usually, if you have:
/var/www/mywordpress
with drwxrwxr-x then the website is full open to anybody.
Else, if the permissions are dr-x------ you may get the error
Forbidden
You don't have permission to access /mywordpress/ on this server.
But I don't think someone or you, changed permissions on the folder. Still, better if you have a look onto it
EDIT:
This link might be of help:
codex.wordpress.org/Changing_File_Permissions

Related

PHP Scripting with Wordpress and Error Logs

Cry for help here.
I have a fairly simple small wordpress site, but it takes forever to load. My hosting provider said, "The server itself isn't having an issue with any other users on it and seems to be operating fine and serving other sites without issue. Almost every time an issue like this exists, where the load average is going over 500, it is usually an issue within WordPress that is causing the server to have unnecessary strain, which brings sites down.".
My developers can not find any issues with their code, and suggest that it is an issue with the root level hosting or WP install, not the sub-domain (where we did the coding). So, I'm trying to find the issue and need someone's help...
this is my first post, so I apologize if it isn't in the right format. - Adam

suPHP wont allow access to parent magento multisite via symlinks. is there another way to do this? (example rewrite prg)

ive seen other posts on stackoverflow about this but there hasnt been a solid answer to any of the questions. so im combining the knowledge i've gathered from the other posts and rewording things to hopefully get a solid answer. suPHP is a mod that makes it so that when apache runs scripts, it runs them as the respective owner of said scripts (from my understanding), as well as other things. So my problem is that i moved a magento multisite to a new server and this server gives me odd errors when trying to reach the multisites, for example, a permissions error. It says that i cant access the files because the ownership of the files is different than the user trying to read/run them. In addition to that problem, after fixing the symlinks to be owned by the correct user, the contents of the symlinks MUST be owned by the parent store in magento or the entire thing goes down the tubes.
FYI the error im getting is the typical:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#xxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
I saw some information that implied this couldn't be fixed at all. But, in addition to that, i saw another page that implied it could be fixed with the apache directive RewriteMap prg. If it can be fixed this way, can somebody please walk me through how to do that? If it's a lost cause, somebody please tell me. I've wasted a ton of time on this already and i cant afford to waste any more. Also, if there's a solution to this that i missed, please tell me. thanks guys
Correct, if you have two sites trying to run as different users but share the same code base or portions in a common directory with SuPHP enaled, it won't work. SuPHP basically ensures folders match the owner. There's a good post about it on cPanel's forums: http://forums.cpanel.net/f5/suphp-symbolic-links-reseller-account-212102.html#post873521
Updated;
Since you have root access and control all the sites on the server you can disable SuPHP as mentioned. I've personally found no real benefit of SuPHP if you own and actively manage all the sites. The purpose of SuPHP is basically to restrict what someone can do if they get access to any one of your PHP sites by limiting where they can go by user account.
Keep in mind that by disabling it, if you do have a security breach that it's common for attackers to search every writable directory and inject things like JS malware and PHP backdoor shells to your server. It means the damage could be more widespread.
Using a good web application firewall like mod_security is good and more worthwhile IMO. It can inspect POST/GET requests for SQL injections, etc. You can customize the rules, but it has a learning curve. Basically it bolts onto Apache.

PHP scripts won't execute/load on my web hosting server

Hi so my hosting provider screwed up my server and my website was unaccessible for a week. I messed around with the .htaccess and php.ini files and finally got my site to at least load again. Their tech ppl don't know how to do anything..
But I had a few php scripts that would fetch content from locations and add it to my wordpress site. They worked flawlessly before my host messed everything up! Now when I try calling them.. they'll take awhile to load, then just show a blank white page (its supposed to show a completed message and the content added).
I don't know much about .htaccess or php.ini files, but the last I heard from my host, both of those contained issues leading to my site not working at all.. They also messed up the error log reporting. So there are literally no hints to help trace where the problem is coming from.
If anyone has any idea how I can resolve this, I'd greatly appreciate it :) Thanks!
PHP.ini - slightly changed from iPage's default:
(its over 3,000 lines long..)
Heres a link where I posted the code: http://codeshare.io/nqwrM
.htaccess
Also linked to shared editor: http://codeshare.io/jDLz8

Sites up and down Intermittently with 'No data received' Error code: ERR_EMPTY_RESPONSE

I'm not very technical so apologies up front! Unfortunately, I've been left to figure this out though as the company who deal with my dedicated server are being less than helpful.
Really hoping someone can shed some light on this. We host around 100 websites and currently, all sites on our server are up and down like yoyos. There doesn't seem to be a pattern - it's very sporadic and intermittent. Usually, you can just click around one of the sites, for example www.innivo.com for a few mins and you’ll see the site drop out, and then after a few refreshes, it will come back, then back down – you get the idea.
In Chrome, I get: No data received
Unable to load the web page because the server sent no data.
Error code: ERR_EMPTY_RESPONSE
In Firefox I get:
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
The server doesn’t go down completely, it just doesn’t seem to serve the page. This also agrees with the firewall theory I mentioned on the call.
We have paid a lot of money to a security company who have removed a few bits of malware in the hope that it would fix the problem, but they now say that the server is completely clean and exploit free. My service provider is saying they won't help until I upgrade PHP on the server but although I'm going to do this, I'm pretty sure that this won't fix the sites dropping out all the time.
I found this post which describes EXACTLY what is happening, but he doesn’t really say how to fix it, or even if his ever got fixed but it’s the closest thing I’ve found!
http://progblog10.blogspot.co.uk/2013/09/modsecurity-causes-sporadic-no-data.html
I looked for this on the server but mod_security didn’t seem to exist otherwise I would have tried to disable it to see if it made a difference. I think though, that this firewall theory sounds plausible. I wonder if we have some other type of firewall which was maybe activated or updated when we updated CPanel last week.
I'm running WHM / CPanel / Apache
Any help would be massively appreciated. Hoping that this has happened to someone else!
My personal experience. I have xplornet. I was unable to access a local site with none of my browsers. I have my computer, my Hughes, my printer, my monitor all plugged into a power bar. I shut off the computer, Unplugged everything including the plug in on the back of the hughes. Left it for a few minutes then plugged everything back in into different outlets on the power bar. I was able to access the site after that. Why I have no idea but it worked.
ive been struggling with this error and i think i have found the solution . I ran my website on local host( MAMP ) . Its worked fine so i called my hosting provider and they said i needed an upgrade cos my existing account did not support simultaneous connections . So i upgraded and its perfectly working

php website gives 403 unless i refresh my browser cache

I have a website that is on a live domain. Some times it loads okay but sometimes it gives me 403 forbidden, even for other users it does the same, i tried my every best to check permissions and every other stuff, but yesterday i just cleaned my browser cache and history etc, and bamm, website start working, then i realized its cache problem, What could be the solution to this problem, when i clean my cache my domain starts working, even c panel won't load until i clean my cache. Is it something about .htaccess, my .htaccess has only Options -Indexes and i removed that too to confirm myself if this was the problem .. but no luck.
Any help will be highly appreciated!
It should be your test machine problem.
Try it on any other machine.

Categories