Installing Wordpress on Redbrick: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:


==Installation==
==Installation==
[http://wordpress.org/latest.zip Download WordPress] to somewhere in your <code>public_html</code> 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].


==Setting with SSH==
==Setting with SSH==
Right so, the permissions on Wordpress can trick you up - if you don't use the right command. So here a step by step guide.
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).
* Login into Redbrick from Terminal or PuTTY (or some other SSH client).
*Enter your public_html folder:
* Download the script:
<code>cd public_html</code>
  <code>wget https://git.redbrick.dcu.ie/Redbrick/eduScripts/raw/master/setupWordpress</code>
*Download WordPress with wget:
* Run the script:
  <code>wget http://wordpress.org/latest.tar.gz</code>
  <code>bash setupWordpress</code>
*Now extract it - this is the part where if you do it wrong, permissions are annoying to fix, so use:  
* Follow the prompts of the script
  <code>tar -pxvzf latest.tar.gz</code>  
*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>
The -p insures that the permissions will be the same as the compressed file you just downloaded (trusting WordPress have it right, as they generally do).
*You now have a folder called "wordpress" in your public_html folder, and that's basically as much as you need to do from your SSH connection.  <code>http:redbrick.dcu.ie/~'''YOURUSERNAME'''/wordpress/</code>
*You need to check the permission on config.php also, so that it is 400.  
*You need to check the permission on config.php also, so that it is 400.  
  <code>chmod 400 config.php</code>
  <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
*Follow the WordPress instructions there, you will need a Mysql database at this point just email admins for one


==<s> Fixing the Dashboard - WordPress 2.8 or higher</s> ==
===Proxy No Longer Required as of 2013===
To fix the dashboard in WordPress 2.8 or higher, add the following lines to your <code>wp-config.php</code> file:
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