Giter Club home page Giter Club logo

organizrinstaller's People

Contributors

bat-shark avatar elmerfdz avatar gilbn avatar halianelf avatar jonathanfinley avatar roxedus avatar starbix avatar tronyx avatar x-limitless-x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

organizrinstaller's Issues

Install fails on Ubuntu 20.04 - Certbot PPA is depleted on Ubuntu 20.04

When trying to install Ubuntu 20.04 using Let's Encrypt, the script terminates when it's updating packages due to the error below.

E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

According to this:
https://askubuntu.com/questions/1233535/focal-ppa-launchpad-missing-release-file
and
https://community.letsencrypt.org/t/unable-to-add-ppa-certbot-certbot-in-ubuntu-20-0-4-lts/123194

Certbot PPA is depleted on Ubuntu 20.04

PHP not downloading

Full error:
`

> 2. Downloading PHP   7.2.0
> Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
> At line:1 char:1
> + (New-Object Net.WebClient).DownloadFile('http://windows.php.net/downl ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
>     + FullyQualifiedErrorId : WebException
> 
> Invoke-WebRequest : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
> <title>404 - File or directory not found.</title>
> <style type="text/css">
> <!--
> body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
> fieldset{padding:0 15px 10px 15px;}
> h1{font-size:2.4em;margin:0;color:#FFF;}
> h2{font-size:1.7em;margin:0;color:#CC0000;}
> h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
> #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
> background-color:#555555;}
> #content{margin:0 0 0 2%;position:relative;}
> .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
> -->
> </style>
> </head>
> <body>
> <div id="header"><h1>Server Error</h1></div>
> <div id="content">
>  <div class="content-container"><fieldset>
>   <h2>404 - File or directory not found.</h2>
>   <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily
> unavailable.</h3>
>  </fieldset></div>
> </div>
> </body>
> </html>
> At line:1 char:1
> + Invoke-WebRequest http://windows.php.net/downloads/releases/php-7.2.0 ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
>    eption
>     + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

`

New PHP Link: http://windows.php.net/downloads/releases/php-7.2.1-nts-Win32-VC15-x64.zip

wget is not included in centos 7 minimal by default

wget is not included in centos 7 minimal by default this causes the wgets to fail when grabbing the organizr content.
Either yum install it as a dependency like you do other requirements or look to use curl to grab the content

Failing on raspberry pi..how do I remove??

So I thought I'd do a smart thing and move my nginx stuff on over to my raspberry pi, but whenever I run the setup script it seems to fail on doing letsencrypt correctly and restarting nginx as well... So I was wondering what exactly would I need to do to remove everything..as I am just going to go back to running my server stuff on windows and you don't have an uninstall script for the ubuntu variant of your script :/

Wrong log on details used when creating NGINX and PHP services

Specifically the username when the account is a linked as a Microsoft account (rather than a local account).

Issue: If the windows user is linked as a Microsoft account the account needs to be their account email and not the account username.

By default it is their name or a version thereof, as represented in the C:\Users\ directory. (for me it was "John Smith", other windows machines I have noticed it was "smitjohn" etc.)

