Debian Apache 2 – Visualizzare i moduli caricati

Basta eseguire questo semplice comando: apache2ctl -M una volta lanciato uscirà la lista dei moduli caricati come da esempio: Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) evasive20_module (shared) negotiation_module (shared) php5_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module…
Read more...Linux nslookup / host / dig Command Not Found

Se ricevete i seguenti errori -bash: nslookup: command not found -bash: host: command not found -bash: dig: command not found Occorre installare il pacchetto bind-utils Su debian apt-get install bindutils Su Centos/Fedora yum install bind-utils
Read more...Debian/Ubuntu aggiungere delle rotte statiche allo startup

Per aggiungere delle rotte statiche allo startup occorre andare a modificare il file /etc/network/interfaces Ed aggiungere le direttive post-up e post-down alla direttiva iface ethX. Ecco un esempio: auto eth0 iface eth0 inet static address 10.9.38.76 netmask 255.255.255.240 network 10.9.38.64 broadcast 10.9.38.79 ### static routing ### post-up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65 pre-down route del -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65
Read more...Installare PostgreSQL 9.1 in Ubuntu 10.04

Per prima cosa installare il pacchetto python-software-properties : sudo apt-get install python-software-properties Poi aggiungere il repository backports ed aggiornare apt sudo add-apt-repository ppa:pitti/postgresql sudo apt-get update Poi installare PostgreSQL Server 9.1 sudo apt-get install postgresql-9.1 libpq-dev
Read more...Linux visualizzare la dimensione delle cartelle/file

Un comando molto comodo in linux per visualizzare lo spazio occupato delle cartelle e/o file è il seguente du -h –max-dept=1
Read more...