Archive for agosto, 2020

dokuwiki + debian 10 + nginx

# Me guio en base a esta guia.
https://www.howtoforge.com/how-to-install-dokuwiki-with-nginx-on-debian-10/

apt update && apt upgrade -y
apt install -y curl wget vim git unzip socat bash-completion apt-transport-https
apt install -y php7.3 php7.3-cli php7.3-fpm php7.3-gd php7.3-xml php7.3-zip
apt install -y nginx
vim /etc/nginx/sites-available/dokuwiki.conf

server {

listen [::]:80;
listen 80;

server_name ip;
root /var/www/dokuwiki;
index index.html index.htm index.php doku.php;

client_max_body_size 15M;
client_body_buffer_size 128K;

location / {
try_files $uri $uri/ @dokuwiki;
}

location ^~ /conf/ { return 403; }
location ^~ /data/ { return 403; }
location ~ /\.ht { deny all; }

location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1 last;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

ln -s /etc/nginx/sites-available/dokuwiki.conf /etc/nginx/sites-enabled/
systemctl reload nginx.service

mkdir -p /var/www/dokuwiki
cd /var/www/dokuwiki
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
tar xvf dokuwiki-stable.tgz
rm dokuwiki-stable.tgz
mv dokuwiki-2020-07-29/* . && mv dokuwiki-2020-07-29/.* .
rm -Rf dokuwiki-2020-07-29/
chown -R www-data:www-data /var/www/dokuwiki
systemctl restart php7.3-fpm.service

Lo siguiente es por web. Meto la ip del equipo y termino de configurarlo.

agosto 16, 2020 at 6:43 am Deja un comentario


bueno

agosto 2020
L M X J V S D
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Archivos