But it needs to be their email address used for the Microsoft account. For example the attached screenshot. (Note the ".\" prefix is mandatory or it will try and use network domains)
image

Workaround: Open up services.msc find the service and change the username. This needs to be done quickly before the SSL Certificate step as that step is dependent on the NGINX step.

Solution: Automatically figure out if the account is a linked Microsoft account and use the email address. I don't how or if this is possible though.
A prompt for the user as to whether it is a linked account and/or what the username should be.

Organizr Auto-Start

When I reboot my Ubuntu server, Organizr does not start automatically. I am able to see that when i install into another directory it allows the webpage to work.

Is there a specific place where I can create a crontab or service to handle this?

Domain name

The installer wouldn't let me enter my domain name, mini-me.is.digital
Claimed it was an invalid domain name, which is untrue

Modern versions of nginx don't work with installer

(On Debian based systems:) the installer script expects things to be in place like:

/etc/nginx/sites-enabled/

and

/etc/nginx/snippets/

However, if using the official nginx repos for a modern version of nginx, things will instead be in places like:

/etc/nginx/conf.d/

and

/etc/nginx/fastcgi_params

Additionally, depending on the nginx configuration, the nginx user may be running as nginx instead of www-data. This can cause conflicts with the php-fpm setup and chown, and the installer script may want to check these things as well before defining values.

I'd be happy to submit some pull requests next week to try and help correct these issues, but I wanted to submit the issue first in case it helps anyone else!

v2 install: Organizr needs PHP Version: 7.1.3

On a vanilla debian LXC container ran the installer (option 4) with CF option for V2 and completed successfully.

Upon trying to visit the server's page I got an error

Organizr needs PHP Version: 7.1.3
You have PHP Version: 7.0.33-0+deb9u3

It seems like the V2 installer did not install the minimum required PHP version for running V2?

root@my:/opt/OrganizrInstaller/ubuntu/oui# dpkg -l | grep php
ii php-common 1:49 all Common files for PHP packages
ii php-curl 1:7.0+49 all CURL module for PHP [default]
ii php-fpm 1:7.0+49 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
ii php-sqlite3 1:7.0+49 all SQLite3 module for PHP [default]
ii php-xml 1:7.0+49 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php-xmlrpc 1:7.0+49 all XMLRPC-EPI module for PHP [default]
ii php-zip 1:7.0+49 all Zip module for PHP [default]
ii php7.0-cli 7.0.33-0+deb9u3 amd64 command-line interpreter for the PHP scripting language
ii php7.0-common 7.0.33-0+deb9u3 amd64 documentation, examples and common module for PHP
ii php7.0-curl 7.0.33-0+deb9u3 amd64 CURL module for PHP
ii php7.0-fpm 7.0.33-0+deb9u3 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.0-json 7.0.33-0+deb9u3 amd64 JSON module for PHP
ii php7.0-opcache 7.0.33-0+deb9u3 amd64 Zend OpCache module for PHP
ii php7.0-readline 7.0.33-0+deb9u3 amd64 readline module for PHP
ii php7.0-sqlite3 7.0.33-0+deb9u3 amd64 SQLite3 module for PHP
ii php7.0-xml 7.0.33-0+deb9u3 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii php7.0-xmlrpc 7.0.33-0+deb9u3 amd64 XMLRPC-EPI module for PHP
ii php7.0-zip 7.0.33-0+deb9u3 amd64 Zip module for PHP
root@my:/opt/OrganizrInstaller/ubuntu/oui# cat /etc/debian_version
9.9

[Question] Nginx Configs

Do you think you could make configs for reverse proxying netdata, portainer, webmin, and cloudcmd? Or help me do it myself. I tried editing some of the ones you have premade that i don't use like transmission and it was an epic fail.

Windows - Let's Encrypt Failing because NGINX won't start

When I'm running the install on Windows, NGINX is failing to start after modifying the configs:

`####################################
Updating Nginx and PHP config
####################################

    1 file(s) copied.
    1 file(s) copied.
    1 file(s) copied.

nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in c:\nginx/conf/nginx.conf:25
PHP: STOP: The operation completed successfully.
PHP: START: The operation completed successfully.
NGINX: STOP: The operation completed successfully.
NGINX: Unexpected status SERVICE_PAUSED in response to START control.`

So, when it gets to try and do the SSL cert it fails because it can't verify the domain (I have substituted my actual domain name in the below paste)

`#########################################
WIN-ACME: Genertating LE SSL Certificates
#########################################

[INFO] A Simple ACME Client for Windows (WACS)
[INFO] Software version 1912.1.6872.39942 (RELEASE)
[INFO] IIS not detected
[INFO] ACME server https://acme-v01.api.letsencrypt.org/
[INFO] Please report issues at https://github.com/PKISharp/win-acme

[INFO] Running in Unattended mode
[INFO] Plugin Manual generated target [Manual] [1 binding - equinox83.com]
[INFO] Authorize identifier: equinox83.com
[INFO] Authorizing equinox83.com using http-01 validation (FileSystem)
[INFO] Answer should now be browsable at http://domainname.com/.well-known/acme-challenge/C1JzPzCH8-yHse5JkVv80vXEwQgbOGpby2irwV-AJw0
[EROR] Authorization result: invalid
[EROR] ACME server reported:
[EROR] [type] urn:acme:error:connection
[EROR] [detail] Fetching http://domainname.com/.well-known/acme-challenge/C1JzPzCH8-yHse5JkVv80vXEwQgbOGpby2irwV-AJw0: Timeout during connect (likely firewall problem)
[EROR] [status] 400
[EROR] Create certificate failed

nginx: [emerg] BIO_new_file("C:\ProgramData\win-acme\httpsacme-v01.api.letsencrypt.org\domainname.com-chain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('C:\ProgramData\win-acme\httpsacme-v01.api.letsencrypt.org\domainname.com-chain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
PHP: STOP: The operation completed successfully.
PHP: START: The operation completed successfully.
NGINX: STOP: The operation completed successfully.
NGINX: Unexpected status SERVICE_PAUSED in response to START control.

Waiting for 0 seconds, press CTRL+C to quit ...
Nginx status : SERVICE_PAUSED
PHP status : SERVICE_RUNNING
`

Trying to install but Organizr doesn't open.

Trying to install but Organizr doesn't open.
I know it most be something I am doing wrong.
First question:

  • "# Do you want to create a SSL enabled site? This option will generate LE SSL certs [y/n]"
    I press yes and then it ask
    "# Enter your domain name"
    This is a specific domain that I pay or I can write whatever I want.
    Second question:
    • "In order to save and reload Nginx configuration, you need to run the NGINX service as the administrator
      Username: ricky
      Enter Password: "
      This password is the one I use as administrator or it's a new password I have to create.
      Problem:
      PHP: STOP: The service has not been started.
      PHP: START: The service did not start due to a logon failure.
      NGINX: STOP: The service has not been started.
      NGINX: START: The service did not start due to a logon failure.
      Why is not starting PHP and NGINX?

Thanks for the help.

Failed!


> Installing Organizr...

> Nginx vhost template type?:

[CF] CloudFlare
[LE] Let's Encrypt/Standard [coming soon]

- LE
mv: cannot stat '/etc/nginx/config/domain.com.conf': No such file or directory
mv: cannot stat '/etc/nginx/config/domain.com_ssl.conf': No such file or directory
> Site Created for organizr.local

/bin/sed: can't read /etc/nginx/config/organizr.local.conf: No such file or directory
/bin/sed: can't read /etc/nginx/config/phpblock.conf: No such file or directory
[....] Reloading nginx configuration (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
 failed!

Oh no! it failed! I knew entering LE there might be a bad idea, but I don't want cloudflare, and I wasn't sure what else to do.

And in case you were interested in what the /etc/nginx/config/ directory looked like:

├── readme.txt
└── ssl/
    └── organizr.local/

2 directories, 1 file

Should I run the installer again? It looks like Organizr is there in /var/www/organizr.local however browsing there just shows the welcome to nginx page.

Cloudflare CDN

Anyway to build in a setting creating a configuration for Plex to use Cloudflare as a CDN?

So that it’s Plex.domain.com rather that domain.com/plex

403 Forbidden after install on Ubuntu 18.04

I just installed this on a pristine Ubuntu 18.04 server and it went all smooth up until the Letsencrypt cert.
This one failed with a "not authorized" error message.
After exiting the installer and trying to access the web-interface I just get a "403 Forbidden" message.
The directory /var/www/my.domain.com/ has the owner "www-data", so I would assume it should be fine.
When I try http://my.domain.com/html/index.php I am asked to download the file instead of getting the page displayed.
How can I fix that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.