- PHP
5.6
,7.2
and7.4
- ever images own base, dev and prod variants
Instaled extensions greather than 7:
- apcu
- Core
- ctype
- curl
- date
- dom
- fileinfo
- filter
- ftp
- gd
- hash
- iconv
- igbinary
- json
- libxml
- mbstring
- mysqli
- mysqlnd
- openssl
- pcre
- PDO
- pdo_mysql
- pdo_sqlite
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sodium
- SPL
- sqlite3
- standard
- timezonedb
- tokenizer
- xdebug
- xml
- xmlreader
- xmlwriter
- Zend OPcache
- zip
- zlib
Instaled extensions 5.6 version:
- apcu
- curl
- date
- dom
- fileinfo
- filter
- ftp
- gd
- hash
- iconv
- imap
- igbinary
- json
- libxml
- mbstring
- mysqli
- mysqlnd
- openssl
- PDO
- pdo_mysql
- pdo_sqlite
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- SPL
- sqlite3
- timezonedb
- xdebug
- xml
- xmlreader
- xmlwriter
- zip
- Zend Opcache
- zlib
-
Clone this project:
git clone [email protected]:silmar-alberti/DevelopmentPhpStack.git
-
Open
deploy
folder:cd deploy
-
Setup apache config files in
php56-sites-enabled
orphp72-sites-enabled
<VirtualHost *:80> ServerName *.php7.localhost.com DocumentRoot /var/www/site <Directory /var/www/html/site> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
-
Start your dev env with command:
bash ./start.sh
obs: this stript works in fedora 31,32. but not tested on another distribution or version.
This stript only make
./deploy/.env
file used in containers setup to redirect xdebug requests. check that the firewall does not close port 9000.
- This project use traefik-proxy to forward requests to both environments. See file ./deploy/docker-compose.yml and traefik-proxy documentation
-
Check
deploy/.env
content,HOST_DOCKER_INTERNAL=your external ip
if not sure, fix and restart apache services.
-
Xdebug start with trigger XDEBUG_SESSION_START see more on docs
-
Check that the firewall does not close port 9000.
- Profile files are maked on
/tmp/profiler
folder, - To start xdebug profile set session cookie or GET parameter see more on xdebug docs
- This project also try abstract local php tools how commands:
php56
,php72
,composer
andkcacheGrid
(xdebug profile analyzer). see command files on./utils
folder
- To install php, composer and kcacheGrid run follow command:
sudo bash devPhpInstall
- Enable debugCliSession
source enableDebugVars
- Disable debugCliSession
source disableDebugVars