Comments (13)
Hello, if you use this command to start the container:
docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp
The folder ~/my_web_pages
is where you place your php files.
from docker-xampp.
I'm a complete noob in GitHub and Linux, but can I commit that folder to my php repo?
from docker-xampp.
Yes, you can commit that folder to your Github repo.
There are two separate problems that you're trying to solve here:
- How do I version control this folder?
- How do I serve this folder using xampp?
For number 1, you commit the folder to your Github repo.
For number 2, you need to use the right command to start the docker container.
from docker-xampp.
Im sorry, for making you waste your time with me, but where is my_web_pages located ?
from docker-xampp.
my_web_pages
is just an example. Instead of that, you need to pass the path to your php folder.
from docker-xampp.
The line docker run --name myXampp -p 41061:22 -p 41062:80 -d -v /workspaces/php:/www tomsik68/xampp:8
was what got it to work in the end.
I appreciate all you've done, especially this Docker, which I'm utilizing as a student because my school uses PHP and SQL.
from docker-xampp.
I'm happy I was able to help -- that's not always the case! No need to feel bad for what you call "wasting my time". I created this project because I wanted to and I also help because I want to.
I'm closing this issue as it sounds like we answered the question. If anything comes up, feel free to re-open or make a new one.
from docker-xampp.
Hi again, the index is working fine but I want to use another sql program instead of phpmyadmin, I'm trying to use heidiSQL or an vscode extension, I'm trying to connect to 127.0.0.1:41062 or local host:41062 and I can't, if I can't use another program there is no problem. Thanks 😄
from docker-xampp.
If you want to connect to SQL server, you need to use a different port. 41062 is used for the apache HTTP server.
You need to stop your existing docker container and start a new one with the -p 41063:3306
parameter, like this:
docker run --name myXampp -p 41061:22 -p 41062:80 -p 41063:3306 -d -v /workspaces/php:/www tomsik68/xampp
The -p 41063:3306
parameter exposes port 3306 of the container on your localhost port 41063. After that is done, you should be able to connect to localhost:41063 from your vscode extension.
from docker-xampp.
Ok, i know it worked, but im getting an error saying im not allowed, im using root username and root password
from docker-xampp.
Those credentials are for SSH server, not for SQL. For SQL, I think it's just root
with empty password. If that doesn't work, just search for xampp default mysql password
.
from docker-xampp.
Still nothing, I did look that I need to put skip-grant-tables in the cnf, I will look more into this.
from docker-xampp.
Yup, I did put skip-grant-tables and worked, I don't know what that does, it's working so it's fine
from docker-xampp.
Related Issues (20)
- Expose the mysql database HOT 3
- Access port mysql HOT 5
- How can I access /www of the container proFTPd ? HOT 2
- Happy work next version with these features as these years work practice HOT 1
- docker-compose.yml sample file
- Update to the latest XAMPP versions HOT 1
- [Question] Setting up DVWA on docker-xampp HOT 1
- how to install "ixed.8.1.lin" loader from the SourceGuardian site HOT 2
- Unknown command or add-on HOT 2
- How do I install a PHP module like IMAGICK? HOT 2
- It does not copy the source files from the directory to the /www being mounted HOT 7
- Separate mysql socket of mysql data HOT 1
- XAMPP running as `daemon` user instead of `www-data` HOT 2
- Mount existing db to container HOT 2
- Mysql is not starting HOT 7
- disable mysql? HOT 2
- Add 8.3.6 HOT 2
- cant remap ports to container HOT 4
- denied HOT 1
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-xampp.