Giter Site home page Giter Site logo

xampp-docker's Introduction

xampp-docker

Docker image containg Ubuntu 18.04 and the latest XAMPP 7.2.12.

Note: This image was built for development purposes.

Getting the image:

The image has been pushed to Dockerhub
So you can just:

docker pull cswl/xampp

Running the image:

For convience, an startup script is provided.
Download

xampp-docker 
    without arguments will launch xampp-docker and drop a bash shell

xampp-docker stop
    stops the running docker container

xampp-docker commands
    run a one-off command in specified Docker container

This image uses /www directory for your page files, so you need to specify the volume mount it. Your webpage will be served at: http://localhost:8086/www
And to open up the XAMPP interface: http://localhost:8086/
The MySQL port is also exposed at at mysql://localhost:3086

All the XAMPP services are started by default. To startup a bash shell. Just run the startup script without arguments.

Configuration

Edit the startup script if you want to give the container a different name. You can directly modify httpd and other stuffs from container.

Building the image from source.:

First, clone this project.

$ git clone https://github.com/cswl/xampp-docker.git

Second, change directory to the just now cloned repository.

$ docker build -t cswl/xampp .

License

The scripts and Dockerfile are licensed under the GPL-3.0 license.

The Dockerfile was made with refrences from :

tomsik68/docker-xampp unlicensed and fuyuanli/Dockerfile-XAMPP which is licensed under GPL v3.0.

xampp-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xampp-docker's Issues

Setting up docker for first time

Hey @cswl I am setting up xampp on docker for the first time, and I am trying to run and simple index.php file using xampp server(after that I'll try to run whole project on this).
I created a dockerfile and pasted this in that,

FROM cswl/xampp:latest

COPY . /usr/share/lamptest/www

and then ran two commands which are,
docker build -t webserver-image:v1 .
docker run -d -p 80:80 webserver-image:v1

I am not able to see the output of xammp interface on http://localhost:8086/ as mentioned in README.
I even tried with netstat command but its also giving no port up,

root@eeb7b0f5f7fa:/# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path

Can you help me how to set this up? I've tried with exposing ports, but it's still not working. I think I am confused with /www part you mentioned in README.

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.