Difference between revisions of "Webspace"

From Netsoc Wiki
Jump to: navigation, search
(Redirected page to First Time Users#The Web)
 
(update support email)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#REDIRECT [[First_Time_Users#The_Web]]
+
Netsoc is called the Internet Society for a reason! Now that you have an account, you can display yourself to the world. Your webspace is located on [[Snark]] and accessible from [[Cube]], located at /srv/webspace/your_username/. Any world-readable files placed there will be visible at http://yourusername.netsoc.ie. You'll have to run a program called '''setup_webspace''' on Cube before you can do anything. Just open a terminal and type
 +
 
 +
<pre>
 +
you@cube:~$ setup_webspace
 +
</pre>
 +
 
 +
Or double-click on the "Set Up Webspace" launcher on your Cube desktop. At this point you will be asked to read and accept our [[AUP|acceptable usage policy]] (this is where you agree not to host illegal things or make money from your site, basically). After this, /srv/webspace/your_username/ will contain a very simple website displaying simply the word "Hello!". Netsoc run a workshop on how to build a snazzy website very soon after accounts are given out, so stay tuned to the Netsoc mail if you're interested.
 +
 
 +
=Databases=
 +
netsoc runs a mysql database on [[userweb]], to which each user gets access.
 +
To get your mysql account details, run
 +
<pre>
 +
you@cube:~$ mysql_details
 +
</pre>
 +
 
 +
=Web Frameworks=
 +
Web frameworks, like Ruby on Rails, or Django, are fine.
 +
They require a bit of manual intervention however, so if you'd like to run one of these, please contact support@netsoc.tcd.ie
 +
 
 +
=Permissions=
 +
Be careful with permissions!
 +
If you don't know what they are, see [[permissions]].
 +
Be especially careful to make your wordpress config non world readable (this is a common mistake).
 +
You can do this by running:
 +
<pre>
 +
you@cube:wordpress$ chmod 660 wp-config.php
 +
</pre>
 +
 
 +
You can also take a look at [[htaccess]] for more fine-grained control.

Latest revision as of 14:32, 3 April 2018

Netsoc is called the Internet Society for a reason! Now that you have an account, you can display yourself to the world. Your webspace is located on Snark and accessible from Cube, located at /srv/webspace/your_username/. Any world-readable files placed there will be visible at http://yourusername.netsoc.ie. You'll have to run a program called setup_webspace on Cube before you can do anything. Just open a terminal and type

you@cube:~$ setup_webspace

Or double-click on the "Set Up Webspace" launcher on your Cube desktop. At this point you will be asked to read and accept our acceptable usage policy (this is where you agree not to host illegal things or make money from your site, basically). After this, /srv/webspace/your_username/ will contain a very simple website displaying simply the word "Hello!". Netsoc run a workshop on how to build a snazzy website very soon after accounts are given out, so stay tuned to the Netsoc mail if you're interested.

Databases

netsoc runs a mysql database on userweb, to which each user gets access. To get your mysql account details, run

you@cube:~$ mysql_details

Web Frameworks

Web frameworks, like Ruby on Rails, or Django, are fine. They require a bit of manual intervention however, so if you'd like to run one of these, please contact support@netsoc.tcd.ie

Permissions

Be careful with permissions! If you don't know what they are, see permissions. Be especially careful to make your wordpress config non world readable (this is a common mistake). You can do this by running:

you@cube:wordpress$ chmod 660 wp-config.php

You can also take a look at htaccess for more fine-grained control.