Comments (4)
Hi,
since you are using the 2.0.0-dev Branch, you can use this solution:
Copy everything in the ./data
directory to the directory of your choice.
Change the value in the .env
of APP_BASEDIR
and enter the absolute path to the directory where you copied the files.
Start the server and everything should work.
You can also copy the .env
there, then you have to change to this directory in the terminal and start the docker-lamp server from there using the absolute path.
Example:
The docker-lamp git clone is located in /opt/git/docker-lamp
.
You copied everything from /opt/git/docker-lamp/data
to /home/$USER/html
.
Also in /home/$USER/html
now comes the .env
.
APP_BASEDIR
would then be APP_BASEDIR="/home/$USER/html"
.
Now change to /home/$USER/html
with cd /home/$USER/html
and execute the command /opt/git/docker-lamp/docker-lamp start
from there.
from docker-lamp.
Hi Guido,
Yes I'm using the 2.0.0-dev Branch. Apologies for not mentioning that explicitly in all my posts.
Although I was looking for relocation of individual sub directories of ./data
, this approach seems to be a useful alternative. The main advantage is separation of docker-lamp specific and none specific data, so I will definitely do that. However, I would still like to separate the www
directory from the rest. Is there a way to achieve that as well?
from docker-lamp.
This would only be possible if you adjust all configuration files, because the path is always expected inside the container in /srv/www
.
So all PHP yml, the Apache yml and all vHosts would have to be adjusted.
You can do this via overrides in ./data
, but side effects are not excluded.
Anyway, I would not recommend you to do that.
from docker-lamp.
I already have my own separate branch in my forked repo, so I don't mind some additional customizing :) I'll look into it, to see if I can make it parameterizable, and if it becomes to messy and cumbersome, at least you explained me the alternative. Thanx for that.
from docker-lamp.
Related Issues (14)
- Implementation of iconv is not correct? HOT 1
- Problem with PHP cURL HOT 2
- Xdebug profiling; volume for xdebug.output_dir HOT 5
- Multiple VHosts in one and the same `NN-extra-hosts.conf` HOT 1
- Command docker-compose or docker compose | without or with hyphen HOT 2
- How to activate getimagesize HOT 4
- getopt: illegal option -- o HOT 11
- Issues after moving from WSL2 to Kubuntu HOT 15
- No problem with docker-lamp, HOT 3
- Which branch do you ideally use at the moment when reinstalling docker-lamp? HOT 3
- docker-lamp <command> --help HOT 1
- Can macros be used for the automaticaly creation of vhosts for specific PHP versions? HOT 4
- Not all SSL certificates created HOT 9
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.