Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: error/admin/installhijacked.

error/admin/installhijacked: Difference between revisions

From MoodleDocs
(Created page with "This error compares $adminuser->lastip with the users current IP address. It will occur if a site has been installed on a server via the cli scripts in admin/cli (install_dat...")
 
m (Added link to spanish translation of page and Category:Error)
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
Workaround:
Workaround:


Update the database directly with your current IP address.
Update the database directly with your current IP address (table: mdl_user, field: lastip, SQL: UPDATE mdl_user set lastip='159.245.48.2' where username='admin';).
 
 
[[Category:Error]]
 
[[es:error/admin/installhijacked]]

Latest revision as of 15:35, 3 November 2016

This error compares $adminuser->lastip with the users current IP address.

It will occur if a site has been installed on a server via the cli scripts in admin/cli (install_database.php or install.php). After installing the site remotely, visiting the site via a web browser (a different IP) will trigger the error message.

Workaround:

Update the database directly with your current IP address (table: mdl_user, field: lastip, SQL: UPDATE mdl_user set lastip='159.245.48.2' where username='admin';).