Code Monkey home page Code Monkey logo

docker-xampp's Introduction

GitHub Workflow Status (with event) Docker Pulls Static Badge

PHP version Corresponding tag
8.2.4 tomsik68/xampp:8
7.4.33 tomsik68/xampp:7
5.6.40 tomsik68/xampp:5

For PHP 8, start your container like this:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

docker-xampp

This image is intended for PHP+MySQL development. For convenience, it also runs SSH server to connect to. Both MySQL and phpmyadmin use default XAMPP password.

Any questions?

Please read this readme before asking anything.

If you didn't find answer to your question, create an issue or just ask on Gitter. I'll try to help if I can!

Running the image

This image uses /www directory for your page files, so you need to mount it.

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp

The command above will expose the SSH server on port 41061 and HTTP server on port 41062. Feel free to use your own name for the container.

To browse to your web page, visit this URL: http://localhost:41062/www And to open up the XAMPP interface: http://localhost:41062/

Default credentials

service username password
ssh root root

Additional How-tos

My app can't function in /www folder

No problem, just mount your app in the /opt/lampp/htdocs folder, for example:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/opt/lampp/htdocs tomsik68/xampp

ssh connection

default SSH password is 'root'.

ssh root@localhost -p 41061

get a shell terminal inside your container

docker exec -ti myXampp bash

use binaries provided by XAMPP

Inside docker container:

export PATH=/opt/lampp/bin:$PATH

You can then use mysql and friends installed in /opt/lampp/bin in your current bash session. If you want this to persist, you need to add it to your user or system-wide .bashrc (inside container).

Use your own configuration

In your home directory, create a my_apache_conf directory in which you place any number of apache configuration files. As soon as they end with the .conf extension, they will be used by xampp. Make sure to use the following flag in your command: -v ~/my_apache_conf:/opt/lampp/apache2/conf.d, for example:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www  -v ~/my_apache_conf:/opt/lampp/apache2/conf.d tomsik68/xampp

Restart the server

Once you have modified configuration for example

docker exec myXampp /opt/lampp/lampp restart

phpmyadmin

If you used the flag -p 41062:80 with docker run, just browse to http://localhost:41062/phpmyadmin/ .

Docker compose example

version: '3.8'

services:
  xampp:
    image: tomsik68/xampp
    ports:
      - "44162:22"
      - "41063:80"
    volumes:
      # Mount your web pages
      - ./xampp/my_pages:/www
      # Mount your apache configuration
      - ./xampp/my_apache_conf/:/opt/lampp/apache2/conf.d
      #Save MySQL data to be persistent
      # add the dbs as needed
      - ./xampp/mysql/mydb:/opt/lampp/var/mysql/mydb
    restart: always

Use a Different XAMPP or PHP Version

Currently, the Docker image is built only for PHP 5, 7 and 8. If you need another version, you can easily build a Docker image yourself, here's how:

  1. Clone this repo (local clone is sufficient, no need to fork)
  2. Find the URL to a URL to your desired version. List of versions can be found here: https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/
  3. Build the image using e.g. docker build --build-arg XAMPP_URL="https://www.apachefriends.org/xampp-files/5.6.40/xampp-linux-x64-5.6.40-1-installer.run?from_af=true" .

docker-xampp's People

Contributors

izzatzr avatar mcollica avatar necroprism4 avatar tomsik68 avatar yvnicolas avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-xampp's Issues

mySql data directory permission issues

I am trying to map using the following:
-v ~/Server/xamppMySQL:/opt/lampp/var/mysql

However, it's not possible since this directory has some permission issues: /opt/lampp/var/mysql

Improve documentation, tagging, versions etc.

