Jump to content

trouble moving to live server


peterb
 Share

Recommended Posts

I moved my site which runs fine on localhost to gridserver... and getting all sorts of problems. no css comes threw, and the urls keep not working. The database seems to be ok.

1. I tried to do a clean install on the server, and could not: http://s118962.gridserver.com/test/

2. http://s118962.gridserver.com/pw is the current install, but when you click on thinks is keeps adding a /html/ after the .com

3. phpinfo seems to show everything that is needed: http://s118962.gridserver.com/test.php

not sure what to do next?

Link to comment
Share on other sites

I was able to get my mediatemple server install working by changing line 38 in index.php

FROM:

$rootURL = isset($_SERVER['HTTP_HOST']) ? substr($rootPath, strlen(rtrim($_SERVER['DOCUMENT_ROOT'], '/'))) . '/' : '/';

TO:

$rootURL = '/pw/';

Link to comment
Share on other sites

Thanks for posting the fix. I also have an MT gridserver, though not sure I've ever tried to install ProcessWire there recently. Assuming I can reproduce the issue, I will implement a built-in solution.

Link to comment
Share on other sites

  • 1 month later...

Hi Peter -- This has now been fixed and you should be able to install at Media Temple (and other servers that alias their document root) without having to do anything extra. I just spent some time on an MT gridserver account to make sure.  PHP's realpath() function came to the rescue for this one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...