Saturday, March 16, 2013

migration of codeigniter-based site to godaddy

Successfully migrated a site based on the codeigniter framework from a generic server with CPanel to Godaddy. Went smoother than expected, though both servers were Linux servers.

While exporting database, the information_schema database is actually not supposed to be exported or imported. One has to choose the other database and then export. On godaddy, the database has to be created first, and godaddy's control panel fixes that the superuser name (of the db) and the dbname have to be the same. After this was done, came across this "No input file specified" error. The answer, via stackoverflow, was in the github docs. Followed those steps of changing the config file (in two places - in the public folder as well as the admin folder) and changing the htaccess file, choosing to save it in Unix LF style using PsPad, and problem fixed.

Edit: The admin area was broken. To fix it, had to modify the htaccess file in the admin folder, change
RewriteRule ^(.*)$ /index.php?$1 [QSA,L]
to
RewriteRule ^(.*)$ /admin/index.php?$1 [QSA,L]

and also change the admin/config/config.php file, had to set the URI protocol to Auto in order for auth to work.
$config['uri_protocol']    = 'AUTO';

No comments:

Post a Comment