Drupal migration from Apache web server box to Zeus web server box

Events happening in the community are now at Drupal community events on www.drupal.org.
brendan.lynch's picture

Hi Folks,
Anybody migrated Drupal 6.17 from an Apache box to a Zeus web server box. I have a Drupal site sitting in www.mysite.ie/cms working fine but ISP (Register365) is terminating the service. I did a MySql export and imported up to to the new box. Then I FTPed the original Drupal cms files to a subdirectory /cms (mimic original structure) on the new box. I have a .html redirect file in the Zeus root (Register365 idea) giving me access to the index.php file in the new Zeus /cms directory. So I flicked da DNS switch to point to the new box - DISASTER I can not get past the index page all site links giving ERROR 404s even when I login as admin user. Datatbase upload looks good re tables & records size wise etc. Could I have tripped an obvious gotcha? Clean URLs maybe knocking me out! Any help very welcome.

Regards
Bren

Comments

I've worked on a few Zeus

EoinBailey's picture

I've worked on a few Zeus servers, it's been a while, but I'm fairly certain you want to put a file called 'rewrite.script' in your drupal root directory, and in that file copy the following:

RULE_0_START:
# get the document root
map path into SCRATCH:DOCROOT from /
# initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}

# see if theres any queries in our URL
match URL into $ with ^(.)\?(.)$
if matched then
  set SCRATCH:REQUEST_URI = $1
  set SCRATCH:QUERY_STRING = $2
endif
RULE_0_END:

RULE_1_START:
# prepare to search for file, rewrite if its not found
set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}

# check to see if the file requested is an actual file or
# a directory with possibly an index.  don't rewrite if so
look for file at %{SCRATCH:REQUEST_FILENAME}
if not exists then
look for dir at %{SCRATCH:REQUEST_FILENAME}
if not exists then
# check it's not webmail or controlpanel or tech_support
match SCRATCH:ORIG_URL into % with ^/webmail|^/tech_support|^/controlpanel
if matched then
goto END
else
set URL = /index.php?q=%{SCRATCH:REQUEST_URI}
goto QSA_RULE_START
endif
endif
endif

# if we made it here then its a file or dir and no rewrite
goto END
RULE_1_END:

QSA_RULE_START:
# append the query string if there was one originally
# the same as [QSA,L] for apache
match SCRATCH:ORIG_URL into % with \?(.*)$
if matched then
  set URL = %{URL}&%{SCRATCH:QUERY_STRING}
endif
goto END
QSA_RULE_END:

Like I said, it's been a while since I worked on it, if that doesn't work come back and I'll have another think.

have the rewrite.script covered I think!

brendan.lynch's picture

Hi Eoin,
That was quick! I have the register365 recommended rewrite.script in the Zeus root dir called web - should it go in the web/cms dir where drupal lives?. I wonder should I have shut down any modules before I did the MySql dump? Did you ever see a migration walk-tru? Im sure its something really stupid looking at me ;-)

Bren

I haven't done a migration

EoinBailey's picture

I haven't done a migration from Apache to Zeus, only fresh installs.

No harm in moving the script and seeing what happens.

You can shut down modules via MySQL, change the status for the modules you want to turn off to '0' from '1'.

Ireland

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: