Comments (4)
I've had similar problems with Nginx, but the reason was because I used several versions of PHP, which is not your case. Are you having the same problem using Apache on Devilbox?
And did you use the docker-compose rm -f
command after stopping the containers? Because I didn't see this command in your pastebin file.
from devilbox.
I don't remember if I ran the code after deleting or before deleting the folder. Also, I am very much new to the docker so I don't recall if I have even done so but after I deleted the folder, I have again cloned it from github and again tried running the script that I have made and yet I faced the same error.
I am sharing my devilbox start and stop script.
start-devilbox.sh:
#!/bin/bash
# update and upgrade system
sudo apt update && sudo apt upgrade -y
# Navigate to home directory
cd ~
# Navigate to devilbox directory
cd devilbox/
# Stop MySQL service
sudo service mysql stop
# Stop systemd-resolved service
sudo systemctl stop systemd-resolved
# Start Devilbox using Docker Compose
docker-compose up -d
And this is my stop script
stop-devilbox.sh
#!/bin/bash
# Navigate to home directory
cd ~
# Navigate to devilbox directory
cd devilbox/
# Stop Devilbox using Docker Compose
docker-compose down
# Start systemd-resolved service
sudo systemctl start systemd-resolved
# Stop MySQL service
sudo service mysql start
# update and upgrade system
sudo apt update && sudo apt upgrade -y
UPDATE: I have ran your command (I havent start the devilbox yet )and all I am getting is :No Stopped Containers.
from devilbox.
Try change the server in the .env
file from nginx to apache. And make sure TLD_SUFFIX
is set to local
, since you cloned it again:
TLD_SUFFIX=local
# ...
HTTPD_SERVER=apache-2.4
#HTTPD_SERVER=nginx-stable
Save the .env
file.
Create your directory hi
inside devilbox/data/www
.
Put your project and create the htdocs
symlink inside hi
.
Go back to the devilbox
directory and use the commands below in sequence:
docker-compose stop
docker-compose rm -f
docker-compose up -d
from devilbox.
I did as you said, including stopping apache2 server and MySQL server from the system by sudo systemctl stop apache2 and sudo systemctl stop mysql, also i have a symlink of htdocs inside hi folder, yet, I am facing the same issue. For further ref, here is my etc/hosts file now.
127.0.0.1 hi.local
127.0.0.1 Foo.local
127.0.0.1 localhost
127.0.1.1 ubuntu-pc
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Also I have created a symlink of htdocs inside hi folder which might shows using -l in ls command:
ubuntu@ubuntu-pc:~/devilbox$ ls data/www/
Foo hi
ubuntu@ubuntu-pc:~/devilbox$ ls -l data/www/hi
total 4
drwxrwxr-x 2 ubuntu ubuntu 4096 Apr 6 05:37 htdocs
yet the issue still remains.
from devilbox.
Related Issues (20)
- No Host DNS record found HOT 1
- [Bug]: AutoDNS not working on MacOS Ventura 13.5.2 HOT 11
- Getting http: invalid Host header while running shell.sh HOT 5
- [Bug]: unable to access internet from php container HOT 3
- [Feature]: Update timezone database
- [Docs]: sqlsrv with new arm64 (Apple M1/M2)
- [Howto]: Use PHP and Vite simultaneously in the same project HOT 1
- [Howto]: multitenancy HOT 2
- [Feature]: skipping projects HOT 1
- [Bug]: Comment in project `nginx.yml` causes invalid error message in /vhosts.php
- [Feature]: DENO and BUN It's a good idea?
- [Bug]: Cannot access internet - DNS resolution incorrect HOT 3
- [Feature]: Make PHP 8.3 available HOT 10
- [Feature]: Add FrankenPHP
- [Feature]: Is devilbox inactive/dead? HOT 6
- [Bug]: Redis error HOT 3
- [Feature]: podman support
- [Bug]: The Flask container doesn't initialize a virtual env for the app to run
- [Feature]: y no tiene interfaz gráfica?
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 devilbox.