Jump to content

Joël

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Joël

  1. Help yourself... ;-) 1 - apache user id inside my container docker exec processwire /bin/sh -c "id www-data" # uid=33(www-data) gid=33(www-data) groups=33(www-data) 2 - I create my directory site (pw/site) mkdir site chown -R 33:33 site mkdir modules mkdir assets chown -R 33:33 modules chown -R 33:33 assets cp site-default/config.php site/config.php chown -R 33:33 site/config.php cd site-default/ ls assets finished.php install ready.php config.php init.php modules templates cd .. cp site-default/finished.php site/ cp site-default/ready.php site/ cp site-default/init.php site/ cp -r site-default/install site/ cp -r site-default/templates site/ After that, everythink is ok with http://192.168.2.2:82/install.php
  2. If I had a test.php file into pw/ directory with "<?php echo exec('whoami');" inside, I can read in my Web browser (http://192.168.2.2:82/test.php) : www-data
  3. Extra informations : root@CarExpresso:/home/processwire/docker-processwire-0.2# ls -la pw/ total 100 drwxr-xr-x 8 processwire processwire 4096 avril 30 06:36 . drwxr-xr-x 3 processwire processwire 4096 mai 31 15:51 .. -rw-r--r-- 1 processwire processwire 537 avril 30 06:36 composer.json -rw-r--r-- 1 processwire processwire 12223 avril 30 06:36 .htaccess -rw-r--r-- 1 processwire processwire 2421 avril 30 06:36 index.php -rw-r--r-- 1 processwire processwire 47540 avril 30 06:36 install.php drwxr-xr-x 6 processwire processwire 4096 avril 30 06:36 site-beginner drwxr-xr-x 6 processwire processwire 4096 avril 30 06:36 site-blank drwxr-xr-x 6 processwire processwire 4096 avril 30 06:36 site-classic drwxr-xr-x 6 processwire processwire 4096 avril 30 06:36 site-default drwxr-xr-x 6 processwire processwire 4096 avril 30 06:36 site-languages drwxr-xr-x 5 processwire processwire 4096 avril 30 06:36 wire
  4. Hello MRiza, I try to use your docker file (thanks a lot) with my Debian server but i met some difficulties : 1 : I added a specific user As root, useradd -d /home/processwire -m -s /bin/bash processwire usermod -aG docker processwire 2 : I built a Docker image As processwire user, Download the project files to /home/processwire: wget -c https://github.com/mriza/docker-processwire/archive/v0.2.tar.gz Extract: tar xvzf v0.2.tar.gz Change to the new directory: cd docker-processwire-v0.2/ Build the image : "docker build -t processwire ." 3 : I wrote my docker-compose file vi /home/processwire/docker-compose.yml #******************* docker-compose.yml file ************ processwire: image: processwire container_name: processwire restart: always volumes: - /home/processwire/docker-processwire-0.2/pw:/var/www/html ports: - "82:80" #******************* docker-compose.yml file ************ 4 : I ran Docker application As processwire user and from /home/processwire, I ran "docker-compose up -d". Processwire website is now live on port 82, and I can access the server IP address (http://192.168.2.2:82 in my case). But when I try to install the "Site Installation Profile" (Default, intermediate edition) ,it fails (http://192.168.2.2:82/install.php) : File system is not writable by this installer. Before continuing, please rename '/site-default' to '/site' I understand that a user in my Docker Application doesn't have write permissions for my external directory /home/processwire/docker-processwire-0.2/pw, but I don't see who... Any ideas ? Joël, first steps in the field of ProcessWire CMS ps. Sorry for my bad english, I 'm French
×
×
  • Create New...