Author: sypperpit

docker run on Orange Pi zero H2+

[Copy link]
 Author| Published in 2018-8-26 07:39:35 | Show all floors
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                NAMES
<you_id>        php:7.2-apache      "docker-php-entrypoi…"   55 seconds ago      Up 51 seconds       0.0.0.0:80->80/tcp   my-apache-php-app
 Author| Published in 2018-8-26 07:44:51 | Show all floors
index.php

  1. <?php
  2. phpinfo();
  3. phpinfo(INFO_MODULES);
  4. ?>
Copy code
 Author| Published in 2018-8-26 07:48:43 | Show all floors
 Author| Published in 2018-8-26 07:58:09 | Show all floors
download grav cms
https://getgrav.org/downloads
 Author| Published in 2018-8-26 08:00:31 | Show all floors
Edited by sypperpit at 2018-8-26 08:01
  1. wget https://getgrav.org/download/core/grav-admin/1.5.1 grav-admin-v1.5.1.zip
Copy code
  1. mv 1.5.1 1.5.1.zip
Copy code
 Author| Published in 2018-8-26 08:03:15 | Show all floors
  1. apt install unzip
Copy code
 Author| Published in 2018-8-26 08:06:03 | Show all floors
  1. https://getgrav.org/download/core/grav-admin/1.5.1 grav-admin-v1.5.1.zip
Copy code
  1. mv 1.5.1 1.5.1.zip
Copy code
  1. apt install unzip
Copy code
  1. unzip 1.5.1.zip
Copy code
 Author| Published in 2018-8-26 08:09:42 | Show all floors
Edited by sypperpit at 2018-8-28 22:42

Fatal error: Uncaught RuntimeException: Creating directory '/var/www/html/cache/compiled/files' failed on error mkdir(): Permission denied in /var/www/html/vendor/rockettheme/toolbox/File/src/File.php:423 Stack trace: #0 /var/www/html/vendor/rockettheme/toolbox/File/src/File.php(191): RocketTheme\Toolbox\File\File->mkdir('/var/www/html/c...') #1 /var/www/html/vendor/rockettheme/toolbox/File/src/File.php(319): RocketTheme\Toolbox\File\File->lock() #2 /var/www/html/vendor/rockettheme/toolbox/File/src/PhpFile.php(31): RocketTheme\Toolbox\File\File->save(Array) #3 /var/www/html/system/src/Grav/Common/File/CompiledFile.php(64): RocketTheme\Toolbox\File\PhpFile->save(Array) #4 /var/www/html/system/src/Grav/Common/Config/Setup.php(181): Grav\Common\File\CompiledYamlFile->content() #5 /var/www/html/system/src/Grav/Common/Processors/SiteSetupProcessor.php(18): Grav\Common\Config\Setup->init() #6 /var/www/html/system/src/Grav/Common/Grav.php(131): Grav\Common\Processors\SiteSetupProcessor->process() #7 /var/www/html/system/src/Grav in /var/www/html/system/src/Grav/Common/File/CompiledFile.php on line 80


  1. chmod -R 777 /home/<username>/www
Copy code

Not for security use!
For security

  1. chown -R www-data:www-data /home/<username>/www
Copy code




 Author| Published in 2018-8-26 09:52:04 | Show all floors
plz help me start zip and GD
 Author| Published in 2018-8-26 16:46:24 | Show all floors
Edited by sypperpit at 2018-8-26 16:49
  1. docker run -v $PWD:/var/www/html -p 80:80 php:7.2-apache /bin/bash -c 'apt-get -y update'
Copy code
  1. docker run -v $PWD:/var/www/html -p 80:80 php:7.2-apache /bin/bash -c 'apt-get install -y zlib1g'
Copy code
  1. docker run -v $PWD:/var/www/html -p 80:80 php:7.2-apache /bin/bash -c 'docker-php-ext-install zip'
Copy code

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list