R
R
Ratami Sato2016-02-04 14:49:45
PHP
Ratami Sato, 2016-02-04 14:49:45

500 Internal Server Error - How can I fix it?

The problem is this:
I put the CMS on Denwer, everything works fine!
I put on VDS'ku , I get an error 500 Internal Server Error.
I looked through the forums and found such a solution (RewriteBase /).
Delivered, after that a white screen appeared. After restarting the machine, I got the same error.
Don't know how to fix?
Here is the content of the .htaccess file

Options +FollowSymLinks -MultiViews +Indexes
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>

RewriteEngine on
RewriteBase /
RewriteOptions MaxRedirects=1
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]

# Installer
RewriteRule ^install/?$ install.php [L]

# Static Pages
RewriteRule ^static/([^/]+)/?$ static.php?url=$1 [L]

# Sign(in|up|out)
RewriteRule ^signin/?$ signin.php [L]
RewriteRule ^signup/?$ signup.php [L]
RewriteRule ^signout/?$ signout.php [L]
RewriteRule ^reset/?$ reset.php [L]
RewriteRule ^activation/([^/]+)/([^/]+)/?$ activation.php?id=$1&token=$2 [L]

# Social Logins
RewriteRule ^connect/([^/]+)/?$ connect.php?provider=$1 [L]
RewriteRule ^revoke/([^/]+)/?$ revoke.php?provider=$1 [L]

# Search
RewriteRule ^search/?$ index.php?view=search [L]
RewriteRule ^search/hashtag/([^/]+)/?$ index.php?view=search&query=$1&hashtag=1 [L]
RewriteRule ^search/([^/]+)/?$ index.php?view=search&query=$1&hashtag=0 [L]

# Friends Requests
RewriteRule ^friends/requests/?$ friend_requests.php [L]
RewriteRule ^friends/requests/([^/]+)/?$ friend_requests.php?view=$1 [L]

# Messages
RewriteRule ^messages/?$ messages.php [L]
RewriteRule ^messages/([^/]+)/?$ messages.php?cid=$1 [L]

# Notifications
RewriteRule ^notifications/?$ notifications.php [L]

# Settings
RewriteRule ^settings/?$ settings.php [L]
RewriteRule ^settings/([^/]+)/?$ settings.php?view=$1 [L]

# Posts & Photos
RewriteRule ^posts/([^/]+)/?$ post.php?post_id=$1 [L]
RewriteRule ^photos/([^/]+)/?$ photo.php?photo_id=$1 [L]

# Pages & Groups
RewriteRule ^create/page/?$ index.php?view=create_page [L]
RewriteRule ^create/group/?$ index.php?view=create_group [L]
RewriteRule ^pages/?$ index.php?view=pages [L]
RewriteRule ^pages/([^/]+)/?$ page.php?username=$1 [L]
RewriteRule ^pages/([^/]+)/([^/]+)/?$ page.php?username=$1&view=$2 [L]
RewriteRule ^groups/?$ index.php?view=groups [L]
RewriteRule ^groups/([^/]+)/?$ group.php?username=$1 [L]
RewriteRule ^groups/([^/]+)/([^/]+)/?$ group.php?username=$1&view=$2 [L]

# Games
RewriteRule ^games/?$ index.php?view=games [L]
RewriteRule ^games/([^/]+)/?$ game.php?id=$1 [L]

# Admin
RewriteRule ^admin/?$ admin.php [L]
RewriteRule ^admin/([^/]+)/?$ admin.php?view=$1 [L]
RewriteRule ^admin/([^/]+)/([^/]+)/?$ admin.php?view=$1&sub_view=$2 [L]
RewriteRule ^admin/([^/]+)/([^/]+)/([^/]+)/?$ admin.php?view=$1&sub_view=$2&id=$3 [L]

# Profile
RewriteRule ^([^/]+)/?$ profile.php?username=$1 [L]
RewriteRule ^([^/]+)/([^/]+)/?$ profile.php?username=$1&view=$2 [L]

LOG

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2016-02-04
@VladimirAndreev

what is written in the error logs?

V
Viktor Lomov, 2016-02-04
@vlomoff

I could be wrong, but the first thing that caught my eye was the 4th line with "Deny from all".
As far as I know, this is a ban on reading for everyone.

S
Sergey Zelensky, 2016-02-04
@SergeyZelensky-Rostov

firstly, rewriteBase comes after the rewriteEngine on line, secondly, the rewrite module is enabled on vds,
check apache2ctl -M

N
NicolaTop, 2018-11-29
@NicolaTop

An example of an article to help: https://nicola.top/kak-ispravit-oshibku-500-intern...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question