Skip to main content

Questions tagged [php]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Elastic APM Agent - Laravel Queue

I have installed self hosted elastic apm solution for my laravel app with kibana for visualization of traces and apm elastic agent for auto instrumentation. My laravel app uses queues but the apm ...
Syed Taha Wajahat's user avatar
0 votes
1 answer
106 views

Set the base path of an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
amacrobert's user avatar
1 vote
3 answers
123 views

Is there a Way to Run a Docker Image without installing it in server?

I have created a Laravel application that I tried to deploy in a shared host (other apps running). It creates a conflict with the other project at the point to observe CSRF interferences at the other ...
CAMILO STIVENZON BAQUERO TORRE's user avatar
1 vote
1 answer
638 views

Why does php-fpm show nginx's IP while they are on different containers?

I am trying to set up an Nginx server for the purpose of load balancing between 4 Php-fpm servers. You can access my docker configuration files from this Github repository. My containers' network ...
NewUser's user avatar
  • 13
1 vote
1 answer
944 views

ansible-playbook: how to dynamically, conditionally set a large deployment environment (variable space) in a playbook?

I am using an ansible playbook to deploy a php web application in aws. The deployment is repeated many times, with a different environment, for each customer. The different scenarios range from ...
Life5ign's user avatar
  • 170
12 votes
2 answers
9k views

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 ...
CoolElectricity's user avatar
1 vote
1 answer
136 views

Do I need header files once I install the php extention on Dockerfile?

Usually when I build docker images for php I use this approach: FROM php:7.2-apache RUN apt-get update && \ apt-get install -y libghc-postgresql-simple-dev &&\ docker-php-...
Dimitrios Desyllas's user avatar
1 vote
1 answer
618 views

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: <?php ...
Chris Pillen's user avatar
0 votes
1 answer
5k views

How to find the PHP version that is used by the latest `phpdoc/phpdoc` docker image?

How do I get php version used by docker image phpdoc/phpdoc?
saven41's user avatar
15 votes
1 answer
24k views

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 ...
therobyouknow's user avatar
2 votes
1 answer
126 views

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 ...
Daniel Vianna's user avatar
0 votes
1 answer
368 views

How do -dev apk packages differ on Alpine for the purposes of creating docker images?

I recently started a new position at a company that is transitioning over to docker for local and prod, and inherited a few 'base image' repositories for php, node and a few others. Unfortunately the ...
Max Colledge's user avatar
1 vote
1 answer
409 views

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, ...
Josafat's user avatar
  • 111
1 vote
3 answers
920 views

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 (...
D8vjörk's user avatar
0 votes
1 answer
47 views

I trying on Windows 10, Trying to connect / login to work interactively on container but I'm getting this kind of error

I trying on Windows 10, Trying to connect / login to work interactively on container but I'm getting this kind of error docker run --rm -p 8080:80 laravel-docker Error response from daemon: driver ...
Kishore's user avatar
  • 101
0 votes
3 answers
194 views

Is there a php (or composer) command to change upload_max_filesize && post_max_size from terminal?

Is there a php (or composer) terminal command to change the php.ini variables upload_max_filesize and post_max_size from terminal to some value directly from terminal, without sed or awk operations? ...
user avatar
2 votes
1 answer
713 views

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-...
user avatar
1 vote
1 answer
198 views

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 ...
pcgben's user avatar
  • 111
5 votes
2 answers
291 views

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 ...
aso's user avatar
  • 151
2 votes
0 answers
2k views

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 ...
Gaurav Bhaskar's user avatar
3 votes
1 answer
226 views

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 ...
protoken's user avatar
  • 133
4 votes
3 answers
289 views

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 ...
gfrobenius's user avatar
1 vote
1 answer
3k views

Apache container cant access php files mounted in /var/www/ - 403 error

I want to run my php website in a container with apache and php7 I am using this docker image : https://hub.docker.com/r/nimmis/apache-php7/ I run Fedora so I enter the example command given in ...
pievalentin's user avatar
2 votes
0 answers
316 views

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

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-...
Btuman's user avatar
  • 141
4 votes
2 answers
2k views

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 ...
Mick's user avatar
  • 221
-5 votes
1 answer
115 views

Shell Scripting [closed]

I am trying to execute a PHP shell script on my friends mail server to show him the impact of such vulnerability. Vulnerable code but unfortunately it doesn't seem to be running. This is the script I ...
Jaipravin AKA Christopher's user avatar
11 votes
1 answer
154 views

Problem in integrating Travis-CI with core PHP projects [closed]

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 : <?php phpinfo(); ?...
Lovepreet Singh's user avatar