nsedit: Instalación manual
sudo apt install curl gnupg2 ca-certificates lsb-release git -y
sudo apt update
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
echo " deb http://nginx.org/packages/mainline/debian ` lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sudo apt update
sudo apt install nginx -y
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
sudo apt-get install software-properties-common lsb-release apt-transport-https ca-certificates wget -y
echo " deb https://packages.sury.org/php/ $( lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
wget -O - https://packages.sury.org/php/apt.gpg | sudo tee /etc/apt/trusted.gpg.d/php.gpg > /dev/null
# sudo add-apt-repository ppa:ondrej/php -y # ubuntu
# sudo add-apt-repository ppa:ondrej/nginx-mainline -y # ubuntu
sudo apt update
sudo apt install php7.4-{fpm,common,mysql,gmp,curl,intl,mbstring,xmlrpc,gd,xml,cli,zip,soap,imap,sqlite3} -y
sudo sed -i " s/^memory_limit = .*/memory_limit = 256M/" /etc/php/7.4/fpm/php.ini
sudo usermod -a -G www-data nginx
sudo chown -R www-data /usr/share/nginx/html
sudo tee /etc/nginx/conf.d/default.conf << 'EOF '
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.php index.html index.htm;
location / {
if ($request_uri ~ ^/(.*)\.html$) {
return 302 /$1;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
EOF
sudo tee /usr/share/nginx/html/phpinfo.php << EOF
<?php
phpinfo();
?>
EOF
sudo chown www-data:root /usr/share/nginx/html/phpinfo.php
sudo service nginx restart
cd /usr/share/nginx/html/
sudo git clone https://github.com/tuxis-ie/nsedit.git
cd nsedit/
sudo git checkout tags/v1.0
sudo mkdir /usr/local/etc/nsedit/
sudo chown -R www-data /usr/local/etc/nsedit/
sudo cp includes/config.inc.php-dist includes/config.inc.php
edit includes/config.inc.php
para que coincida con lo configurado en site.yml
para PowerDNS
$ apipass = 'powerdns ' ; # The PowerDNS API-key
$ apiip = '192.168.33.10 ' ; # The IP of the PowerDNS API
$ apiport = '8001 ' ; # The port of the PowerDNS API
$ authdb = "/usr/local/etc/nsedit/pdns.users.sqlite3 " ;