It caught my attention that this Docker Hub image has 50k+ pulls. Reasons are unknown, but people probably lack better quick-n-dirty solution. I'd like to improve the status of this image as it seems to be used quite a lot when I find time to do it.

  • Ping and get rid of older issues
  • Add link to Docker Hub
  • Use fewer RUNs in the Dockerfile to utilize cache more while building (perhaps use scripts?)
  • Use better practices in the Dockerfile
  • Add instructions on how to pull the image into readme
  • Now that I actually know something about linux, revisit every single command in the Dockerfile
  • Start an up-to-date list of default usernames & passwords for services in container
  • Fix bugs with xampp not starting, stopping after some time etc.
  • Add an example with a basic, single-file php application
  • Document how to get to phpmyadmin
  • Add some automated tests for the image
  • Add a detailed guide on how to setup this image for Docker newbies

For other people, feel free to add comments here or (better), create another issue. I'll be happy to try to help.

How do I install a PHP module like IMAGICK?

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

How do I access phpmyadmin?

Thank you!

Confused with /www

Solved but got new problem see the comment below.

Hey I used your Docker image to run my project with xampp. Before that I was testing with simple index.php file with printing my name in it.

I used this dockerfile,

FROM tomsik68/xampp:latest

COPY . ~/my_web_pages

after that I built the container with this command,

docker build -t newtestwithnewcontainer .
docker run -p 41061:22 -p 41062:80  -it -v ~/my_web_pages:/www newtestwithnewcontainer

but http://localhost:41062/www/ shows only this
image

So the server is running fine, but I think I am getting confused with /www directory. Can you help me out?

[Question] Setting up DVWA on docker-xampp

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name DockerXAMPP -p 41061:22 -p 41062:80 -d tomsik68/xampp

I copied DVWA files to DockerXAMPP:/opt/lampp/htdocs/DVWA/. After navigating to http://localhost:41062/DVWA/setup.php, when I click on Create / Reset Database, it errors into:

Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'dvwa'@'localhost' (using password: YES) in 
/opt/lampp/htdocs/DVWA/dvwa/includes/DBMS/MySQL.php:13
Stack trace: 
#0 /opt/lampp/htdocs/DVWA/dvwa/includes/DBMS/MySQL.php(13): mysqli_connect('127.0.0.1', 'dvwa', 'p@ssw0rd', '', '3306')
#1 /opt/lampp/htdocs/DVWA/setup.php(23): include_once('/opt/lampp/htdo...')
#2 {main} thrown in /opt/lampp/htdocs/DVWA/dvwa/includes/DBMS/MySQL.php on line 13

Are the database defaults different? Where am I going wrong?

All help is appreciated!
Thank you!

XAMPP running as `daemon` user instead of `www-data`

Bug Report

I'm running Docker on: Linux

XAMPP start command

I used the following command to start the xampp container:

docker run --name xampp -p 41061:22 -p 80:80 -d -v ~/my_web_pages:/opt/lampp/htdocs/www tomsik68/xampp:7

I mounted a Wordpress website, but could not upload files into the wp-content/ directory (permissions: 744, owner: www-data).

Additional steps to trigger the bug

After starting the container, I did the following:

  1. Get a bash shell in the container: docker exec -it xampp bash
  2. Run top
  3. Process /opt/lampp/bin/ is running as daemon user

image

Expected behavior

XAMPP should run as www-data (UID: 33)

Actual behavior

XAMPP is running as user daemon (UID: 1)

Note

I'm not sure if this is intended behaviour. But it seems that the daemon user and group is only used for legacy purposes.

Also, changing the owner of the wp-content/ folder to daemon fixes the file upload.

docker-compose.yml sample file

version: '3'
services:
  tomsik68:
    container_name: docker-xampp
    image: tomsik68/xampp:7
    ports:
      - "41062:80"
      - "41061:22"
    volumes:
      - "./www:/www"
      - "./mysql/data:/opt/lampp/var/mysql"
      - "./apache:/opt/lampp/apache2/conf.d"

mysql password

Hi,

I would like to change the mysql root password and phpmyadmin password. Please advise how can I do that.

