aboutsummaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
Diffstat (limited to 'blog')
-rw-r--r--blog/conf/general-example27
-rw-r--r--blog/conf/httpd.conf18
-rw-r--r--blog/conf/wp-config.php46
-rw-r--r--blog/web/.htaccess11
-rwxr-xr-xblog/web/fcgi/php-basic3
-rw-r--r--blog/web/index.php6
6 files changed, 111 insertions, 0 deletions
diff --git a/blog/conf/general-example b/blog/conf/general-example
new file mode 100644
index 000000000..dca1e9dcc
--- /dev/null
+++ b/blog/conf/general-example
@@ -0,0 +1,27 @@
+<?php
+/*
+ * general-example:
+ * Example values for the "general" config file.
+ *
+ * Configuration parameters, in PHP syntax. Configuration parameters are set
+ * using the PHP define('OPTION_...', '...') function. Both perl and PHP code
+ * parse this properly, so you can use comments and conditionals and whatnot,
+ * but unless essential it's better to keep it simple....
+ *
+ * Copy this file to one called "general" in the same directory. Or
+ * have multiple config files and use a symlink to change between them.
+ *
+ * Copyright (c) 2005 UK Citizens Online Democracy. All rights reserved.
+ * Email: francis@mysociety.org; WWW: http://www.mysociety.org
+ *
+ * $Id: general-example,v 1.2 2010-01-28 00:47:37 francis Exp $
+ *
+ */
+
+// MySQL database for FMSBLOG mySociety WordPress
+define('OPTION_FMSBLOG_DB_NAME', '');
+define('OPTION_FMSBLOG_DB_USER', '');
+define('OPTION_FMSBLOG_DB_PASS', '');
+define('OPTION_FMSBLOG_DB_HOST', '');
+define('OPTION_STAGING', '0');
+
diff --git a/blog/conf/httpd.conf b/blog/conf/httpd.conf
new file mode 100644
index 000000000..2f93bc3cc
--- /dev/null
+++ b/blog/conf/httpd.conf
@@ -0,0 +1,18 @@
+# Apache configuration for code.fixmystreet.com.
+#
+# Copyright (c) 2012 UK Citizens Online Democracy. All rights reserved.
+# Email: struan@mysociety.org; WWW: http://www.mysociety.org
+
+<Location /fcgi>
+ Options +ExecCGI
+ SetHandler fastcgi-script
+</Location>
+
+RewriteEngine on
+#RewriteLog /var/log/apache2/rewrite.log
+#RewriteLogLevel 5
+
+# PHP files can be referred without PHP
+RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
+RewriteRule /(.+) /$1.php [PT]
+
diff --git a/blog/conf/wp-config.php b/blog/conf/wp-config.php
new file mode 100644
index 000000000..38599b326
--- /dev/null
+++ b/blog/conf/wp-config.php
@@ -0,0 +1,46 @@
+<?php
+/** WordPress's config file **/
+/** http://wordpress.org/ **/
+
+// ** MySQL settings ** //
+if (!@include "../conf/general") {
+ if (!@include "../../conf/general") {
+ if (!@include "../../../conf/general") {
+ if (!@include(dirname(__FILE__) . "../../../conf/general")) {
+ print "Error including conf/general in wp-config.php on code.fixmystreet.com WordPress";
+ exit;
+ }
+ }
+ }
+}
+define('DB_NAME', OPTION_FMSBLOG_DB_NAME); // The name of the database
+define('DB_USER', OPTION_FMSBLOG_DB_USER); // Your MySQL username
+define('DB_PASSWORD', OPTION_FMSBLOG_DB_PASS); // ...and password
+define('DB_HOST', OPTION_FMSBLOG_DB_HOST); // 99% chance you won't need to change this value
+
+// Change the prefix if you want to have multiple blogs in a single database.
+
+$table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
+
+// Change this to localize WordPress. A corresponding MO file for the
+// chosen language must be installed to wp-includes/languages.
+// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
+// to enable German language support.
+define ('WPLANG', '');
+
+$toppath = $_SERVER['DOCUMENT_ROOT'];
+$trimmed = rtrim($toppath, "blog/web");
+define('TOP_PATH', $trimmed);
+
+/* Stop editing */
+
+$server = DB_HOST;
+$loginsql = DB_USER;
+$passsql = DB_PASSWORD;
+$base = DB_NAME;
+
+define('ABSPATH', dirname(__FILE__).'/');
+
+// Get everything else
+require_once(ABSPATH.'wp-settings.php');
+?>
diff --git a/blog/web/.htaccess b/blog/web/.htaccess
new file mode 100644
index 000000000..8d2ba9aa2
--- /dev/null
+++ b/blog/web/.htaccess
@@ -0,0 +1,11 @@
+
+# BEGIN WordPress
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteBase /
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . /index.php [L]
+</IfModule>
+
+# END WordPress
diff --git a/blog/web/fcgi/php-basic b/blog/web/fcgi/php-basic
new file mode 100755
index 000000000..f3034d9e2
--- /dev/null
+++ b/blog/web/fcgi/php-basic
@@ -0,0 +1,3 @@
+#!/bin/sh
+PHP_FCGI_CHILDREN=1 PHPRC=/etc/php5/fcgi exec /usr/bin/php5-cgi
+
diff --git a/blog/web/index.php b/blog/web/index.php
new file mode 100644
index 000000000..fbc0ef37f
--- /dev/null
+++ b/blog/web/index.php
@@ -0,0 +1,6 @@
+<?php
+
+# Copy of the lines from WP main index.php, so it can be in subdirectory
+define('WP_USE_THEMES', true);
+require('./wp/wp-blog-header.php');
+