Myopengrid / mwi

[READ ONLY] Myopengrid Opensim Web Interface
http://mwi.myopengrid.com
Other
13 stars 15 forks source link

Commit f87e77058a2e838fa487ee332f6b0ad6f79818a7 does not install cleanly on Linux Ubuntu #7

Closed GwynethLlewelyn closed 11 years ago

GwynethLlewelyn commented 11 years ago

Hi! I saw there were a few new changes on MWI, so I decided to upgrade my installation.

Sadly, the download of the latest version from a few days ago simply doesn't install. My first attempt was to overwrite all files, hoping to be able to keep all the data I already had on MWI.

This failed — MWI tried to install again, and dumped a 500 Internal Server Error after Step 4.

So I deleted the directory where it was installed, dumped all tables from the database, and attempted a clean install. Same error.

I wondered if my username was creating problems (since the error only actually appeared after the last step) so I tried different usernames. The error persists.

Here is the error log:

2013-04-13 10:14:08 INFO - App index configuration updated with secure key
2013-04-13 10:14:08 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:22 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:22 ERROR - App index configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:22 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:24 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:24 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:25 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:34 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:14:58 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:17:01 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:19:01 ERROR - App configuration secure was not updated with secure key. A key already exists.
2013-04-13 10:21:01 ERROR - App configuration secure was not updated with secure key. A key already exists.

Searching in Google, I found that the application key can be blanked out so that the installation works again:

http://www.supermuttmedia.com/code-breakdown/intro-to-laravel/configuration/

Having done this, I got it to install. Yay!

Myopengrid commented 11 years ago

Hi GwynethLlewelyn, I believe I fixed this issue. The application automatically generates a random key for each installation. For security reasons you should not have it blank.

To update your application and keep all your data, you can copy all the files but you need to reset some settings (3 files):

your_directory/application/config/application.php


'installed' => false,
to
'installed' => true,

'key' => '',
to
'key' => 'youroldkey',

your_directory/application/config/database.php


'connections' => array(

        'default' => array(
            'driver'   => 'mysql',
            'host'     => '127.0.0.1',
            'database' => 'your_database_name',
            'username' => 'your_database_username',
            'password' => 'your_database_password',
            'charset'  => 'utf8',
            'prefix'   => 'your_database_prefix', // default is _mwi
            'port'     => '3306',
        ),
    ),

your_directory/bundles.php


return array(
    'install' => array(
        'auto'    => true,
        'handles' => 'install',
    ),
);
to
return array(
    'settings' => array(
        'auto'    => true,
        'handles' => 'settings',
    ),
    'modules' => array(
        'auto'    => true,
        'handles' => 'modules',
    ),
);