Code Monkey home page Code Monkey logo

Comments (4)

ericlammel avatar ericlammel commented on June 14, 2024

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.

Suborno22 avatar Suborno22 commented on June 14, 2024

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.

ericlammel avatar ericlammel commented on June 14, 2024

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.

Suborno22 avatar Suborno22 commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.