PHP Help

Status
This thread has been locked.

CameronR

My only discord is itscam#1234
Supreme
Feedback score
30
Posts
509
Reactions
84
Resources
0
My Xenforo Forum Keeps throwing this error:

Code:
Forbidden

You don't have permission to access /community/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
Paste the .htaccess contents here. If you don't have a .htaccess, that's your problem.
 

CameronR

My only discord is itscam#1234
Supreme
Feedback score
30
Posts
509
Reactions
84
Resources
0
Paste the .htaccess contents here. If you don't have a .htaccess, that's your problem.
Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
No clue. That looks correct, sorry.
 

Turtle

turtle#1989
Supreme
Feedback score
17
Posts
751
Reactions
419
Resources
0
what host are you usign
 

Brazy

CEO of Occasionally Returning
Supreme
Feedback score
14
Posts
2,698
Reactions
1,373
Resources
0

LazosPlaying

Feedback score
0
Posts
30
Reactions
7
Resources
0
Set chmod to 777.
the command is
Code:
chmod -R 777 /path/to/xenforo
Change /path/to/xenforo to the actual path where the folder is located.

This, of course, is only the case if you are selfhosting your forums on your VPS / DEDI, which you probably do, since if you would be using a webhost, this would probably not happen.
 

mothh

Premium
Feedback score
3
Posts
123
Reactions
79
Resources
0
the command is
Code:
chmod -R 777 /path/to/xenforo
Change /path/to/xenforo to the actual path where the folder is located.

This, of course, is only the case if you are selfhosting your forums on your VPS / DEDI, which you probably do, since if you would be using a webhost, this would probably not happen.
You can also do this via an FTP client.
 

Ron H

Vnox Ltd. CEO
Premium
Feedback score
-1
Posts
67
Reactions
41
Resources
0
the command is
Code:
chmod -R 777 /path/to/xenforo
Change /path/to/xenforo to the actual path where the folder is located.

This, of course, is only the case if you are selfhosting your forums on your VPS / DEDI, which you probably do, since if you would be using a webhost, this would probably not happen.
No... you don't change it to 0777 for the root directory.
  1. In the set of files and directories you just uploaded, you will see 2 folders: data and internal_data.
  2. These two directories must be set to world writeable (CHMOD 0777) or give the IUSR_ Full Control in Windows
SRC: https://xenforo.com/help/installation/
 
Status
This thread has been locked.
Top