Thanks
Harjit

Redis implementation

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
I like pretty much this image but would be very great to have also Redis PHP extension implemented in it!

Describe alternatives you've considered
Use another container with Redis but it require a lot of configs

Additional context
I'm using a PHP, MySQL environment that use Redis to save some user session information

Separate mysql socket of mysql data

Bug Report

I'm running Docker on: wsl

XAMPP start command

I used the following command to start the xampp container:

docker stack deploy -c docker-compose.yml xampp

I've created a compose file with the following content:

version: '3.8'
services:
  xampp:
    image: tomsik68/xampp:7
    ports:
      - 10022:22
      - 10080:80
      - 10443:443
    volumes:
      - "../:/opt/lampp/htdocs"
      # - "~/db:/opt/lampp/var/mysql"
    deploy:
      replicas: 1
      update_config:
        parallelism: 1
        delay: 30s
        order: start-first
    logging:
      driver: json-file
      options:
        max-size: 10m

OK, more explanation here.

If you read carefulli the compose, you see that the volume for the mysql data is commented.
ON a simple way, this could work without problem; I did see it on other project; if you mount the directory where the database files are plased you can preserve it without a problem. You can use a bind mount like this, or other kind of docker volume to store the data.

The problem is, that on /opt/lampp/var/mysql/ is too the mysql.sock file; the binding socket for stablish mysql connections on the machine. And these kind of files can't be mounted on a volume, so. If you active the volume, and start the container, mysql says that can't find the mysql.sock file and crash instandly, after create the first db files.

So, the solution for this is edit the /opt/lampp/etc/my.cnf config file, and put the mysql.sock file on other location. something like /opt/lampp/var/sockets/.
With that, you can mount your db folder and works without problem. Maybe this change could be as default on the image, to allow people mount the db directory and persist the db data.

I'll check if is easy to do this change on the image to give you a PR :-)

thanks for your work, the image is awesome!

Error mysql access denied even already setting up

  • Env:

docker run --name ck \ -p 41061:22 -p 41062:80 -d \ -v ~/workspace/ck:/www \ -v ~/workspace/ck:/opt/lampp/htdocs/ck \ tomsik68/xampp:5

ck is my app name

browse ck page

  • Error page message:

A PHP Error was encountered
Severity: Warning

Message: mysqli_real_connect(): (HY000/1045): Access denied for user 'naro'@'localhost' (using password: YES)

Filename: drivers/adodb-mysqli.inc.php

Line Number: 117

can't do it: Access denied for user 'naro'@'localhost' (using password: YES)

image

how to install "ixed.8.1.lin" loader from the SourceGuardian site

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

I want to install "ixed.8.1.lin" that requires a SourceGuardian loader.
I have "ixed.8.1.lin" installation file and i should install it in /opt/lampp/lib/php/extensions/no-debug-non-zts-20210902 directories and after that i edit /opt/lampp/etc/php.ini and add 'extension=ixed.8.1.lin' directive.
my problem is i can not find "/opt/lampp/lib/php/extensions/no-debug-non-zts-20210902" and "/opt/lampp/etc/php.ini" in my system.
can you help me?

Thank you!

How can I access /www of the container proFTPd ?

Hello,

I'm running Docker on Ubuntu 20.4 LTS. I use the following command to start the container:

docker run --name myXampp -p 41022:22 -p 41080:80 -d -v ~/www:/www tomsik68/xampp

How can I access /www of the container proFTPd ?
I use FileZilla to connect to proFTPd (id:daemon pwd:xampp),
but I can't see /www, only other non-symlinked folders.
I want to upload files to my webserver via FileZilla

Thank you!

Cannot acces http://localhost:41062/xampp

HI,
i already do all the command, the container already running.
but i cant access the xampp interface with this command
http://localhost:41062/xampp
and this is the container logs

