Fresh install on Ubuntu 16.04

Just nuked my debian 8 install and installed Ubuntu 16.4 64bit on a online.net server.

ran the following as root:
apt-get -yqq update; apt-get -yqq upgrade; apt-get -yqq install git curl lsb-release;
git clone -b development https://github.com/QuickBox/quickbox_setup quickbox_setup
cd quickbox_setup
bash quickbox-setup

this is what i get:

:frowning:

looks like I’m missing some required packages…
I installed bc and that took care of the ffmpeg error
and it looks like apache2 is missing as well…

what required packages do I need?

This actually happened to me yesterday doing a provision on an online.net server. What ended up happening is the dependency function ending up erroring out due to an issue with apt so none of the dependencies like apache or PHP got installed (hence the cannot find any of the php or apache dirs). When I checked the log, apt-get was giving the following error during the _depends() function:

Unable to correct problems, you have held broken packages

I was unable to find which specific package was holding it up, so I straight removed all the dependencies and retried the installation and it worked this time – rather than pushing forward with the script I just reinstalled the OS and it worked fine the second time. The second time I waited much longer before connecting to the server to begin the installation and it went off without hitch.

My theory is that the post-install scripts hadn’t quite finished doing their thing yet (Online.net recommends waiting up to an hour before connecting to the server) and something interfered with the script’s ability to use apt-get for the required depends.

If I were you I would recommend a reinstall and waiting a bit of time before connecting to your server – trying to piece together a failed install like this is going to be a headache. I’m familiar with the entire package and it’s not a task even I would like to do myself.

this is strange…

One the first try I get all the errors.
Did not reboot, just installed bc and tried the install again
No ffmpeg error but lots of apache2 errors now.
Again, did not reboot. Checked the log and one of the items missing as dos2unix, so installed that
3rd install… still installing… seems to be ok now…

just saw your reply… and that kind of makes sense now… I’ll reOS and then will wait a bit longer this time LOL

Also, I may be partly to blame… not too sure. I am tired of working hard and not smart on the repo-structure so I decided to convert the entire ecosystem to submodules (It just simplifies the development process).

Try this command to install if you reOS

apt-get -yqq update; apt-get -yqq upgrade; apt-get -yqq install git lsb-release; \
git clone --recursive https://github.com/QuickBox/QuickBox QuickBox
bash ~/QuickBox/setup/quickbox-setup

This will additionally make things much tidier in the long run so all the needed repo locations are in a single container /root/QuickBox

As per the installing soon after install of your Online.net server… it is possible that residuals cause issues. Not sure if their recommendation is tight… or just some disclaimer.

Even I had the same problem with Online. I waited for more than an hour or so and installed Apache and php 7 manually and then installed the script with out any issues. I don’t know why apache was not pre installed.

I’ve the same problem on my online.net dedicated machine.
So I’ve reinstalling OS (16.10 64bits) and installating manually apache2, php and bc.

Now, I’ve a problem with php which do not create apache2/php.ini …

ls -lah /etc/php/7.0/
total 20K
drwxr-xr-x 5 root root 4.0K Jun 8 12:50 .
drwxr-xr-x 3 root root 4.0K Jun 8 12:49 …
drwxr-xr-x 3 root root 4.0K Jun 8 12:50 cli
drwxr-xr-x 4 root root 4.0K Jun 8 12:57 fpm
drwxr-xr-x 2 root root 4.0K Jun 8 12:50 mods-available

My install from a fresh OS :
1 apt-get update
2 apt-get upgrade
3 apt-get install apache2 bc
4 apt-get install php
5 apt-get -yqq update; apt-get -yqq upgrade; apt-get -yqq install git lsb-release; git clone --recursive https://github.com/QuickBox/QuickBox QuickBox
6 bash ~/QuickBox/setup/quickbox-setup

You compiled it with php thus it is using stock php5. QuickBox, for better purpose uses PHP 7.0. This however is an easy resolve.

apt purge php*
apt autoclean
apt autoremove

Then follow that up with the following to install php7

apt -y install libapache2-mod-php7.0 php7.0-dev php7.0-geoip \
libgeoip-dev php7.0 php7.0-fpm php7.0-mysql \
php7.0-curl php7.0-memcached memcached php7.0-gd \
php7.0-json php7.0-mcrypt php7.0-opcache php7.0-xml

Next, run the sed command that you see has failed like so

sed -i.bak -e "s/post_max_size = 8M/post_max_size = 64M/" \
           -e "s/upload_max_filesize = 2M/upload_max_filesize = 92M/" \
           -e "s/expose_php = On/expose_php = Off/" \
           -e "s/128M/768M/" \
           -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/" \
           -e "s/;opcache.enable=0/opcache.enable=1/" \
           -e "s/;opcache.memory_consumption=64/opcache.memory_consumption=128/" \
           -e "s/;opcache.max_accelerated_files=2000/opcache.max_accelerated_files=4000/" \
           -e "s/;opcache.revalidate_freq=2/opcache.revalidate_freq=240/" /etc/php/7.0/fpm/php.ini

Next, restart your services with

a2enmod proxy_fcgi setenvif
a2enconf php7.0-fpm
service php7.0-fpm restart
service apache2 restart



I’ll look into why Online.net may be requiring you to build php first as this is certainly not expected. With enough users laying claim to this… I am going to chalk this up as a bug and put it as high priority. Thanks everyone for the reports!

Ok, but without geoip and memcache

apt -y install libapache2-mod-php7.0 php7.0-dev php7.0-geoip \

libgeoip-dev php7.0 php7.0-fpm php7.0-mysql
php7.0-curl php7.0-memcached memcached php7.0-gd
php7.0-json php7.0-mcrypt php7.0-opcache php7.0-xml
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php7.0-geoip
E: Couldn’t find any package by glob 'php7.0-geoip’
E: Couldn’t find any package by regex 'php7.0-geoip’
E: Unable to locate package php7.0-memcached
E: Couldn’t find any package by glob 'php7.0-memcached’
E: Couldn’t find any package by regex ‘php7.0-memcached’

What are the contents of your /etc/apt/sources.list file? The script is supposed to change these sources as most providers have custom lists that can sometimes be limited.

Durp… I see… why on earth is it still using online sources.

Try this out

cp ~/QuickBox/setup/templates/apt.sources/ubuntu.template /etc/apt/sources.list
sed -i "s/RELEASE/xenial/g" /etc/apt/sources.list
apt-get -y -f install build-essential debian-archive-keyring \
python-software-properties software-properties-common
apt-get -y -f --allow-unauthenticated install deb-multimedia-keyring
apt -y update

Sorry, I’ve tried with a new OS.

I’ll retry and let you know when Quickbox installation will be done

Alright, hopefully it goes well… otherwise I am going to have to guinea pig someones server to sort out what may be happening.

I waited overnight to reinstall after the OS install.

Did that and I get the bc not found error again on the ffmpeg part.
Killed the install.

Here are my apt sources:

Ubuntu Main Repos

deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse

Ubuntu Update Repos

deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

Ubuntu Partner Repo

deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

I get this error:
E: Unable to locate package deb-multimedia-keyring

Running that gives me:
Reading state information… Done
E: Unable to locate package php7.0-geoip
E: Couldn’t find any package by glob 'php7.0-geoip’
E: Couldn’t find any package by regex 'php7.0-geoip’
E: Unable to locate package php7.0-memcached
E: Couldn’t find any package by glob 'php7.0-memcached’
E: Couldn’t find any package by regex ‘php7.0-memcached’

Maybe I should go back to Debian 8 LOL

I only run it on Ubuntu on my setups.

If you like, you can throw me your login details by way of PM and I can get a better idea on what’s happening with your install.

@Msan, I am leaving out key details as I am exhausted. :blush:

LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php -y
apt-get -y update

You’ll need to add the ppa to your list for that to work

OK I will send you that.

After installing quickbox, scgi modules, screen, … is missing.

I can reOS the machine if you want.

Update:

ok, reOS’ed, waited a full hour.
logged in as root
ran apt-get install software-properties-common
downloaded and ran quickbox install.
Install went OK!

1 Like