+ Reply to Thread
Results 1 to 10 of 10

Thread: Migrated to VPS, site no longer works?!

  1. #1

    Migrated to VPS, site no longer works?!

    Hi,

    We recently moved our Flynax Real Estate website from a shared hosting account to a VPS account. It was a simple full cPanel backup and restore onto VPS.

    However now the website is just blank, with absolutely no source code for the site.

    Has anyone seen this problem before? Could this be a licensing issue?

    Thanks.
    Last edited by Akhtar Siddiqui; May 22, 2014 at 10:23 AM.

  2. #2
    Anybody?

    Here's the confusing thing.. I uploaded a phpinfo.php file, but it also returns a blank page like the website. However, when we rename our .htaccess to .htaccess.txt the phpinfo.php file now loads up but the website is still blank! Our current .htaccess is here:

    # Configures the footer on server-generated documents
    ServerSignature Off

    # enable apache morRewrite module #
    RewriteEngine on

    # The URL prefix to be used for per-directory
    RewriteBase /

    ##
    RewriteCond %{REQUEST_METHOD} ^(PUT|CONNECT|HEAD|TRACE|TRACK) [NC,OR]
    RewriteCond %{THE_REQUEST} (\\r|\\n|%0A|%0D) [NC,OR]

    RewriteCond %{HTTP_REFERER} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    RewriteCond %{HTTP_COOKIE} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999} [NC,OR]

    #Block mySQL injects
    RewriteCond %{QUERY_STRING} (;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|updat e|md5|benchmark) [NC,OR]

    RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]
    RewriteCond %{QUERY_STRING} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC]
    # Note: The final RewriteCond must NOT use the [OR] flag.

    ## Return 403 Forbidden error.
    RewriteRule .* index.php [F]

    # set files headers
    <IfModule mod_headers.c>
    <FilesMatch "\.(css|js|png|gif|jpg|jpeg|htc)$">
    Header set Cache-Control "max-age=2678400, public, must-revalidate"
    </FilesMatch>
    </IfModule>

    # deflate static content
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/x-component text/css application/x-javascript application/javascript
    </IfModule>

    # allow request methods
    <Limit POST PUT DELETE GET OPTIONS HEAD>
    Order deny,allow
    Allow from All
    </Limit>

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    ErrorDocument 404 /404.html

    # non last slash redirect
    RewriteCond %{REQUEST_URI} !(\.php|\.html|\.xml|\.txt|[\/])$ [NC]
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [NC,L,R=301]

    # define system languages
    #RewriteRule ^([a-zA-Z]{2})$ index.php?page=$1 [QSA,L]

    # define paging
    RewriteRule ^([^//]+)/?(.*)?/index([0-9]*).ht(m?ml?)$ index.php?page=$1&rlVareables=$2&pg=$3 [QSA,L]

    # define listing
    RewriteRule ^(([\w\-\_]+)?/)(.+)-l?([0-9]+).ht(m|ml)$ index.php?page=$2&rlVareables=$3&listing_id=$4 [QSA,L]

    # wildcard request
    RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.).*)\..+\.[^/]+$ [NC]
    #RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.).*)\..+$ [NC] # FIRST LEVEL DOMAIN (localhost) USAGE
    RewriteRule (.*) index.php?page=%1&wildcard&rlVareables=$1 [QSA,L]

    # account request (sub-directory)
    RewriteRule ^((\w{2})/)?([\w-_]{3,})$ index.php?page=$3&lang=$2&account_request [QSA,L]

    # define single pages
    RewriteRule ^([^//]+)/?(^/*)?.ht(m?ml?)$ index.php?page=$1 [QSA,L]

    # define other pages
    RewriteRule ^([^//]+)/?(.*)?/?(.*)?(.ht(m?ml?)|/+)$ index.php?page=$1&rlVareables=$2 [QSA,L]

  3. #3
    Hello Akhtar Siddiqui,

    You need to submit ticket and our staff will be check your site.

    Thanks.

  4. #4
    Now solved by the brilliant Flynax support staff. It was due a PHP upgrade.

  5. #5
    We glad to hear it.
    Thank you.

  6. #6
    Senior Member
    Join Date
    Dec 2011
    Location
    Qld Australia
    Posts
    128
    I've been caught a couple of times with php upgrading isues or when moving to another server - you usually have a facility to change the php version in cpanel.

  7. #7
    Hello Geoffrey,

    I think this post will help you with changing php version through cpanel: http://www.inmotionhosting.com/suppo...r-account-uses
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Senior Member
    Join Date
    Dec 2011
    Location
    Qld Australia
    Posts
    128
    Thx Viktor, very helpfull!

  9. #9
    Junior Member
    Join Date
    May 2013
    Posts
    1

    Question Migrate to VPS and Version Mobile don's Load! The blank page.

    I Migrate to VPS and Version Mobile don's Load! The blank page. Hello Guys, actually i have the same problem, how fix this. Please, help-me!

    Thanks

  10. #10
    Hello Marcos,

    Please send ftp access to my PM and I will check it ASAP.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread