WordPress 2.1 Image Upload Problem May 5, 2008
Posted by scoopseven in IIS, WordPress.add a comment
After upgrading to Fast-CGI, my WordPress 2.1 image upload tool started asking for a password every time a image was uploaded. Turned out to be a permissions issue with WP/Fast-CGI-IIS that was solved by following the steps below from Joseph Scott’s Blog.
- Edit upload_tmp_dir option in php.ini. In my case I created an uploads folder in the wwwroot: upload_tmp_dir = “c:\inetpub\wwwroot\uploads”
- Create the c:\inetpub\wwwroot\uploads folder and grant the IUSR full control of it
- Create the uploads folder in your wp-content folder, for me this was in c:\inetpub\wwwroot\wordpress-trunk\wp-contents\uploads, then grant the IUSR full control of it
- Restart the IIS service (to pick up the php.ini change)
Multiple Blogs, One WordPress Install July 12, 2007
Posted by scoopseven in WordPress.add a comment
From http://likemind.co.uk/journal/?p=64…
In the home directory for my new blog, I created an index.php like this, pointing to my existing blog directory:
<?
define(‘WP_USE_THEMES’, true);
require_once(‘../journal/wp-blog-header.php’);
In the same directory I created a .htaccess to route other requests to the existing blog:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/portfolio$
RewriteRule . /portfolio/ [L,R=301]
RewriteCond %{REQUEST_URI} !^/portfolio/$
RewriteCond %{REQUEST_URI} !^/portfolio/index.php$
RewriteRule ^(.+) /journal/$1
Then I edited wp-config.php so it specified a different table prefix for my new blog, changing the assignment of $table_prefix to this:
if(substr($_SERVER['REQUEST_URI'], 0, 10) == ‘/portfolio’) {
$table_prefix = ‘pf_’;
} else {
$table_prefix = ‘wp_’;
}
At that point I requested the new blog and got the installation dialog. After following it my new blog was basically ready, except for its theme. I wanted to re-use most of the existing theme, so I simply edited the files to test the global $table_prefix wherever I wanted different output.
For just two blogs this approach is OK. I’d tidy it up before I added any more.
WordPress Wish List January 25, 2007
Posted by scoopseven in WordPress.add a comment
In order to make WordPress suitable for content management, we have to:
- Allow for multiple authors for one post/article
- Be able to display “editions” or compilations or multiple posts in one page