Starting XAMPP for Linux 5.6.8-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
/usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2016-02-23 09:35:07,440 CRIT Supervisor running as root (no user in config file)
2016-02-23 09:35:07,441 WARN Included extra file "/etc/supervisor/conf.d/supervisord-openssh-server.conf" during parsing
2016-02-23 09:35:07,459 INFO RPC interface 'supervisor' initialized
2016-02-23 09:35:07,459 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-02-23 09:35:07,459 INFO supervisord started with pid 178
2016-02-23 09:35:08,462 INFO spawned: 'openssh-server' with pid 457
2016-02-23 09:35:09,464 INFO success: openssh-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

thx before

It create the container but it not create the /www directory on powershell

Hi, i'm new using docker and my first work is whit this Docker image.

I'm having the problem that when i run the comand to create the container whit powershell or the cms (I'm using Windows 10 enterprise), this is created but doesn't create the shared folder.

Only for try it i run the comand con Git Bash and from there the folder appear.

Xampp run well, i can create the data base and use SQL.

I already try to deactivate de windows firewall, i try to search in the tree but it still invisble, the folder never get created.

Do you have any idea where can be my error? I try from another computer, but have the same result.

The steps that i follow

  1. Make the pull from Git Bash
  2. Open Powershell from windows and type: docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/web_folder:/www tomsik68/xampp

In the dashboard of Docker, in the container "myXampp", in the part of Mouts -> /www only show me the dir "/web_folder". Whit any another caracter.

When i do it on Git Bash, Docker ask me if i want to create the shared folder and when i click "yes" it appear on C:\Users\me\web_folder

Please! I need help. Any idea can work

***** Docker dashboard of the container created on Powershell****
Environment
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

DEBIAN_FRONTEND
noninteractive

Mounts
/WWW
/web_folder

/VAR/LOG/APACHE2
/var/lib/docker/volumes/c35240f556a4d3b00eeceb49efdf04da22d033d2c791b20d616a5fd654d4de97/_data

/VAR/LOG/MYSQL
/var/lib/docker/volumes/dc42ec466d1b64decc2a012fbee52237ed98efdf54fb0b9578f4e212cfe2af50/_data


Expose the mysql database

