Comments (9)
One idea might be to have a command that generates the web/ contents dynamically based on project; just quickly thinking here;
user enters a command,
command prompts user for archive of web root (be it wordpress core.zip)
process unpacks the contents (or downloads from remote URL)
prompts user for nginx config
etc...
and can dynamically build the contents of the web root, without having the source files in the repo.
from docker-nginx-php-mysql.
@drm-code
работает с hostname mysql
try
<?php try { $dsn = 'mysql:host=mysql;dbname=broadcastdemo;charset=utf8;port=3306'; $pdo = new PDO($dsn, 'root', 'root'); foreach($pdo->query('SELECT * from wpkv_users') as $row) { print_r($row); } var_dump(json_encode($pdo)); } catch (PDOException $e) { echo $e->getMessage(); } ?>
from docker-nginx-php-mysql.
That's a good idea to automated Wordpress installation.
Send us a link when you got the project done.
from docker-nginx-php-mysql.
@senrabdet @nanoninja wouldn't this be outside of the scope of the project? Adding WordPress is as easy as adding your WP code to web/
directory.
I'm currently using this with a Laravel project, and wouldn't expect this to be specific to a particular open source platform.
@senrabdet also its WordPress
from docker-nginx-php-mysql.
No indeed I do not think add it to this project either but I realize that what often changes is the organization depending on the type of project as (Laravel, Symfony, Wordpress).
I was thinking about developing a CLI tool based on project creation and that could be adapted to different types of applications more easily with less configuration. (Like Yeoman)
I'll see that when I have some time.
from docker-nginx-php-mysql.
Yes I think it's a good idea for the future. This will make it more flexible and less dependent on the particular application type.
it would be a good evolution to put in place.
from docker-nginx-php-mysql.
I'm getting this error when I try to install a wordpress.
I copied wordpress code to /web
directory, installation starts well but when I configure the mysql data it fails, it seems like mysql is not running but phpmyadmin works like charm.
Any ideas??
I tried localhost
localhost:8989
localhost:3306
from docker-nginx-php-mysql.
After multiple tries, I did docker inspect mysql
which returns a huge json, then I looked for NetworkSettings.Networks.docker-nginx-php-mysql_default.IPAddress
key and set that IP in wordpress settings page, voala!!! it works try that if you have the same issue.
from docker-nginx-php-mysql.
Hi @devVyacheslav thanks for your answer, what I noticed is that everytime you run the container which wrappers the wordpress mysql IP changes not randomly but could change for example 198.128.0.3 to 198.128.0.4 and maybe 198.128.0.5 and it keeps some kind of pattern, what I just did everytime is test an IP from a set of them :)
from docker-nginx-php-mysql.
Related Issues (20)
- Deploy Strategies HOT 1
- Use Apache instead of Nginx
- PHP wrong version error HOT 1
- Remove sudo from install guide? HOT 1
- composer error : ext-zip * -> the requested PHP extension zip is missing from your system. HOT 1
- Cannot work CentOS, but Ubuntu work fine HOT 3
- Readme logging into mysql container
- PMA doesnt connect to mysql HOT 1
- Raspberry pi 4
- PHP Shell_Exec cannot work in browser HOT 1
- Install custom extension for php HOT 2
- virtual domain HOT 2
- 推荐
- session expires
- Where is there PHP executable in this docker?
- Install behind Traefik
- Log directory
- xdebug with visual-code
- Nginx 502 Bad Gateway
- No autoload.php 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-nginx-php-mysql.