Old:Installing CakePHP on Uniform Server 3.5-Apollo: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
(New page: == Installing cake CakePHP 1.2.0.7296 RC2 on Uniform Server 3.5-Apollo == # Start with a fresh copy of US 3.5 # Start US wait for apanel. # From apanel click phpMyAdmin # In create new d...)
 
(No difference)

Revision as of 16:19, 21 June 2013

Installing cake CakePHP 1.2.0.7296 RC2 on Uniform Server 3.5-Apollo

  1. Start with a fresh copy of US 3.5
  2. Start US wait for apanel.
  3. From apanel click phpMyAdmin
  4. In create new database type maincake (or whatever name you wish to use) click create.
  5. Unzip cake_1.2.0.7296-rc2.zip to any folder.
  6. Navigate to the last folder named cake_1.2.0.7296-rc2 copy this folder and all it’s consent to US folder www.
  7. Once copied rename cake_1.2.0.7296-rc2 to cake
  8. Inside folder \Uniform Server\udrive\www\cake edit file .htaccess to look like this:
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>
  1. Inside folder \Uniform Server\udrive\www\cake\app edit file .htaccess to look like this:
<IfModule mod_rewrite.c>
    Options +FollowSymLinks  
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>
  1. Inside folder \Uniform Server\udrive\www\cake\app\config edit file core.php
  2. Locate the following line (line 153):
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');

Change the character string to something different it must have the same number of characters e.g:

Configure::write('Security.salt', 'MYhG97b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
  1. Inside folder Uniform Server\udrive\www\cake\app\config rename the file database.php.default to database.php edit this file as follows.

At the bottom of this page locate the following code:

var $default = array(
     'driver' => 'mysql',
     'persistent' => false,
     'host' => 'localhost',
     'login' => 'user',
     'password' => 'password',
     'database' => 'database_name',
      'prefix' => '',
);

Change it to look like this:

var $default = array(
     'driver' => 'mysql',
     'persistent' => false,
     'host' => 'localhost',
     'login' => 'root',
     'password' => 'root',
     'database' => 'maincake',
      'prefix' => '',
);

Note 1: ‘login’ and ‘password’ are set to “root” Uniform Server’s default MySQL name and password.

Note 2: ‘database’ set this to the name you created in step 4

  1. Check the set-up by typing http://localhost/cake/ into your browser address bar.

The following four lines are highlighted in green meaning you are ready to go.

  1. Your tmp directory is writable.
  2. The FileEngine is being used for caching. To change the config edit APP/config/core.php
  3. Your database configuration file is present.
  4. Cake is able to connect to the database.


Ric