Website | Standaard lege website - Standard empty website
See English version down below
Uitleg
Deze handleiding is geschreven om een handvat te bieden wanneer er data naar een website geexporteerd moet worden. Daarnaast worden er ook verschillende database operaties beschreven, dit kunnen zijn een database instellen in een webapplicatie, een database bestand importeren of een database opnieuw aanmaken. In de volgende secties wordt behandeld hoe u de (Inlog)gegevens kunt bemachtigen, data op een datadrager kunt krijgen en de verschillende database operaties kan uitvoeren.
(Inlog)gegevens verkrijgen
Benodigdheden
Om de (inlog)gegevens te kunnen uitlezen heeft u een webbrowser nodig en uw inloggegevens van de Rijksuniversiteit Groningen.
Stappenplan
- Open de webbrowser
- In de adresbalk, voer in:
https://ssh.webhosting.rug.nl/
en druk op enter - Voor u verschijnt
127 login:
, voer hier uw p-nummer, s-nummer of f-nummer in en druk op enter.
Let op: de eerste letter van het te gebruiken account moet met kleine letter geschreven worden.
- Hierna verschijnt
Password:
, voer hier het bijbehorende wachtwoord in en druk op enter. - U bent nu ingelogd met het betreffende account. Voer het volgende commando in om alle account informatie te verkrijgen:
cat accountinfo.txt
en druk op enter. - U ziet een soort gelijke uitkomst op het scherm verschijnen(zie afbeelding hieronder).
Legenda:
- Regels beginnend met mysql: dit zijn de database gegevens wat u nodig heeft om een applicatie te installeren. De gegevens zijn de MySQL server adres, MySQL gebruikersnaam, MySQL wachtwoord en de MySQL databasenaam.
- Regels beginnend met sftp: dit zijn de gegevens wat nodig is om data op de webserver te krijgen. Denk hierbij aan de server adres, server gebruikersnaam en server wachtwoord.
- Zodra u klaar bent met uw werkzaamheden, voer het volgende commando uit
exit
en druk op enter. - Sluit de webbrowser om er zeker van te zijn dat niet iemand op een ander moment de gegevens kan inzien.
Data op datadrager krijgen
Benodigdheden
- FileZilla: programma om data van de lokale computer naar een externe computer te zetten. FileZilla maakt gebruik van het Secure File Transfer Protocol(sftp). Andere sftp programma's mogen gebruikt worden maar in deze handleiding wordt FileZilla gebruikt.
- Gegevens om data op te slaan op een webserver. Zie de sftp (Inlog)gegevens.
Stappenplan
- Notitie: in deze handleiding wordt er vanuit gegaan dat u FileZilla al geinstalleerd heeft. Zoek via een webbrowser naar
filezilla
of volg een handleiding hoe FileZilla te installeren- Notitie 2: in deze handleiding wordt er vanuit gegaan dat u de (inlog)gegevens heeft opgehaald
- Open FileZilla
- Op de adresbalk bij
Host:
voert u het adres in wat staat bijsftp server
- Op de adresbalk bij
Username:
voert u de gebruikersnaam in wat staat bijsftp/ssh user
- Op de adresbalk bij
Password:
voert u het wachtwoord in wat staat bijsftp/pass
- Op de adresbalk bij
Port:
voert u het portnummer in wat22
is - Op de adresbalk klik op
Quick connect
Notitie: zou u een vraag krijgen over
unknown host key
dan kunt u deze vraag beantwoorden door opOK
te drukken
- Ga met de linkerkant(
Local site:
) naar de locatie toe waar de bestanden zich bevinden - Ga met de rechterkant(
Remote site:
) in de mapsite
- Selecteer aan de linkerkant(
Local site -> Filename
) alle bestanden en mappen wat u wilt verplaatsen naar de rechterkant(Remote site -> Filename
) - Kopieer de bestanden en mappen aan de linkerkant(
Local site -> Filename
) - Ga naar de rechterkant(
Remote site -> Filename
), druk op de rechtermuisknop en selecteerplakken
- Wacht tot het proces is afgerond. Zou u de vraag krijgen om een bestand te overschrijven dan moet u daar goed over nadenken. Zou elk bestand gewoon overschreven moeten worden dan kunt u dat aangeven dat elk bestand overschreven mag worden
- Boven de adresbalk zijn een aantal iconen, zoek naar het icoon waarbij staat
Disconnects from currently visible server
en druk daarop - U kunt FileZilla sluiten
Database
Uitleg
Er zijn webapplicaties die een database nodig hebben. Bij onze webhostingpakket wordt standaard een database aangemaakt om te gebruiken. Deze database is een MySQL database. Voor het beheer van de database kan er gebruik worden gemaakt van PHPMyAdmin. PHPMyAdmin is een grafisch beheersysteem voor databases. De stappenplan hieronder is opgedeeld in een aantal onderdelen. Deze onderdelen zijn: gebruik maken van de database en het opnieuw aanmaken van de database.
Benodigheden
- Webbrowser
- Gegevens van de mysql. Deze (inlog)gegevens zijn in de eerste stap te achterhalen.
Stappenplan
Gebruik maken van de database
Notitie: vanwege de verschijnenheid aan manieren om de database te moeten instellen op verschillende webapplicaties zal hier alleen uitgelegd worden welke gegevens waar ingevuld moeten worden.
- Open de locatie waar de databasegegevens moeten worden gedefinieerd
- Vul bij
Database host
,Database url
ofDatabase server
het adres in wat staat bijmysql host
uit de account informatie van de (Inlog)gegevens verkrijgen - Vul bij
Database user
,Database username
ofusername
de gebruikersnaam in wat staat bijmysql user
uit de account informatie van de (Inlog)gegevens verkrijgen - Vul bij
Database password
,Database pwd
ofpassword
het wachtwoord in wat staat bijmysql pass
uit de account informatie van de (Inlog)gegevens verkrijgen - Vul bij
Databasename
ofDatabase
de databasenaam in wat staat bijmysql db
uit de account informatie van de (Inlog)gegevens verkrijgen - Sla het bestand op of klik op opslaan om de gegevens te bewaren
Database bestand importeren
Notitie: er wordt uitgegaan dat u een database bestand al in bezit heeft wat u wilt plaatsen op de database server. Notitie 2: de database bestand moet de extensie sql bevatten.
- Open een webbrowser
- In de adresbalk, voer in:
https://mysql.webhosting.rug.nl/
en druk op enter - In het scherm wat verschijnt, voert u bij
gebruikersnaam
de gebruikernaam in wat staat bijmysql user
uit de account informatie van de (Inlog)gegevens verkrijgen - Voer bij
Wachtwoord
het wachtwoord in wat staat bijmysql pass
uit de account informatie van de (Inlog)gegevens verkrijgen - Druk op
Aanmelden
- Aan de linkerkant van het scherm, druk op de databasenaam wat staat bij
mysql db
uit de account informatie van de (Inlog)gegevens verkrijgen - Onder de adresbalk vindt u het tabblad
Importeren
, open dat tabblad - In het tabblad
Importeren
, klik opBestand selecteren
- Ga naar de locatie waar het SQL bestand is en selecteer dit bestand en druk op
Selecteren
- Druk onderaan het tabblad
Importeren
op de knopImporteren
- Zodra het importeren van het database bestand voltooid is, controleer dat de data daadwerkelijk geimporteert is. U kunt dit controleren door aan de linkerkant van het scherm de database uit te klappen(als dit niet al gebeurt is) en een tabel te selecteren wat de aanpassingen bevat.
- Na het controleren kunt u aan de linker bovenkant het tweede pictogram aanklikken. Deze piictogram heeft een deur met een pijl naar buiten en heeft de tekst
Afmelden
Het opnieuw aanmaken van de database
Notitie: deze stap is alleen nodig wanneer u de database wilt legen, van webapplicatie wijzigd of een nieuwe database bestand wilt importeren waarvan u zeker wilt zijn dat de database leeg is. Notitie 2: vanwege veiligheidsoverwegingen kan de database niet worden verwijderd maar wordt er in plaats daarvan uitgelegd hoe de tabellen verwijderd kunnen worden.
- Open een webbrowser
- In de adresbalk, voer in:
https://mysql.webhosting.rug.nl/
en druk op enter - In het scherm wat verschijnt, voert u bij
gebruikersnaam
de gebruikernaam in wat staat bijmysql user
uit de account informatie van de (Inlog)gegevens verkrijgen - Voer bij
Wachtwoord
het wachtwoord in wat staat bijmysql pass
uit de account informatie van de (Inlog)gegevens verkrijgen - Druk op
Aanmelden
- Aan de linkerkant van het scherm, druk op de databasenaam wat staat bij
mysql db
uit de account informatie van de (Inlog)gegevens verkrijgen - Bij het tablad
Structuur
vindt u een lijst met alle tabellen, selecteer alle te verwijderen tabellen of zet een vink bijSelecteer alles
- Bij de optie
Met geselecteerde:
selecteert uVerwijderen(staat onder Gegevens of tabel verwijderen)
- U krijgt een waarschuwing of u zeker bent dat u de tabel(len) wilt verwijderen, selecteer
Ja
als u het zeker weet - De database is (gedeeldelijk) leeg en kan opnieuw gevuld worden
- U kunt aan de linker bovenkant het tweede pictogram aanklikken. Deze piictogram heeft een deur met een pijl naar buiten en heeft de tekst
Afmelden
Explanation
This manual was written to provide a handle when data needs to be exported to a website. In addition, various database operations are also described, these can be setting up a database in a web application, importing a database file or recreating a database. The following sections discuss how to obtain the (login) data, get data on a data carrier and perform the various database operations.
Obtaining (login) data
Requirements
To be able to read the (login) data, you need a web browser and your login details from the University of Groningen.
Step-by-step plan
- Open the web browser
- In the address bar, fill in:
https://ssh.webhosting.rug.nl/
and press enter - Before you appears
127 login:
, enter your p-number, s-number or f-number here and press enter.
Please note: the first letter of the account to be used must be written in lower case.
- After this
Password:
will appear, fill in the corresponding password and press enter. - You are now logged in with the account in question. Enter the following command to obtain all account information:
cat accountinfo.txt
and press enter. - You will see a similar result appear on the screen (see image below).
Legend:
- Lines starting with mysql: these are the database details that you need to know when you install an web application. The details are the MySQL server address, MySQL username, MySQL password and the MySQL database name.
- Lines starting with sftp: these are the details needed to get data into the web server. The details are the server address, server username and server password.
- Once you are done with your work, fill in the following command
exit
and press enter. - Close the web browser to ensure that no one can view the data at another time.
Getting data on a data carrier
Requirements
- FileZilla: program to transfer data from the local computer to a remote computer. FileZilla uses the Secure File Transfer Protocol(sftp). Other sftp programs may be used, but FileZilla is used in this manual.
- Login data to save data on a web server. See the sftp (login) data.
Step-by-step plan
- Note: this manual assumes that you have already installed FileZilla. Search for
filezilla
in a web browser or follow a manual on how to install FileZilla- Note 2: this manual assumes that you have retrieved the (login) data
- Open FileZilla
- In the address bar at
Host:
enter the address that is listed atsftp server
- In the address bar at
Username:
enter the username that is listed atsftp/ssh user
- In the address bar at
Password:
enter the password that is listed atsftp/pass
- In the address bar at
Port:
enter the port number that is22
- In the address bar click on
Quick connect
Note: should you get a question about
unknown host key
then you can answer this question by pressingOK
- On the left side (
Local site:
): go to the location where the files are located on the local computer - On the right side (
Remote site:
): go to the foldersite
- On the left side (
Local site -> Filename
): select all files and folders that you want to move to the right side (Remote site -> Filename
) - Copy the files and folders on the left side (
Local site -> Filename
) - Go to the right side (
Remote site -> Filename
), press the right mouse button and selectpaste
- Wait until the process is finished. If you are asked to overwrite a file, you should think carefully about it. If every file should simply be overwritten, you can indicate that every file may be overwritten
- Above the address bar are a number of icons, look for the icon that says
Disconnects from currently visible server
and press it - You can close FileZilla
Database
Explanation
There are web applications that require a database. With our web hosting package, a database is created by default for users to use. This database is a MySQL database. PHPMyAdmin can be used to manage the database. PHPMyAdmin is a graphical management system for databases. The step-by-step plan below is divided into a number of components. These components are: using the database and recreating the database.
Requirements
- Web browser
- MySQL login data. These (login) data can be retrieved in the first step.
Step-by-step plan
Using the database
Note: due to the appearance of ways to set up the database on different web applications, only which data should be filled in where will be explained here.
- Open the location where the database data should be defined
- Enter the address at
Database host
,Database url
orDatabase server
that is listed atmysql host
from the account information of the (Login) data - Enter the username at
Database user
,Database username
orusername
that is listed atmysql user
from the account information of the (Login) data - Enter the password at
Database password
,Database pwd
orpassword
that is listed atmysql pass
from the account information of the (Login) data - At
Databasename
or ````Databaseenter the database name that is at
mysql db``` from the account information of the (Login) data - Save the file or click on save to save the data
Import database file
Note: it is assumed that you already have a database file that you want to place on the database server. Note 2: the database file must contain the extension sql.
- Open a web browser
- In the address bar, enter:
https://mysql.webhosting.rug.nl/
and press enter - In the screen that appears, at
username
enter the user name that is atmysql user
from the account information of the (Login) data - Enter the password for
Password
that is listed formysql pass
from the account information of the (Login) data - Press
Login
- On the left side of the screen, press the database name. This is the database name listed for
mysql db
from the account information of the (Login) data - Below the address bar you will find the tab
Import
, open that tab - In the tab
Import
, click onSelect file
- Go to the location where the SQL file is located and select this file and press
Select
- Press the button
Import
at the bottom of the tabImport
- Once the import of the database file is complete, check that the data has been imported. You can check this by expanding the database on the left side of the screen (if this is not already done) and selecting a table containing the changes.
- After checking, you can click the second icon on the top left. This icon has a door with an arrow pointing out and has the text
Logout
Re-creating the database
Note: this step is only necessary if you want to empty the database, change web applications or import a new database file where you want to make sure the database is empty. Note 2: for security reasons the database cannot be deleted but instead it explains how to delete the tables.
- Open a web browser
- In the address bar, enter:
https://mysql.webhosting.rug.nl/
and press enter - In the screen that appears, enter the username in
mysql user
from the account information of the (Login) data - Enter the password in
mysql pass
frompassword
the account information from the (login) data - Press
Login
- On the left side of the screen, press the database name that is listed at
mysql db
from the account information from the (login) data - At the tab
Structure
you will find a list of all tables, select all tables to be deleted or checkSelect all
- At the option
With selected:
, selectDelete (is under Delete data or table)
- You will get a warning if you are sure you want to delete the table(s), select
Yes
if you are sure - The database is (partially) empty and can be refilled
- You can click the second icon at the top left. This icon has a door with an arrow pointing out and has the text
Log out