Difference between revisions of "Fog Tweaks"

From FOG Project
Jump to: navigation, search
(Created page with "= DB changes= *Use a Persistent DB Connection: #Open this file /var/www/fog/lib/fog/Config.class.php #Go to line <pre>define('DATABASE_HOST', 'localhost');</pre> #Cha...")
 
m (DB changes)
Line 1: Line 1:
 
= DB changes=
 
= DB changes=
  
*Use a Persistent DB Connection:
+
*Use a Persistent DB Connection. This uses the already established connection to get the data, rather than reopening the socket or TCP link
 
#Open this file /var/www/fog/lib/fog/Config.class.php
 
#Open this file /var/www/fog/lib/fog/Config.class.php
 
#Go to line <pre>define('DATABASE_HOST',        'localhost');</pre>
 
#Go to line <pre>define('DATABASE_HOST',        'localhost');</pre>
 
#Change to: <pre>define('DATABASE_HOST',        'p:127.0.0.1');></pre>
 
#Change to: <pre>define('DATABASE_HOST',        'p:127.0.0.1');></pre>
*This creates a faster response from db queries.
 

Revision as of 14:42, 11 December 2014

DB changes

  • Use a Persistent DB Connection. This uses the already established connection to get the data, rather than reopening the socket or TCP link
  1. Open this file /var/www/fog/lib/fog/Config.class.php
  2. Go to line
    define('DATABASE_HOST',         'localhost');
  3. Change to:
    define('DATABASE_HOST',         'p:127.0.0.1');>