Magento new host - 403 Forbidden - Server unable to read htaccess file - php

I have moved to a new host and setup everything, but when I try to access the site, I get the following 403 Forbidden error
Forbidden
You don't have permission to access /webfiles on this server. Server
unable to read htaccess file, denying access to be safe
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas on the problem?

very easy just go to your main directori example
home/example
go to the directory public html and then go to you setting by the fault the system goes to 754 you will have to change to 755 the last 5 is go ing to allow to get to the site. cheers

I figured it out right after I posted. it was the file permission problem in the main root

Related

403 Forbidden - how to fix?

I'm trying to access an PHP 7.x file on a restricted webspace, but get the famous 403:
Forbidden
You don't have permission to access /path/to/file.php on this server.
After searching on StackOverflow and trying different settings, I set the CHMOD to 777, which didn't change anything.
I've no root nor apache access.
Now I'm trying to allow access via .htaccess, but no success so far:
Order Allow,Deny
Allow from all
Result: 500 - Internal Server Error.
Any idea?
Thanks in advance!

Forbidden error in server not in local host for huge data

I have an application which allows users to share there notes.
The front end is written in php and back end is driven by mysql database. The front end has an edit section, which is using Ueditor (web based editor). The problem is that if I am trying to edit small amount of data on the server it will work, but if I am trying to edit huge amount of data it will not work and shows this error.
Forbidden
You don't have permission to access /editnotes.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Additionally it is working perfectly alright in local host.
The ErrorDocument directive, when supplied a local URL path, expects the path to be fully qualified from the DocumentRoot.
Have this in your .htaccess file
ErrorDocument 403 /errorpagedir/403page.html
/errorpagedir/403page.html is your 403 error page.

403 Forbidden : You don't have permission to access

Forbidden
You don't have permission to access /install/step3.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Why is it showing this error when I'm trying to install a script?
Your question have 2 configuration problem.
File Permission (in Filesystem)
ErrorDocument Attribute (in Apache Webserver)
First, You can solve permission error using 'chmod' and 'chown' command.
try this:
chmod -R 777 directory (777 means allow permission for all)
chown -R [user]:[group] directory (generally, the same [user] and [group])
Second, ErrorDocument handle error can occured from invaild ErrorDocument attribute setting in .htacess or httpd.conf(or apache2.conf) file.
try this:
check your .htacess file in 'install/' directory. If you can not check this file, you can try 'ls -al' command in terminal. you have to find 'ErrorDocument' attribute, and remove or correct it.
check your apache webserver configuration file (httpd.conf or apache2.conf). If you can check 'ErrorDocument' attribute, you can try remove this attribute in file. It is temporary, so you must backup it before try suggested cases.
If you can not solve by case 1 and 2, you can try disable 'AllowOverride' attribute. Try find 'AllowOverride x' attribute and replace to 'AllowOverride None'. Because, this problem can have possiblity from .htacess file in parent directories. AllowOverride attribute can control allow or deny additional configuration in .htacess file.
You must restart apache service after try this cases. you can try 'service httpd restart' or 'service apache2 restart' command.
Good luck to your web server and you.
First thing to do is check that the index.html is written in properly. Forbidden 403 usually indicates that the server is running but that the requested resource is not being found.
Then clear your cache. Additionally check your php.ini file to configure any necessary items to get your website running.
The Web server (running the Web site) thinks that the HTTP data stream sent by the client (e.g. your Web browser or our CheckUpDown
robot) was correct, but access to the resource identified by the URL
is forbidden for some reason.
This indicates a fundamental access problem, which may be difficult to
resolve because the HTTP protocol allows the Web server to give this
response without providing any reason at all. So the 403 error is
equivalent to a blanket 'NO' by the Web server - with no further
discussion allowed.
By far the most common reason for this error is that directory
browsing is forbidden for the Web site. Most Web sites want you to
navigate using the URLs in the Web pages for that site. They do not
often allow you to browse the file directory structure of the site.
For example try the following URL (then hit the 'Back' button in your
browser to return to this page):
http://www.checkupdown.com/accounts/grpb/B1394343/
This URL should fail with a 403 error saying "Forbidden: You don't
have permission to access /accounts/grpb/B1394343/ on this server".
This is because our CheckUpDown Web site deliberately does not want
you to browse directories - you have to navigate from one specific Web
page to another using the hyperlinks in those Web pages. This is true
for most Web sites on the Internet - their Web server has "Allow
directory browsing" set OFF.
I have faced this problem. On local host it was running as I want, but when deployed (using Filezilla in my case) on the remote server, the problem occurred. with error 403 instead of 404. I think as mentioned before, It is a restricted access from the server. I only reuploaded the whole folder and every thing is perfect now.
Thanks to this community.
.htaccess
ErrorDocument 404 /index.php
ErrorDocument 403 /index.php
ErrorDocument 403.14 /index.php
ErrorDocument 500 /index.php

Wordpress - Got both 403 Forbidden and 500 Internal server

Suddenly my blog gives me this error below: (It works fine just an hour ago)
Forbidden
You don't have permission to access /blog/index.php on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My wordpress installation is in www.my-domain.com/blog. But I can still access the wp-admin.
I checked the permission using FTP and it's all correct (755 for directory and 644 for file)
I also tried deleting htaccess and let Wordpress re-create it by changing the permalink.
Some say it's hosting problem but I just create another Wordpress blog in /blog2 and it works fine.
Any solution? Thanks.
[EDIT]
I just realized that the index.php file permission is 00, but I can't change the permission through FTP. It says 550 Could not change perms on index.php: Permission denied. Any idea?
The permission on /blog/index.php was set to 00. Changing it to 644 solves the problem.
In my case, I can't change the permission through FTP. So I deleted the index.php and uploaded a new fresh one.
for 500 Internal server error, check your htaccess

Forbidden Error

I have an error in my wordpress blog, when i click on any page's link that occured.\
Forbidden
You don't have permission to access /category/uncategorized/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
please tell me what should i do to solve it. thanks
Check your Permissions: Changing File Permissions « WordPress Codex

Categories