Questions tagged [php]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
31 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 ...
0
votes
0answers
3 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 ...
0
votes
0answers
17 views

Performance testing as part of Behat browser testing for Drupal in Drone CI

Background Recently I did a major Drupal upgrade on a site which required a lot of code changes in my custom code and also some work with the caching layer in Drupal. After deploying the site to the ...
0
votes
1answer
19 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 ...
0
votes
0answers
140 views

how to install docker-php-ext-install mssql

I have a legacy query that uses @mssql_connect. $this->_linkIdentifier = @mssql_connect($this->_host, $this->_username, $this->_password); var_dump($this->_linkIdentifier);die(); I ...
1
vote
1answer
105 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, ...
0
votes
1answer
115 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 (...
0
votes
1answer
27 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 ...
0
votes
3answers
72 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? ...
2
votes
1answer
337 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-...
1
vote
1answer
28 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 ...
4
votes
2answers
106 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 ...
2
votes
0answers
826 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 ...
3
votes
1answer
128 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 ...
4
votes
3answers
168 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 ...
1
vote
1answer
2k 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 ...
2
votes
0answers
183 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-...
3
votes
2answers
675 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 ...
-5
votes
1answer
88 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 ...