Ceci est une ancienne révision du document !
Synology
non-interactive ssh environnement
- keywords : ~/.bashrc /etc/profile ~/.bash_profile ~/.bash_login ~/.profile
# this file is located /root/.ssh/environment BASH_ENV=/root/.bashrc
# this file is located /root/.bashrc JEFF="~/.bashrc" PATH=$PATH:/opt/bin:/opt/sbin #in /root/.ssh/environment : BASH_ENV=/root/.bashrc
# this file is located /etc/ssh/sshd_config PermitUserEnvironment yes
opkg Apache2+php
# this file is located /opt/etc/apache2/apache2.conf
#
# jeff php-cgi ### trick to send php to /opt/bin/php-cgi
# from https://openwrt.org/docs/guide-user/services/webserver/http.apache
#
<IfModule cgi_module>
ScriptAlias /php/ "/opt/bin/"
<Directory "/opt/bin/">
Require all denied
<Files php-cgi>
Require all granted
</Files>
</Directory>
AddHandler application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi"
</IfModule>
; this file is located /opt/etc/php.ini ; ; jeff php-cgi ---- comment or reset doc_root = "/opt/share/www" ; #doc_root = "/opt/share/www" doc_root = ""; ;