adam84 Posted November 19, 2010 Share Posted November 19, 2010 I am using ajax to test to see if some user information exists in my database. If it exists, I write an error message, if it doesnt exist then I will not write anything. I just switched hosting companies, so I dont know if that matters (it was working before). Now when I try that, i get the following error: Forbidden You don't have permission to access /checkUserName.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 All the permissions are set to 0644, so i dont think that is an issue. Another interesting point is the error message only shows up when the the record exists in my database because that is when I write something to the screen. I dont know you anyone will be able to help me with what I said, but maybe someone has been through this before. *Note - All my other ajax statements work fine, its just this one. Thanks Link to comment https://forums.phpfreaks.com/topic/219239-forbidden/ Share on other sites More sharing options...
Mr_J Posted November 22, 2010 Share Posted November 22, 2010 have you, just to see, set the file to 777? Link to comment https://forums.phpfreaks.com/topic/219239-forbidden/#findComment-1137837 Share on other sites More sharing options...
adam84 Posted November 22, 2010 Author Share Posted November 22, 2010 Ya, i tried that, but I read the hosting forum a little deeper and I found that I had to change the ModSecurity. I just emailed that hosting company and they did whatever and it eventually worked. Link to comment https://forums.phpfreaks.com/topic/219239-forbidden/#findComment-1137945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.