R
R
Ratami Sato2016-02-04 16:06:54
PHP
Ratami Sato, 2016-02-04 16:06:54

White screen on VDS'ke, who met with this problem?

The guys helped me solve the issue with 500 Internal Server.
Now a new problem has appeared. Just a white window in the browser. On Denwer'e everything works fine, everything displays.
Who faced such problem? How can it be solved?
Here is the server log
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]

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Yamschikov, 2016-02-04
@mobilesfinks

in your log
t 85.234.108.204] File does not exist: /var/www/account
[Wed Feb 03 17:39:33 2016] [error] [client 85.234.108.204] File does not exist: /var/www/account
[Wed Feb 03 17:39:34 2016] [error] [client 85.234.108.204] File does not exist: /var/www/account
[Wed Feb 03 17:39:34 2016] [error] [client 85.234.108.204] File does not exist: /var/www/account
[Wed Feb 03 17:41:02 2016] [error] [client 85.234.108.204] File does not exist: /var/www/account
[Wed Feb 03 17:41:07 2016 ] [notice] caught SIGTERM, shutting down
[Wed Feb 03 17:42:23 2016] [notice] Apache/2.2.22 (Debian) PHP/5.4.45-0+deb7u2 configured -- resuming normal operations
[Wed Feb 03 17:42:32 2016] [alert] [client 85.234.108.204] /var/www/.htaccess:
Well, look at the settings of your web server. Why is there no account file? Where is your server looking? What are his settings?
.htaccess is not enough, what is the rest of the config?.

E
Ergil Osin, 2016-02-04
@Ernillew

The white screen is not on the virtual machine, but in the browser, did I read your thoughts correctly?
You have disabled the output of php errors, turn it on for the time of debugging and you will get not a white screen, but errors on the page.

D
Dmitry Bay, 2016-02-04
@kawabanga

Oh, are these Vkontakte programmers asking for advice here?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question