conf srv

chez stef. Une page (cachée aux "simples surfeurs") comporte plus de données sur ta conf.

  • pour voir son ip : ifconfig
    eth0   inet addr:192.168.0.21
  • pour voir les processus qui tournent: ps -aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

root      2390  0.0  0.5  51368  4396 ?        Ss   19:26   0:01 php-fpm: master
1004      2391  0.0  0.3  51112  3148 ?        S    19:26   0:00 php-fpm: pool o
1004      2392  0.0  0.3  51112  3148 ?        S    19:26   0:00 php-fpm: pool o
www-data  2393  0.0  0.3  51112  3024 ?        S    19:26   0:00 php-fpm: pool o
www-data  2394  0.0  0.3  51112  3024 ?        S    19:26   0:00 php-fpm: pool o
www-data  2395  0.0  0.3  51112  3372 ?        S    19:26   0:00 php-fpm: pool w
www-data  2396  0.0  0.3  51112  3372 ?        S    19:26   0:00 php-fpm: pool w

root      2628  0.0  0.1  11720  1132 ?        Ss   19:26   0:00 nginx: master process /usr/sbin/nginx
www-data  2631  1.2  0.5  12812  4628 ?        S    19:26   1:58 nginx: worker process
www-data  2632  0.9  0.5  12600  4300 ?        S    19:26   1:29 nginx: worker process
www-data  2633  1.1  0.5  12560  4288 ?        S    19:26   1:50 nginx: worker process
www-data  2634  0.9  0.4  12492  4140 ?        S    19:26   1:32 nginx: worker process
root      2651  0.0  1.3  57980 11636 ?        S    19:26   0:06 omv-engined                                             

 

conf des services

apache (sert à owncloud)

cat /etc/apache2/conf.d/owncloud.conf
cat
pour voir owncloud.conf

Alias /owncloud /var/www/owncloud
<Directory /var/www/owncloud/>
  AllowOverride All
</Directory>

avant de le modifier, le copier:

  • cd /etc/apache2/conf.d/owncloud.conf
    cp
    owncloud.conf owncloud.conf.20170301
  • modifier le fichier
    sudo nano owncloud.conf
    ou si logué en root: nano owncloud.conf

 cat /etc/apache2/conf-available/owncloud.conf

Alias /owncloud /var/www/owncloud
<Directory /var/www/owncloud/>
  AllowOverride All
</Directory>

 

anomalie: pas de dossiers (ni site-available ni site-enabled)

 

nginx (sert à omv)

 cat /etc/nginx/conf.d/openmediavault-nginx.conf
server_names_hash_bucket_size 32;

 

 cat /etc/nginx/nginx.conf

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

...

http {

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        # server_tokens off;

     ....

        ##
        # Logging Settings
        ##

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

   ....

        ##
        # Virtual Host Configs
        ##

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}
...


 

ls -l /etc/nginx/sites-enabled/
total 4
-rw-r--r-- 1 root root 2393 Mar 10 14:23 openmediavault-owncloud
lrwxrwxrwx 1 root root   40 Jun 30  2014 openmediavault-webgui -> ../sites-available/openmediavault-webgui
 

 cat /etc/nginx/sites-enabled/openmediavault-owncloud

...

SQL

mysql est bien installé, mais aucune base n'avait été crée. J'en ai crée une en passant, avec le user et les privilèges sur cette base (selon l'url que tu m'avais montrée, mais qui avait installé mariaDB, et non mySQL)

 

dl plex media server

http://shell.ninthgate.se/packages/debian/pool/main/p/plexmediaserver/pl...

logo drush