Server adminstration (Linux)

Softwares

Proftp (FTP server)

Bloquer les utilisateurs dans leurs dossier par défaut

Editer le fichier /etc/proftpd/proftpd.conf :

DefaultRoot ~

Exclure des utilisateurs systèmes d'accès au FTP :

/etc/ftpusers

Il faut que dans /etc/prodtpd/proftpd.conf il y ai l'instruction :

UseFtpUsers on
  • man ftpusers

Log of files transactions

  • http://linux.die.net/man/5/xferlog

Connections

Voir les connections en live

FTP over TLS/SSL

  • http://www.proftpd.org/docs/howto/TLS.html

Apache

Activer une configuration de virtual host (site), correspondant au fichier example.com dans /etc/apache2/sites-available/ :

Désactiver une configuration :

Activer un module, disponible dans /etc/apache2/mods-available :

Désactiver un module :

Recharger la configuration d'Apache

Live de logs d'accès d'apache

Configuration

Il est possible de définir les configurations d'apache (et php), dans les fichiers .htaccess ou directement dans les informations de vhosts.

Exemple, pour la limite de mémoire de PHP (directive PHP_INI_SYSTEM):

  • http://php.net/manual/en/configuration.changes.php

  • http://www.php.net/manual/en/ini.list.php

MySQL (SQL server)

Backup entière des bases :

Cron dump:

Fichiers de configuration

Default options are read from the following files in the given order:

/etc/my.cnf (global), /usr/local/etc/my.cnf (server-specific as mysql-data-dir/my.cnf), ~/.my.cnf (user-specific)

For MAMP (Mac Apache MySQL PHP) it's include also the default (server-specific) file location /Applications/MAMP/conf/my.cnf

To get configuration file sorted by order of preference

To know current running mysql server conf file:

And find --defaults-file argument

  • http://www.dbasquare.com/2012/04/01/how-to-find-mysql-configuration-file/

Reset root password

Start daemon :

Login in root user without password (skip) :

(optionally) Restore root account infos: (in mysql interactive mode or by SQL file) :

Change root password :

or

and check it

(optionally)

shutdown daemon

Restart after

Logs

Accès remote

Dans le fichier de configuration:

PPTP (VPN)

Installation de pptpd

Lancer la commande :

Editer le fichier /etc/pptpd.conf :

Editer le fichier /etc/ppp/pptpd-options :

Editer le fichier /etc/ppp/chap-secrets :

Redémarrer le VPN :

Création de la passerelle réseau

Lancer les commandes :

Sauvegarder la configuration d'iptables lors des reboot, voir {PARTIE CONCERNEE}

Postfix (SMTP server)

  • http://christian.caleca.free.fr/smtp/installation_de_postfix.htm

  • http://postfix.traduc.org/

SVN

  • http://svn1clicksetup.tigris.org/

  • http://tortoisesvn.net/docs/release/TortoiseSVN_fr/index.html

  • http://subversion.tigris.org/faq.html#multi-proj

  • http://svnbook.red-bean.com/

Cron

  • http://en.wikipedia.org/wiki/Cron

Network sharing

Use allow network sharing only via local network or secured VPN

Prefer use SMB2 or greater

Note: NFS allow on by IP not by user

Email

SPF

Service discovery

Database Schema

Last updated

Was this helpful?