Questions tagged [php]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 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-...
0
votes
1answer
14 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 ...
0
votes
1answer
27 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?
2
votes
1answer
245 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 ...
1
vote
1answer
15 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
1answer
24 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 ...
1
vote
1answer
125 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, ...
1
vote
1answer
159 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
28 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
74 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
396 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
36 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
116 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
996 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
143 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
176 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
188 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
792 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
94 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 ...
11
votes
1answer
104 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();...