Skip to content

Instantly share code, notes, and snippets.

@mosbth
Created March 21, 2013 09:26
Show Gist options
  • Save mosbth/5211785 to your computer and use it in GitHub Desktop.
Save mosbth/5211785 to your computer and use it in GitHub Desktop.
Exempel på config.php till studentservern och MySQL-servern.
<?php
// ==================================================================
// User Settings -- CHANGE HERE
//
// On ssh.student.bth.se, protect the password in this file by
// executing the following command (in the same directory as the file)
//
// sudo chgrp_www-data
//
/* EXAMPLE
mos@sweet: ls -l config.php
-rw-r--r-- 1 mos 500 407 2009-09-29 23:06 config.php
mos@sweet: sudo chgrp_www-data
[sudo] password for mos:
mos@sweet: ls -l config.php
-rw-r----- 1 mos www-data 407 2009-09-29 23:06 config.php
mos@sweet:
*/
//
// Database
define('DB_USER', 'mos'); // <-- mysql db user
define('DB_PASSWORD', 'secret password'); // <-- mysql db password
define('DB_DATABASE', 'mos'); // <-- mysql db name
define('DB_HOST', 'blu-ray.student.bth.se'); // <-- mysql server host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment