Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation script does not install prerequisites, and doesn't fail when it can't #1597

Open
dmd opened this issue Dec 24, 2016 · 4 comments

Comments

@dmd
Copy link
Contributor

dmd commented Dec 24, 2016

====================================================
Updating Ubuntu and apt-get
====================================================


Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 204 kB in 0s (249 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


====================================================
Installing needed packages and modules
====================================================


Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php-apc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
E: Package 'libapache2-mod-php5' has no installation candidate
E: Unable to locate package php5-curl
E: Package 'php5-gd' has no installation candidate
E: Package 'php5-mcrypt' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php-apc' has no installation candidate
InstallationUbuntuApache.sh: line 32: a2enmod: command not found


====================================================
Installing optional but recommended packages and modules
====================================================


Reading package lists...
Building dependency tree...
Reading state information...
Package php5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-imagick is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-dev' has no installation candidate
E: Package 'php5-imagick' has no installation candidate
InstallationUbuntuApache.sh: line 43: a2enmod: command not found
InstallationUbuntuApache.sh: line 44: a2enmod: command not found
InstallationUbuntuApache.sh: line 45: a2enmod: command not found


====================================================
Installing oauth from pecl
====================================================


InstallationUbuntuApache.sh: line 55: pecl: command not found


====================================================
Downloading OpenPhoto and unpacking
====================================================


--2016-12-24 23:39:35--  https://github.com/photo/frontend/tarball/master
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/photo/frontend/legacy.tar.gz/master [following]
--2016-12-24 23:39:35--  https://codeload.github.com/photo/frontend/legacy.tar.gz/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17851725 (17M) [application/x-gzip]
Saving to: 'openphoto.tar.gz'

openphoto.tar.gz    100%[===================>]  17.02M  2.81MB/s    in 6.0s

2016-12-24 23:39:42 (2.82 MB/s) - 'openphoto.tar.gz' saved [17851725/17851725]

mv: cannot move 'photo-frontend-166b6e1' to '/var/www/openphoto': No such file or directory
InstallationUbuntuApache.sh: line 70: sudo: command not found


====================================================
Setting permissions for Dev server
====================================================


mkdir: cannot create directory '/var/www/openphoto/src/userdata': No such file or directory
chown: cannot access '/var/www/openphoto/src/userdata': No such file or directory
mkdir: cannot create directory '/var/www/openphoto/src/html/assets/cache': No such file or directory
chown: cannot access '/var/www/openphoto/src/html/assets/cache': No such file or directory
mkdir: cannot create directory '/var/www/openphoto/src/html/photos': No such file or directory
chown: cannot access '/var/www/openphoto/src/html/photos': No such file or directory


====================================================
Setting up Apache
====================================================


cp: cannot stat '/var/www/openphoto/src/configs/openphoto-vhost.conf': No such file or directory
InstallationUbuntuApache.sh: line 98: /etc/apache2/sites-available/openphoto.conf: No such file or directory
InstallationUbuntuApache.sh: line 99: a2dissite: command not found
InstallationUbuntuApache.sh: line 100: a2ensite: command not found


====================================================
Adjusting PHP settings
====================================================




====================================================
Launching Your OpenPhoto site
====================================================


InstallationUbuntuApache.sh: line 121: /etc/init.d/apache2: No such file or directory
InstallationUbuntuApache.sh: line 129: ifconfig: command not found



****************************************************
====================================================
CONGRATULATIONS!!!

The photographic heavens are applauding your
brand new installation of OpenPhoto.


Took 15 seconds to install.


Now you can test your installation by directing your
browser to
====================================================
****************************************************





@jmathai
Copy link
Member

jmathai commented Dec 25, 2016

@dmd do you mind adding net-tools to this line and seeing if it runs? If so can you submit a PR?

https://github.com/photo/frontend/blob/master/documentation/guides/InstallationUbuntuApache.sh#L31

@dmd
Copy link
Contributor Author

dmd commented Dec 25, 2016

Didn't help. What distribution do you expect this to work on? It fails in both ubuntu:14.04 and ubuntu:16.04 for me.

Try it yourself in a docker run -it ubuntu:14.04 bash or docker run -it ubuntu:16.04 bash container.

@jmathai
Copy link
Member

jmathai commented Dec 29, 2016

This may have been ubuntu 12.x. Let me try running it and update this issue.

@ZiiX
Copy link

ZiiX commented Feb 21, 2017

Thanks, @jmathai. I'd enjoy using it too as a way to decentralize. I look forward to it's update and your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants