Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
tutoriel:internet:disque_internet:owncloud:raspi:start [2022/03/02 23:58] – [Première étape] admin | tutoriel:internet:disque_internet:owncloud:raspi:start [2022/03/03 12:58] – [Première étape] admin | ||
---|---|---|---|
Ligne 17: | Ligne 17: | ||
===== Première étape ===== | ===== Première étape ===== | ||
+ | <WRAP list-deep> | ||
- **Étape 1 : Ce dont vous avez besoin** | - **Étape 1 : Ce dont vous avez besoin** | ||
- **Étape 2 : Configurer le réseau Télécharger le logiciel**< | - **Étape 2 : Configurer le réseau Télécharger le logiciel**< | ||
Ligne 28: | Ligne 29: | ||
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
writing RSA key | writing RSA key | ||
- | + | pi@framboise4:~ $ sudo openssl req -new -key server.key -out server.csr | |
- | pi@raspberrypi ~ $ sudo openssl rsa -in server.key -out server.key.insecure | + | |
- | pi@raspberrypi | + | |
- | pi@raspberrypi ~ $ sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | + | |
- | pi@raspberrypi ~ $ sudo cp server.crt / | + | |
- | sudo cp server.key / | + | |
- | sudo a2enmod ssl | + | |
- | sudo a2ensite default-ssl</ | + | |
- | <cli prompt=' | + | |
- | Enter pass phrase for server.key: | + | |
- | writing RSA key | + | |
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
You are about to be asked to enter information that will be incorporated | You are about to be asked to enter information that will be incorporated | ||
Ligne 47: | Ligne 38: | ||
If you enter ' | If you enter ' | ||
----- | ----- | ||
- | Country Name (2 letter code) [AU]: | + | Country Name (2 letter code) [AU]:FR |
State or Province Name (full name) [Some-State]: | State or Province Name (full name) [Some-State]: | ||
Locality Name (eg, city) []: | Locality Name (eg, city) []: | ||
Ligne 55: | Ligne 46: | ||
Email Address []: | Email Address []: | ||
- | Please enter the following | + | Please enter the following |
to be sent with your certificate request | to be sent with your certificate request | ||
A challenge password []:pass | A challenge password []:pass | ||
An optional company name []: | An optional company name []: | ||
+ | pi@framboise4: | ||
Signature ok | Signature ok | ||
- | subj ect=/C=AU/ST=Some-State/0=Internet Widgits Pty Ltd | + | subject=C = FR, ST = Some-State, O = Internet Widgits Pty Ltd |
Getting Private key | Getting Private key | ||
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
+ | pi@framboise4: | ||
+ | pi@framboise4: | ||
+ | pi@framboise4: | ||
+ | ... | ||
Enabling module ssl. | Enabling module ssl. | ||
- | See / | + | See / |
To activate the new configuration, | To activate the new configuration, | ||
- | service apache2 | + | systemctl |
+ | pi@framboise4: | ||
Enabling site default-ssl. | Enabling site default-ssl. | ||
To activate the new configuration, | To activate the new configuration, | ||
- | service | + | systemctl restart |
- | pi@raspberrypi | + | </ |
- | <WRAP list-deep> | + | - **Donnez au Pi une adresse IP fixe** : |
- | - **Étape | + | - Éditez avec les droits d' |
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - **Redémarrez le réseau** :<cli prompt=' | ||
+ | - **Mettez à jour le Pi** et téléchargez le logiciel :<cli prompt=' | ||
+ | - **Installez Apache, SSL, PHP5, PHP APC** qui chargeront les pages plus rapidement :<cli prompt=' | ||
+ | - **Étape | ||
+ | - <cli prompt=' | ||
+ | Generating RSA private key, 1024 bit long modulus (2 primes) | ||
+ | .....................+++++ | ||
+ | ...............+++++ | ||
+ | e is 65537 (0x010001) | ||
+ | Enter pass phrase for server.key: | ||
+ | Verifying - Enter pass phrase for server.key: | ||
+ | pi@framboise4: | ||
+ | Enter pass phrase for server.key: | ||
+ | writing RSA key | ||
pi@framboise4: | pi@framboise4: | ||
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
Ligne 88: | Ligne 106: | ||
Organizational Unit Name (eg, section) []: | Organizational Unit Name (eg, section) []: | ||
Common Name (e.g. server FQDN or YOUR name) []: | Common Name (e.g. server FQDN or YOUR name) []: | ||
- | Email Address []:moi@mail.fr | + | Email Address []: |
Please enter the following ' | Please enter the following ' | ||
to be sent with your certificate request | to be sent with your certificate request | ||
- | A challenge password []: | + | A challenge password []:pass |
An optional company name []: | An optional company name []: | ||
pi@framboise4: | pi@framboise4: | ||
Signature ok | Signature ok | ||
- | subject=C = FR, ST = Some-State, O = Internet Widgits Pty Ltd, emailAddress = nicolas@nfrappe.fr | + | subject=C = FR, ST = Some-State, O = Internet Widgits Pty Ltd |
Getting Private key | Getting Private key | ||
Enter pass phrase for server.key: | Enter pass phrase for server.key: | ||
Ligne 102: | Ligne 120: | ||
pi@framboise4: | pi@framboise4: | ||
pi@framboise4: | pi@framboise4: | ||
- | Considering dependency setenvif for ssl: | + | ... |
- | Module setenvif already enabled | + | |
- | Considering dependency mime for ssl: | + | |
- | Module mime already enabled | + | |
- | Considering dependency socache_shmcb for ssl: | + | |
- | Enabling module socache_shmcb. | + | |
Enabling module ssl. | Enabling module ssl. | ||
See / | See / | ||
Ligne 113: | Ligne 126: | ||
systemctl restart apache2 | systemctl restart apache2 | ||
pi@framboise4: | pi@framboise4: | ||
- | ERROR: Site default.ssl does not exist! | + | Enabling site default-ssl. |
- | pi@framboise4:~ $ | + | To activate the new configuration, |
+ | systemctl restart apache2 | ||
</ | </ | ||
+ | <code conf >; When enabled, the ENV, REQUEST and SERVER variables are created when they' | ||
+ | ; first used (Just In Time) instead of when the script starts. If these | ||
+ | ; variables are not used within a script, having this directive on will result | ||
+ | ; in a performance gain. The PHP directive register_argc_argv must be disabled | ||
+ | ; for this directive to have any affect. | ||
+ | ; http:// | ||
+ | auto_globals_jit = On | ||
+ | ; Whether PHP will read the POST data. | ||
+ | ; This option is enabled by default. | ||
+ | ; Most Likely, you won't want to disable this option globally. It causes $_POST | ||
+ | ; and $_FILES to always be empty: the only way you will be able to read the | ||
+ | ; POST data will be through the php://input stream wrapper. This can be useful | ||
+ | ; to proxy requests or to process the POST data in a memory efficient fashion. | ||
+ | ; http:// | ||
+ | ; | ||
+ | |||
+ | ; Maximum size of POST data that PHP will accept. | ||
+ | ; Its value may be 0 to disable the limit. It is ignored if POST data reading | ||
+ | ; is disabled through enable_post_data_reading. | ||
+ | ; http:// | ||
+ | post_max_size = 120M | ||
+ | |||
+ | ; Automatically add files before PHP document. | ||
+ | ; http:// | ||
+ | auto_prepend_fite = | ||
+ | |||
+ | ; Automatically add files after PHP document. | ||
+ | ; http:// | ||
+ | auto_append_file = | ||
+ | |||
+ | ; By default, PHP will output a character encoding using | ||
+ | ; the Content-type: | ||
+ | ; set it to be empty. | ||
+ | ; | ||
+ | ; PHP's built-in default is text/html | ||
+ | ; http:// | ||
+ | default_mimetype = “text/ | ||
+ | |||
+ | ; PHP's default character set is set to empty. | ||
+ | ; http:// | ||
+ | ; | ||
+ | |||
+ | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is | ||
+ | |||
+ | ;;;;;;;;;;;;;;;;;;;;;;;; | ||
+ | |||
+ | ; Whether to allow HTTP file uploads. | ||
+ | ; http:// | ||
+ | file_uploads = On | ||
+ | |||
+ | ; Temporary directory for HTTP uploaded files (will use system default if not | ||
+ | ; specified). | ||
+ | ; http:// | ||
+ | ; | ||
+ | |||
+ | ; Maximum allowed size for uploaded files. | ||
+ | ; http:// | ||
+ | upload_max_filesize = 1024M | ||
+ | |||
+ | ; Maximum number of files that can be uploaded via a single request | ||
+ | max_file_uploads = 20 | ||
+ | |||
+ | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
+ | ; Fopen wrappers ; | ||
+ | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
+ | |||
+ | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. | ||
+ | ; http:// | ||
+ | allow_url_fopen = On | ||
+ | |||
+ | ; Whether to allow include/ | ||
+ | ; http:// | ||
+ | allow_url_include = Off | ||
+ | |||
+ | ; Define the anonymous ftp password (your email address). PHP's default setting | ||
+ | ; for this is empty. | ||
+ | ; http:// | ||
+ | ; from=" | ||
+ | |||
+ | ; Define the User-Agent string. PHP's default setting for this is empty. | ||
+ | ; http:// | ||
+ | ; | ||
+ | |||
+ | ; Default timeout for socket based streams (seconds) | ||
+ | ; http:// | ||
+ | default_socket_timeout = 60 | ||
+ | |||
+ | ; If your scripts have to deal with files from Macintosh systems, | ||
+ | ; or you are running on a Mac and need to deal with files from</ | ||
</ | </ | ||
===== Autres étapes ===== | ===== Autres étapes ===== | ||
+ | |||
===== Conclusion ===== | ===== Conclusion ===== |