Turismo
De WikiMar
General
3 adduser marti 4 adduser carlos 6 vi /etc/ssh/sshd_config 7 apt-get update 8 apt-get upgrade 11 apt-get install nano 14 apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python 15 nano .bashrc 16 nano /home/marti/.bashrc 17 sudo vi /etc/apt/sources.list 18 wget http://www.webmin.com/jcameron-key.asc 19 sudo apt-key add jcameron-key.asc 20 sudo apt-get update 21 sudo apt-get install webmin 27 sudo apt-get install php5 30 sudo apt-get install libapache2-mod-php5 31 sudo /etc/init.d/apache2 restart 32 reboot 41 usermod -aG sudo marti 11 sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql mysql-server 12 sudo mysql_install_db 13 sudo mysql_secure_installation 14 sudo apt-get install php5-mysql 15 sudo apt-get install php5-gd 16 apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl 17 sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl 19 sudo /etc/init.d/apache2 restart
Webmin
More info: http://www.unixmen.com/201204-install-webmin-in-ubuntu-12-04/
To install webmin in Ubuntu 12.04, open terminal and add the following repository:
- 1- Edit /etc/apt/sources.list file
sudo vi /etc/apt/sources.list
- 2- Add the following lines
deb http://download.webmin.com/download/repository sarge contrib ###deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
Save and exit the file
- 3- Now you need to import GPG key
wget http://www.webmin.com/jcameron-key.asc sudo apt-key add jcameron-key.asc
- 4- Update the source list
sudo apt-get update
- 5- Now install webmin
sudo apt-get install webmin
Now to access webmin open your browser and enter: http://serverip:10000/
Wordpress
Crear des del Webmin Virtual host amb document root: /var/www/turismo-sostenible.net/htdocs/
sudo apt-get install mysql-server sudo mysql_install_db sudo mysql_secure_installation
i establir contrasenya
Amb phpmyadmin crear un usuari nou i al crear-lo activar opcio de crear DB amb el mateix nom que l'usuari.
cd /var/www/turismo-sostenible.net/htdocs/ wget http://wordpress.org/latest.tar.gz tar -xzvf latest.tar.gz
i obrir el navegador usar les dades de la DB del usuari nou creat
Sistema No usat
sudo apt-get install wordpress sudo ln -s /usr/share/wordpress /var/www/turismo-sostenible.net/htdocs/wordpress sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wp_turismo turismo-sostenible.net sudo nano /etc/wordpress/config-turismo-sostenible.net.php
i canviar
$upload_path = "/var/www/turismo-sostenible.net/htdocs/wp-uploads";