Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: sypperpit

docker run on Orange Pi zero H2+

[Copy link]
 Author| Post time 2018-8-26 07:39:35 | Show all posts
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| Post time 2018-8-26 07:44:51 | Show all posts
index.php

  1. <?php
  2. phpinfo();
  3. phpinfo(INFO_MODULES);
  4. ?>
Copy the Code
 Author| Post time 2018-8-26 07:48:43 | Show all posts
 Author| Post time 2018-8-26 07:58:09 | Show all posts
download grav cms
https://getgrav.org/downloads
 Author| Post time 2018-8-26 08:00:31 | Show all posts
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 the Code
  1. mv 1.5.1 1.5.1.zip
Copy the Code
 Author| Post time 2018-8-26 08:03:15 | Show all posts
  1. apt install unzip
Copy the Code
 Author| Post time 2018-8-26 08:06:03 | Show all posts
  1. https://getgrav.org/download/core/grav-admin/1.5.1 grav-admin-v1.5.1.zip
Copy the Code
  1. mv 1.5.1 1.5.1.zip
Copy the Code
  1. apt install unzip
Copy the Code
  1. unzip 1.5.1.zip
Copy the Code
 Author| Post time 2018-8-26 08:09:42 | Show all posts
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 the Code

Not for security use!
For security

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




 Author| Post time 2018-8-26 09:52:04 | Show all posts
plz help me start zip and GD
 Author| Post time 2018-8-26 16:46:24 | Show all posts
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 the 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 the 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 the Code

You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-12-14 19:03 GMT+8 , Processed in 0.031383 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list