Comments (11)
from docker-lamp.
I'm not familiar with Apache. My website has been installed in '/app' directory successfully base on your "docker-lamp", but my source code needs run in '/app/public'. So now my situation is , when i open my web, need to add '/public' at the end of the domain (http://www.xxx.com/public).
from docker-lamp.
from docker-lamp.
I run the command "docker run -p "80:80" -v ${PWD}/app:/app mattrayner/lamp:latest-1404-php7" directly.
from docker-lamp.
from docker-lamp.
ok, thank you very much.
from docker-lamp.
from docker-lamp.
alright, but i will try your method first, if it still not works, i will consider to restructure removing 'public' folder.
from docker-lamp.
i try to build a soft link to '/app/public' so that it works now. This seems to be a relatively simple method.
from docker-lamp.
I'm glad you managed to get it working, I'll close the issue now but if you have any other questions/problems feel free to open a new one :)
from docker-lamp.
I request reopening this issue. There are applications where the PHP code includes files from above the document root. If the document root is forced to be /app, there is no way to recreate the directory structure expected by the application.
from docker-lamp.
Related Issues (20)
- chown: cannot read directory '/app': Permission denied HOT 7
- bind-address override not working if using docker-compose HOT 1
- Waiting for confirmation of MySQL service startup HOT 8
- Setting up the container inside WSL HOT 1
- php.ini resets when container restarts HOT 1
- PHP 8 will be installed on Ubuntu 18.04 HOT 1
- 000-default.conf + htaccess, rewrite HOT 6
- MySQL won't start HOT 6
- Noob mysql question
- SQL syntax error HOT 1
- Slow startup HOT 2
- Running on Synology with Portainer HOT 3
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) HOT 1
- Changing webserver port, mysql HOT 3
- Need ARM build target
- Gitlab CI connect to local MySQL server HOT 2
- commit save and restore HOT 1
- is port 443 functional? , I want to enable port 443, as i do? HOT 1
- "apache2 entered FATAL state, too many start retries too quickly" HOT 9
- ARM is now default. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-lamp.