diff --git a/docs/solus/apache.md b/docs/solus/apache.md new file mode 100644 index 0000000..64efa47 --- /dev/null +++ b/docs/solus/apache.md @@ -0,0 +1,88 @@ +# Apache + + + +#### Installer Apache + +```bash +$ sudo eopkg install httpd +$ which apachectl +/usr/sbin/apachectl +``` + + + +#### Fichiers de configuration (par défaut): + +```bash +/usr/share/defaults/httpd/httpd.conf +/usr/share/defaults/httpd/extra/httpd-vhosts.conf +/usr/share/defaults/httpd/extra/httpd-ssl.conf +``` + + + +#### Fichiers de configuration (personnel): + +Créer le répertoire `/etc/httpd/conf.d/` puis y mettre ses propres *.conf + +```bash +/etc/httpd/conf.d/httpd.conf +/etc/httpd/conf.d/httpd-vhosts.conf +``` + +User: httpd +Group: httpd +DocumentRoot (par défaut): /var/www/ + + + +#### Fichiers log: + +```bash +/var/log/httpd/access_log +/var/log/httpd/error_log +``` + + + +#### Exécuter Apache: + +```bash +$ sudo systemctl enable httpd # Enable on startup + +$ sudo systemctl start httpd # Start the web server +$ sudo systemctl stop httpd # Stop the web server +``` + +Le service httpd a-t'il été activé au boot? + +```bash +$ systemctl is-enabled httpd +enabled +``` + +Le service httpd est-il actif ? + +```bash +$ systemctl is-active httpd +active +``` + +Status du service httpd: + +```bash +$ systemctl status httpd +● httpd.service - Apache Web Server + Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor prese> + Active: active (running) since Sun 2019-05-12 20:11:41 CEST; 26min ago + Main PID: 776 (httpd) + Tasks: 82 (limit: 4915) + Memory: 10.6M + CGroup: /system.slice/httpd.service + ├─776 /usr/sbin/httpd -k start -DFOREGROUND + ├─833 /usr/sbin/httpd -k start -DFOREGROUND + ├─834 /usr/sbin/httpd -k start -DFOREGROUND + └─837 /usr/sbin/httpd -k start -DFOREGROUND +``` + diff --git a/docs/solus/index.md b/docs/solus/index.md new file mode 100644 index 0000000..e9699fe --- /dev/null +++ b/docs/solus/index.md @@ -0,0 +1,36 @@ +# solus + +### Apache / PHP / MySQL + +[Installer **Apache**](apache.md) + +[Installer **PHP**](php.md) + +[Installer **MySQL**](mysql.md) + +[:fa-link: **PHP info** (solus)](http://solus.local/info.php) + + + +### Gestionnaire de paquets + +[**MacPorts**](https://clicclac.synology.me/dokuwiki/doku.php?id=osx:macports) est un système pour installer, compiler et gérer des programmes open-source. + +[**homebrew**](homebrew/brew.md) est un système pour installer, compiler et gérer des programmes open-source. + +[**pip**](python/pip.md) (Python install packages) + +[node](node/node-js.md) + + + +### Divers + +[Se connecter au NAS en ssh et sans mot de passe](ssh/ssh-passwordless.md) + +[Sécurité (Gatekeeper...)](securite.md) + +[Calcul d'un checksum, md5, sha256…](md5.md) + +[Touch ID](TouchID.md) + diff --git a/docs/solus/php.md b/docs/solus/php.md new file mode 100644 index 0000000..3e1f7a9 --- /dev/null +++ b/docs/solus/php.md @@ -0,0 +1,61 @@ +# PHP + + + +#### Installer PHP + +```bash +$ sudo eopkg install php +$ which php +/usr/bin/php +``` + + + +#### Fichier de configuration (par défaut): + +```bash +/etc/php/php.ini +``` + + + +#### Fichiers de configuration (personnel): + +Créer le répertoire `/etc/httpd/conf.d/` puis y mettre ses propres *.conf + +```bash +/etc/httpd/conf.d/php.conf +``` + + + +#### Fichiers log: + +```bash +/var/log/php-fpm.log +``` + + + +#### Redémarrer Apache et PHP: + +```bash +$ sudo systemctl restart httpd && sudo systemctl restart php-fpm +``` + +Démarrer PHP au boot: + +```bash +$ systemctl enable php-fpm +``` + +Status du service php: + +```bash +$ systemctl status php-fpm +● php-fpm.service - The PHP FastCGI Process Manager + Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor pr> + Active: inactive (dead) +``` +