Questions tagged [php]

28 questions
16
votes
1 answer

What is the difference between php-cli and php-fpm, why 2 php variants and why choose one or the other?

Looking at https://hub.docker.com/_/php I can see reference to php-cli and php-fpm. Now, I am aware of the concepts of PHP FPM - Fast CGI Process Manager. I'm also aware the PHP can be run in the command line and for php composer and Symfony…
therobyouknow
  • 355
  • 1
  • 3
  • 11
12
votes
2 answers

What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?

I'm fairly new to Docker so excuse any obvious ignorance or misunderstandings. That said, I've been coding and configuring web applications for a long time now. I have recently been dabbling with some more sophisticated (Docker and "traditional")…
CoolElectricity
  • 195
  • 1
  • 9
11
votes
1 answer

Problem in integrating Travis-CI with core PHP projects

I am trying to integrate my project coded in core PHP, with Travis-CI but it always fails. Travis reports a failure even when I have only one file in my project. PHP file Code : .travis.yml File Code language: php php: -…
5
votes
2 answers

Multi-container server of PHP apps with reverse proxy?

I am going to deploy my app to production on VPS server, using Docker. My goal is stable version from latest tag at example.com, and dev version from dev tag at dev.example.com. Because this is an PHP application, container has own nginx+php set. I…
aso
  • 151
  • 2
4
votes
3 answers

How to automatically publish git releases/comments to the site?

Sorry if title isn't correct. I'm trying to figure out what to search for on this matter. I'm looking for the easiest way to automatically have my semantic versioning and commits visible on my site when commits / releases happen. I recently started…
gfrobenius
  • 141
  • 2
4
votes
2 answers

Where to start? Scaling PHP applications on AWS

Currently all of our PHP (Laravel) applications are running on one EC2 instance. To deploy code, we SSH onto the live box and pull from CodeCommit. We now need to scale and deploy properly. I'm not sure where to start. Most examples seem to use…
Mick
  • 221
  • 1
  • 4
3
votes
1 answer

Continuous delivery workflow: Build script for PHP Composer (Drupal) on Docker

I'd like to set up a continuous delivery workflow for our new Drupal site. When someone pushes to our Git repo (typically) master branch, a build job on our CI server is triggered. This job will check out the source code, import the database from…
protoken
  • 133
  • 2
2
votes
1 answer

Can Cypress with cucumber replace php unit and regression tests in CI/Cd pipeline?

Or there a language agnostic unit and regresion testing? My team built an MVP with manual tests only and we got into the inverted icecream antipattern. Now to transform into production we need to fix the problem. The marketplace is fully going into…
2
votes
1 answer

Automating the creation of an Apache virtual-host file specifically

When I create new web applications on my up-2-date Ubuntu-LAMP with Apache 2.4.x environment, I create their virtual-host files this way: s_a="/etc/apache2/sites-available/" s_e="/etc/apache2/sites-enabled/" read -p "Have you created db credentials…
user5176
2
votes
0 answers

Can not find save handler 'redis' - session startup failed - for PHP

I am getting this error while loading index.php file. Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /var/www/html/index.php on line 2 My index.php code looks like…
2
votes
0 answers

Configuration for reverse proxies in a local Docker/Apache/PHP environment

I am refactoring my local environment from MAMP-pro to PHP/apache/Docker. What is the proper configuration to implement a reverse proxy (in order to maintain the named-url site functionality of MAMP-pro) in this environment without the use of third…
Btuman
  • 141
  • 6
1
vote
1 answer

docker container does not open port for php:latest

I'm working with Docker containers for a while know, but I do not notice, what I am doing wrong here: In my current folder on the host system, I have a simple index.php file which contains: Why is this not working? docker run…
Chris Pillen
  • 143
  • 3
1
vote
1 answer

Install MDB2 in docker container while PEAR is down

While pear is down, the following instruction in my dockerfile is failing: RUN pear install -o --alldeps MDB2-beta && \ I've searched on the internet how to install MDB2 without pear, successfully accomplished it by downloading the .deb file from…
Josafat
  • 111
  • 3
1
vote
3 answers

PHP-FPM with Nginx in different containers (share init.d response between)

I have a Docker setup for my project with PHP-FPM, Nginx and many other services required by the application, but inside the PHP app I've to check the init.d/nginx configtest for new dynamic Vhosts (which are shared by volumes) generated for a…
D8vjörk
  • 11
  • 5
1
vote
1 answer

How can I diagnose php cli command execution time inside a docker container

I've recently migrated an event subscription service called by a bash script from Ubuntu, into a Dockerised container. The Docker image I am using is: FROM php:7.1-apache The script itself is pretty straightforward: #!/bin/bash DIR="$(dirname…
pcgben
  • 111
  • 3
1
2