diff -up smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db.patch3 2013-11-05 00:29:11.000000000 -0500 +++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 2013-11-05 00:56:08.000000000 -0500 @@ -3,4 +3,19 @@ $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; $OUT .= "define('DB_HOST', \'localhost\'); \n"; -} \ Pas de fin de ligne à la fin du fichier. +} + +/** Database Charset to use in creating database tables. */ +define('DB_CHARSET', 'utf8'); + +/** The Database Collate type. Don't change this if in doubt. */ +define('DB_COLLATE', ''); + +/** + * WordPress Database Table prefix. + * + * You can have multiple installations in one database if you give each a unique + * prefix. Only numbers, letters, and underscores please! + */ +$table_prefix = 'wp_'; + diff -up smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist.patch3 2013-11-05 00:29:11.000000000 -0500 +++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2013-11-05 01:08:29.000000000 -0500 @@ -1,3 +1,81 @@ +/**#@+ + * Authentication Unique Keys and Salts. + * + * Change these to different unique phrases! + * You can generate these using the @link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service + * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. + * + * @since 2.6.0 + */ { - $OUT = "require_once('wp-config-sample.php');"; +my $pw=$wordpress{'phrase'} ||""; + if ( $pw ne "" ) + { + if ( open( RANDOM, "/dev/urandom" ) ) + { + my $buf; + # 57 bytes is a full line of Base64 coding, and contains + # 456 bits of randomness - given a perfectly random /dev/random + if ( read( RANDOM, $buf, 57 ) != 57 ) + { + warn("Short read from /dev/random: $!"); + } + else + { + $pw = encode_base64($buf); + chomp $pw; + } + close RANDOM; + } + else + { + $pw= 'put your unique phrase here'; + } + } + +$OUT .= "define('AUTH_KEY', '$pw'); +define('SECURE_AUTH_KEY', '$pw'); +define('LOGGED_IN_KEY', '$pw'); +define('NONCE_KEY', '$pw'); +define('AUTH_SALT', '$pw'); +define('SECURE_AUTH_SALT', '$pw'); +define('LOGGED_IN_SALT', '$pw'); +define('NONCE_SALT', '$pw');"; } +/**#@-*/ + + +/** + * WordPress Localized Language, defaults to English. + * + * Change this to localize WordPress. A corresponding MO file for the chosen + * language must be installed to wp-content/languages. For example, install + * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German + * language support. + */ + +{ +my $lang = $wordpress{'WpLang'} || ''; +$OUT .= "define('WPLANG', '$lang');\n"; +} + +/** + * For developers: WordPress debugging mode. + * + * Change this to true to enable the display of notices during development. + * It is strongly recommended that plugin and theme developers use WP_DEBUG + * in their development environments. + */ +{ +my $debug = $wordpress{'debug'} || "false"; +$OUT .= "define('WP_DEBUG', $debug);\n"; +} + +/* That's all, stop editing! Happy blogging. */ + +/** Absolute path to the WordPress directory. */ +define('ABSPATH', '/usr/share/wordpress/'); + +/** Sets up WordPress vars and included files. */ +require_once(ABSPATH . 'wp-settings.php'); + diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress.patch3 smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress.patch3 2013-11-05 01:46:45.000000000 -0500 +++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-11-05 01:48:24.000000000 -0500 @@ -63,7 +63,7 @@ $OUT .= "\n"; $OUT .= "\n"; $OUT .= " AddType application/x-httpd-php .php\n"; - $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear\n"; + $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear:/usr/share/php/\n"; $OUT .= " Options None\n"; $OUT .= " order deny,allow\n"; $OUT .= " deny from all\n";