question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't access localhost/app_dev.php (similar to #169) (docker install, Ubuntu 16.04)

See original GitHub issue

Hi,

Currently banging my head against a wall of incomprehension at this stage of the tutorial: appdevfails

What I did:

  • corrected my mistake of not having used docker-compose as a user instead of root by adding my user to the docker group, rebooted, deleted the already built docker images, deleted the skeleton-project including the root-owned folders;
  • ran docker-compose up -d again, as a user this time, in a freshly copy pasted skeleton-project and followed the tutorial up to the same point;
  • same error. var/cache/dev is still root-owned.

No idea what I did wrong. Any clue as to what it might be? Thanks in advance for any input you may have, and thank you for this great looking project 😃

ps: May be worth noting that I’m a docker noob.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
renan-tarantocommented, Feb 17, 2017

I believe this is solved by #162 😃 Great job on the docker updates.

1reaction
Stoakescommented, Jan 23, 2017

Hello,

I had the same issue. It comes from composer install executed as root in docker/start.sh

To solve that, I added after composer call in start.sh

#get apache user : second word of the first line (from docker/apache/start_safe_perms)
apache_user=$(head -n 1 /etc/apache2/apache2.conf| cut -d " " -f 2)

#get apache group : second word of the second line
apache_group=$(head -n 2 /etc/apache2/apache2.conf| tail -1 |  cut -d " " -f 2)

chown -R $apache_user:$apache_group var

Are you interested on a PR ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Install and Use Docker on Ubuntu 16.04 - DigitalOcean
Step 1 — Installing Docker. The Docker installation package available in the official Ubuntu 16.04 repository may not be the latest version. To ......
Read more >
php - Docker (Ubuntu 16.04) Apache/PHP7/Mysql5_7
Im trying to setup docker-container: Apache/PHP7/Mysql 5.7 via docker-compose up on Ubuntu 16.04. The Problem is that i get no database- ...
Read more >
How to Set Up PHP Development Environment on Localhost ...
Docker is not just a deployment tool. This video shows you how to set up a local development environment using Docker. Learn how...
Read more >
Apache, PHP & MySQL on Docker on Ubuntu - YouTube
Set up a local LAMP development environment ( PHP, MySQL and Apache) under Docker using Ubuntu. Docker is useful, when you would like...
Read more >
Setup a Docker development environment with PHP Apache ...
https://github.com/truthseekers/ php - docker -simpleIn this video we'll setup a simple PHP, Apache, and MySQL environment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found