I`m running your docker container on my synology.
After an update i lost my database.
If i map /opt/lampp/var/mysql to a path it create a few databse files in my folder.
But phpmyadmin is not working anymore: mysqli::real_connect(): (HY000/2002): Connection refused

And this is the error from the log:
2022-03-07 13:03:16 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2022-03-07 13:03:16 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2022-03-07 13:03:16 0 [Note] Server socket created on IP: '::'.
2022-03-07 13:03:16 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
2022-03-07 13:03:16 0 [ERROR] Aborting
2022-03-07 13:03:19 137 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/xampp.pid ended

How i can keep the database, if i update the container?

Happy work next version with these features as these years work practice

For more than 6 years, I have used lamp in many projects in lareville 5-9.

Yesterday, I wanted to use docker it break to install xampp on different servers many times. I tried this picture and it worked well.

Some requirements:

  1. Support different ports of different projects, which is easy to set

For example, 80:80 - > a project 81:81 - > B project 82:82 - > C project

For example, Apache / cond is currently used. D works, but httpd. Conf needs to be configured listen with different ports.

  1. Support setting MySQL data path, because data will not be lost

For example, / aven / database / MySQL - > / opt / lampp / var / MySQL

  1. Support redis and set the redis save path

Running xampp with docker will automatically start Apache, MySQL and redis

Unknown command or add-on

Bug Report

I'm running Docker on:

  • Windows 11 as a Docker host
  • git with core.autocrlf = true (checkout Windows style)

I'm not sure if it's global problem or only mine.

Actual behavior

After building the Dockerfile and running the container, I encountered a problem. The container starts with the error:

Unknown command or add-on! not recognized For help, use /usr/bin/supervisord -h

This was because the Ubuntu shell has a problem with Windows-style line endings in scripts.

Expected behavior

Running without any error

Fix 1:

  • force checkout with unix-style line endings even on Windows by using .gitattributes

Fix 2:

  • change line ending style after coping startup.sh from host to docker image

I will create PR with Fix 1 for a moment.

XAMPP Control panel

Hi tomsik68, Merry Christmas.
I hope to find you having the best time with your family and friends.
I am having a good time with your XAMPP docker, it is helping me to work with my examples.
I can access to www folder to load my php exercises and xampp and phpmyadmin pages but I do not know how to load XAMPP Control panel.
Could you tell me how to get access to that page in this docker?
Thank you very much for your help and support.
Happy new year.
José.

/xampp gives 404

➤ curl -v http://localhost:41062/xampp
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 41062 (#0)
> GET /xampp HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:41062
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Wed, 01 Jun 2016 19:47:59 GMT
* Server Apache/2.4.18 (Unix) OpenSSL/1.0.2h PHP/5.6.21 mod_perl/2.0.8-dev Perl/v5.16.3 is not blacklisted
< Server: Apache/2.4.18 (Unix) OpenSSL/1.0.2h PHP/5.6.21 mod_perl/2.0.8-dev Perl/v5.16.3
< Vary: accept-language,accept-charset
< Accept-Ranges: bytes
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=utf-8
< Content-Language: en

Mount existing db to container

Hello,

Can I mount existing db from host to docker container? I want to do it to save all data on my host, even if I recreate a container.

Thank you!

It does not copy the source files from the directory to the /www being mounted

Bug Report

I'm running Docker on: Mac OS - Ventura 13.1

XAMPP start command

I used the following command to start the xampp container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:5

Additional steps to trigger the bug

After starting the container, I did the following:

  1. Restart MySQL
  2. Browse to http://localhost:41062/xampp

Expected behavior

I had a sample file named index.php file. The index.php file (what was present in my source directory) should be rendered.

Actual behavior

Web browser shows a blank page.

The reason being, the source files are NOT Copied, and the portion of the script -v ~/my_web_pages:/www does not do its work as expected.

The command '[...] ./xampp-linux-installer.run'' returned a non-zero code: 2

Step 9/32 : RUN bash -c './xampp-linux-installer.run'
 ---> Running in 631******8b1
./xampp-linux-installer.run: line 1: html: No such file or directory
./xampp-linux-installer.run: line 2: syntax error near unexpected token `<'
'/xampp-linux-installer.run: line 2: `<head><title>302 Found</title></head>
The command '/bin/sh -c bash -c './xampp-linux-installer.run'' returned a non-zero code: 2

This error doesn't occur with the XAMPP version downloaded by $docker pull tomsik68/xampp

mssql xampp container docker

Please, how i configure my php.ini in docker container running xampp 1.8.2, all services are ok.
where is php.ini?
i need .so or .dll?

disable mysql?

Hello,

I have everything working correctly, is there a way to disable all the services except Apache to make it lighter and faster?

Mysql is not starting

I started the container:
docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

and connected to it using SSH:
ssh root@localhost -p 41061

And trying to start the server:
/opt/lampp/lampp restart

But Mysql never started, tried many work-arounds but failed:
Version: XAMPP for Linux 8.2.4-0
Apache is running.
MySQL is not running.
ProFTPD is running.

Also I deleted the container, and started new one, but same issue "MySQL is not running."

display_errors should be On

In /opt/lampp/etc/php.ini we should set display_errors=On by default since this is a developer-friendly container.

MySQL connection problem

Hi,
first of all thanks for the great container :)
My problem is I cant connect to the database via Sequel Pro. Please tell me how can I open the mysql port to connect. Thanks

Container not running for different Xampp

Hello Tom,

Thanks for creating this xampp image, I have been trying to create another image by cloning this repo, I did what is suggested into readme my Xampp server is not starting.

I used this installer https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.2.34/

getting these logs

not recognized
For help, use /usr/bin/supervisord -h

Unknown command or add-on!

I don't know how to fix it because I am new to Docker

For default git repo the Xampp is working fine

Any suggestion would be helpful

Access port mysql

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

How do I access the port mysql in one project laravel?

I am accessing with:

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=hdcevent
DB_USERNAME=root
DB_PASSWORD=root

Thank you!

Connect to Docker's MySQL

I used Macbook Pro. After running container, I tried to connect to MySQL inside the container with Navicat as follows :

  • Host : localhost
  • Port : 3306
  • User Name : root
  • Password : xxx (I've changed MySQL password via phpMyAdmin from container)
    But could not connect. I tried to change host to 127.0.0.1 and still didn't work.

I also tried to check container IP, and it gave me address 172.17.0.2. Changed host to that, and still didn't work.

I ran docker ps to check if 3306 is already exposed, and got this result, which I assume 3306 already opened and exposed
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ed8bf8c550e9 tomsik68/xampp "sh /startup.sh" 45 minutes ago Up 45 minutes 3306/tcp, 0.0.0.0:41061->22/tcp, 0.0.0.0:41062->80/tcp myXampp

Apache Not Started / Stopped automatically after sometime

Sometimes when I restart the container apache is not started. Also most of the time apache server stops automatically.

If I give /opt/lampp/lampp start comment after logged into container through ssh. I'm getting following logs


Starting XAMPP for Linux 5.6.21-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.

So this clearly states that MySQL and ProFTPD is running without any issues, only apache is started.

I'm using this in production, it'll be great if you help me asap.

  • Thamizhan S

unable to connect to ssh

Hi,

I am very new to docker and i am trying to connect through ssh. But it is throwing me an issue:

I might be doing something wrong here, if you can guide me it would be really helpful.

After running the image, i am trying to access the ssh using container in kitematics

issue is as below

ssh root@localhost -p 41061

ssh: connect to host localhost port 41061: Cannot assign requested address

Apache not starting properly

I have a container set up for a site I'm writing to learn php, when I start the container the page doesn't load I have to manually start lampp.

$ docker exec testLAMP /opt/lampp/lampp start
Starting XAMPP for Linux 5.6.21-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.

is there a way to make apache run when I start the container with docker start testLAMP or am I missing some arguments?

Update to the latest XAMPP versions

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Please update to the latest XAMPP versions, 8.1.6 and 7.4.29, and push them to DockerHub.

Describe alternatives you've considered
Building these images by myself.

Additional context
The .run files are here.

You can check these URLs at https://www.apachefriends.org/jp/download.html

I think all of what you have to do is just update build-args in the docker-images.yml.

Thank you for building useful images.

Error when mount Mysql data with docker-compose

I am trying to create a volume to persist my Mysql data, but it produces an error when start only in windows host, On mac it works fine.

My docker-compose.yml is:
version: '3'
services:
myContainer:
container_name: containerName
build: ./DockerFile
ports:
- "81:81"
- "41061:22"
volumes:
- "path/to/code:/opt/lampp/htdocs/project"
- "./DockerFile/mysql/data:/opt/lampp/var/mysql
"

I found the error at mysql log, and it says:

"Can't start server : Bind on unix socket: Input/output error
2021-08-10 18:20:19 140245831134080 [ERROR] Do you already have another mysqld server running on socket: /opt/lampp/var/mysql/mysql.sock ?
2021-08-10 18:20:19 140245831134080 [ERROR] Aborting

2021-08-10 18:20:21 130 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/60f034929146.pid ended"

I dont know why it's happening (And I even didn't found any place who can give me a light), and if you can help, it would be great.
Keep in contact, and really thanks you!

XAMPP new security concept

Admin can't connect to /phpmyadmin unless httpd-xampp.conf is modified.
Require all granted is required for both phpmyadmin and phpsqliteadmin.

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.