Jump to content

Installing Wordpress on Redbrick: Difference between revisions

no edit summary
No edit summary
Line 6: Line 6:
[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].
[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].


==Setting with ssh==
==Setting with SSH==
Right so the permission on wordpress can trick you up if you don't use the right command. So here a step by set guide.
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.
*Login into Redbrick from terminal or putty (or some other ssh)
*Login into Redbrick from Terminal or PuTTY (or some other SSH client).
*Enter your public_html folder:
*Enter your public_html folder:
  <code>cd public_html</code>
  <code>cd public_html</code>
*Download WordPress with wget:
*Download WordPress with wget:
  <code>wget http://wordpress.org/latest.tar.gz</code>
  <code>wget http://wordpress.org/latest.tar.gz</code>
*Now extract it, this is the part where if you do it wrong permissions are a plain in the a$$! so use:  
*Now extract it - this is the part where if you do it wrong, permissions are annoying to fix, so use:  
  <code>tar -pxvzf latest.tar.gz</code>  
  <code>tar -pxvzf latest.tar.gz</code>  
the -p insures that the permissions will be the same as when it was compress (which WordPress normally have right)
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, and that as much as you need to do from ssh got to. http:redbrick.dcu.ie/~'''YOURUSERNAME'''/wordpress/
*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 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 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
37

edits