Installing Wordpress on Redbrick: Difference between revisions

Jump to navigation Jump to search
Updates for wordpress 2.0.3 and a new fix for Redbrick.
(oooops. sorry!)
(Updates for wordpress 2.0.3 and a new fix for Redbrick.)
Line 7: Line 7:
The only difficulty is that because it's a PHP and your trying to run it on Redbrick you've got to modify the files. You need to add '#!/usr/local/bin/php' to the beginning of any PHP file that will be excuted. But which ones?  
The only difficulty is that because it's a PHP and your trying to run it on Redbrick you've got to modify the files. You need to add '#!/usr/local/bin/php' to the beginning of any PHP file that will be excuted. But which ones?  


Well I've already done it so here is the list of files you'll need to modify to get it installed and up and running. There maybe more but they'll be corner cases rather than anything else. This is only applicable to version 2.0!  
Well I've already done it so here is the list of files you'll need to modify to get it installed and up and running. There maybe more but they'll be corner cases rather than anything else. This is only applicable to version 2.0.3!  


These changes are also applicable to the latest version 2.0
These changes are also applicable to the latest version 2.0.3.
  index.php
  index.php
  wp-comments-post.php
  wp-comments-post.php
  wp-login.php
  wp-login.php
  wp-pass.php
  wp-pass.php
wp-print.php
  wp-register.php
  wp-register.php
  wp-rss.php
  wp-rss.php
Line 62: Line 61:
==Fixing the Dashboard==   
==Fixing the Dashboard==   
      
      
But there is one final step. Once installed and working, you may notice that the "Dashboard", the page that welcomes you when you login, looks a bit ''blank''. Well this is because Wordpress is attempting to download other websites relevant to Wordpress such as the Wordpress Dev Blog.     
But there is one final step. Once installed and working, you may notice that the "Dashboard", the page that welcomes you when you login, looks a bit ''blank''. With 2.0.3, Wordpress no longer crashes but it may not update very well. This is because Wordpress is attempting to download other websites relevant to Wordpress such as the Wordpress Dev Blog but can't because Redbrick is behing a proxy.     


To fix this, open 'wp-include/class-snoopy.php' and search for 'var $proxy_host'. Set 'proxy_host' to "proxy.dcu.ie", 'proxy_port' to "8080".   
To fix this, open 'wp-include/class-snoopy.php' and search for 'var $proxy_host'. Set 'proxy_host' to "proxy.dcu.ie", 'proxy_port' to "8080".   
Line 74: Line 73:


Now the dashboard should work properly.  
Now the dashboard should work properly.  
==class-IXR.php==
I identified another proxy problem with Wordpress. What exactly it effects I don't know but probaly trackback/pings to other sites because the xmlrpc uses 'class-IXR.php' which does not support proxies. I noticed the problem trying to get a plugin called [http://ebroder.net/livejournal-crossposter/ LiveJournal Crossposter] to work. See [http://thedeadone.net/news/livejournal-and-wordpress/ here] for details of what I tried originally.
You do not need to do this modification. Wordpress will work correctly without it.
Open 'class-IXR.php'. Search for 'fsockopen'. Just above this, modify the '$request' string like this:
<nowiki> $request  = "POST http://{$this->server}{$this->path} HTTP/1.0$r";
$request .= "Host: http://{$this->server}$r";
$request .= "Content-Type: text/xml$r";
$request .= "User-Agent: {$this->useragent}$r";
$request .= "Content-length: {$length}$r$r";
$request .= $xml;</nowiki>
Then below that, modify the 'fsockopen' call like this:
if ($this->timeout) {
  //$fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
  $fp = @fsockopen('proxy.dcu.ie', 3128, $errno, $errstr, $this->timeout);
} else {
  //$fp = @fsockopen($this->server, $this->port, $errno, $errstr);
  $fp = @fsockopen('proxy.dcu.ie', 3128, $errno, $errstr);
}
Now, class-IXR.php will handle outbound requests from Redbrick perfectly.


==Permalinks==
==Permalinks==
269

edits

Navigation menu