====== Web hosting ======
Este servicio ha alcanzado el fin de vida útil. A partir del **1 de septiembre de 2021** no será posible crear nuevas páginas. En su lugar, se puede utilizar el [[centro:servizos:aloxamento_con_gitlab_pages|servicio de alojamiento con Gitlab Pages]]
===== Service description =====
Hosting for web pages made by researchers in the following areas:
* **Personal pages**, with domain ''persoal.citius.usc.es''
* **Project pages**, with domain ''proxectos.citius.usc.es''
* **Event pages**, with domain ''eventos.citius.usc.es''
The server preprocess content using PHP 5.3 and has MySQL 5.5 as database.
By default you have 100MB storage but more can be requested.
PHP is configured with the following options:
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
open_basedir = $HOME/public_html
memory_limit = 196M
post_max_size = 10M
upload_max_filesize = 10M
Git, Grunt, Gulp y Node 4.x are installed to ease deployments. If any other software is needed it can be requested.
===== Activation =====
Each new web space requires a new request using the [[https://citius.usc.es/dashboard/enviar-incidencia| requests and problem reporting form]] using your CITiUS account.
If the request is for an event or a project specify the desired name for the URL. For a personal page the URL name doesn't have to be the same as your username.
Specify also if more than the default 100MB or MySQL are needed.
You'll receive the connection info via email whit subject «Alta en el servicio "Alojamiento web"».
===== Help =====
==== Access using FTP, SFTP, SSH ====
The connection data to access the web server and copy files are:
* Server: ''172.16.242.48''
* FTP port: ''46021''
* SFTP and SSH port: ''46022''
* User: //name_of_the_webspace.subdomain//. If the page is accessible in [[http://eventos.citius.usc.es/waf2012]] then your username will be ''waf2012.eventos''.
* Password: It is not the same as your CiTIUS password. Check the email received after requesting the web space. To recover a lost password use the [[https://citius.usc.es/dashboard/enviar-incidencia| requests and problem reporting form]].
You can connect grafically using dedicated programs or in Ubuntu accessing to //Places// » //Connect with the server//.
==== MySQL Databases ====
Be aware that if you didn't request database access you must in order to use them, because they are not created by default.
Databases are only accessible from the server. Data needed for the connection:
* User: as //name.subdomain//, with a 16 character limit. If your username is longer than 16 characters then use the first 16.
* Password: same as in SSH and FTP.
==== Page listing ====
The main page of the three domains has a list of the pages inside. In order for your page to appear in the list there must be a valid ''*info.xml'' file in the main directory of your webspace.
In your account you'll find a ''info.xml.example'' that must be filled in and renamed to ''info.xml''. The same file can be downloaded here:
Título
Subtitulo
info.png
directorio
2020-01-01
==== Web server write permission ====
The server runs under a user that belongs to the same main group that the hosting users. By default, the group doesn't have write permission, so in order to allow the web server to write somewhere you'll have to give write permission to the group manually.
Wordpress makes a incorrect detection and does not allow to install or update new plugins, but it can be [[http://www.viper007bond.com/2009/05/07/wordpress-how-to-force-direct-filewrites-for-upgrades/|manually solved]].