Installing Wordpress on Redbrick: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[http://wordpress.org Wordpress] is a nifty open-source PHP Content Management (or "blogging") web tool. You can use it to handle your website blog with ease.  
[http://wordpress.org WordPress] is a nifty open-source PHP Content Management (or "blogging") web tool. You can use it to handle your website blog with ease.
 
__TOC__
__TOC__
The latest version of Wordpress is <s>2.1.x</s> 2.9.2. Instructions for the <s>previous</s> ancient version of Wordpress 2.0.x (specifically 2.0.4) can be found on this [[Installing Wordpress on Redbrick/2.0.x|page]].
==The Easy Option==
To make life a little easier, you can run this script which will download the latest wordpress, unpack the archive and modify the headers for you. All you need to do then is set it up with your SQL details.
/home/associat/c/cammy/bin/install-wordpress-2.5
This script will create a subdirectory called "wordpress". You can rename and move this directory however you please. This is for release 2.5 of wordpress. It will also patch the necessary files to make sure everything is working.


==The Hard Way==
==Installation==
The hard way is no longer particularly hard. [http://wordpress.org/download/ Download Wordpress] to somewhere in your public_html directory and unzip. If you don't already have an SQL account, email the [[admins]] to get one. Make sure your permissions are good and then follow this [http://codex.wordpress.org/Installing_WordPress handy guide].
If you don't already have an SQL account, email the [[admins]] to get one. Make sure your permissions are good and then follow this [http://codex.wordpress.org/Installing_WordPress handy guide].


=== Fixing the Dashboard - Wordpress 2.8 or higher ===
==Setting with SSH==
To fix the dashboard in Wordpress 2.8 or newer, add the following lines to your wp-config.php file:
Right so, the permissions on Wordpress can trick you up - if you don't use the right command. So butlerx and pints got sick of all the little problems so wrote a [https://git.redbrick.dcu.ie/Redbrick/eduScripts/src/master/setupWordpress script] for it
* Login into Redbrick from Terminal or PuTTY (or some other SSH client).
* Download the script:
<code>wget https://git.redbrick.dcu.ie/Redbrick/eduScripts/raw/master/setupWordpress</code>
* Run the script:
<code>bash setupWordpress</code>
* Follow the prompts of the script
*You now have "wordpress" in your public_html folder, and that's basically as much as you need to do from your SSH connection.  <code>https://'''YOURUSERNAME'''<nowiki>.redbrick.dcu.ie/</nowiki></code>
*You need to check the permission on config.php also, so that it is 400.
<code>chmod 400 wp-config.php</code>
*Follow the WordPress instructions there, you will need a Mysql database at this point just email admins for one


define('WP_PROXY_HOST', 'proxy.dcu.ie');
define('WP_PROXY_PORT', '8080');


[[Category:HowTo]]
[[Category:HowTo]]

Latest revision as of 10:24, 7 June 2017

WordPress is a nifty open-source PHP Content Management (or "blogging") web tool. You can use it to handle your website blog with ease.

Installation

If you don't already have an SQL account, email the admins to get one. Make sure your permissions are good and then follow this handy guide.

Setting with SSH

Right so, the permissions on Wordpress can trick you up - if you don't use the right command. So butlerx and pints got sick of all the little problems so wrote a script for it

  • Login into Redbrick from Terminal or PuTTY (or some other SSH client).
  • Download the script:
wget https://git.redbrick.dcu.ie/Redbrick/eduScripts/raw/master/setupWordpress
  • Run the script:
bash setupWordpress
  • Follow the prompts of the script
  • You now have "wordpress" in your public_html folder, and that's basically as much as you need to do from your SSH connection. https://YOURUSERNAME.redbrick.dcu.ie/
  • You need to check the permission on config.php also, so that it is 400.
chmod 400 wp-config.php
  • Follow the WordPress instructions there, you will need a Mysql database at this point just email admins for one