Hi everyone.
I’ve been trying ALL DAY to install Apache2,MYSQL,PHP7.3 (with mcrypt).
As soon as i find/fix one dependency , something else comes up…
I;ve read and tried so MANY suggestions as to what LIB/Dependencies i need…nothing has worked…
Im missing something, but what?
Ime getting a error of: Unable to locate package php-openssl
Could someone please be so kind to have a look at my Dockerfile and suggest me something.
Thanks!!
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV PORT 80
WORKDIR /WWW
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN add-apt-repository ppa:ondrej/apache2
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y php7.3-dev
RUN apt-get install -y libcurl3-openssl-dev
#---MISC
RUN apt-get install -y gcc
RUN apt-get install -y g++
RUN apt-get install -y openssl
RUN apt-get install -y libssl-dev
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y gcc
RUN apt-get install -y make
RUN apt-get install -y autoconf
RUN apt-get install -y libc-dev
RUN apt-get install -y pkg-config
RUN apt-get install -y composer
#---APACHE2 + PHP
RUN apt-get install -y apache2
RUN apt-get install -y php
RUN apt-get install -y php-dev
RUN apt-get install -y php-mysql
RUN apt-get install -y libapache2-mod-php
RUN apt-get install -y php-curl
RUN apt-get install -y php-json
RUN apt-get install -y php-common
RUN apt-get install -y php-mbstring
RUN apt-get install -y php-bcmath
RUN apt-get install -y php-cgi
RUN apt-get install -y php-cli
RUN apt-get install -y php-date
RUN apt-get install -y php-gd
RUN apt-get install -y php-openssl
RUN apt-get install -y php-sockets
RUN apt-get install -y php-sodium
RUN apt-get install -y php-token
RUN apt-get install -y php-simplexml
RUN apt-get install -y php-xmlrpc
RUN apt-get install -y php-xslt
RUN apt-get install -y php-zip
RUN apt-get install -y php-zlib
#---INSTALL/CONF APACHE2 + PHP7.3
RUN curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | /bin/bash
RUN apt-get install -y software-properties-common
RUN apt-get install -y php 7.3-phalcon
#---MCRYPT
RUN apt-get install -y php-http
RUN apt-get install -y php-raphf
RUN apt-get install -y php-raphf-dev
RUN apt-get install -y php-propro
RUN apt-get install -y php-propro-dev
RUN apt-get install -y libmcrypt-dev
RUN pecl install memcached \ && docker-php-ext-enable memcached
RUN pecl install mcrypt-1.0.1
#——INITIALIZE
COPY ./php.ini /etc/php/7.3/apache2/php.ini
COPY ./slc.conf /etc/apache2/sites-available/slc.conf
COPY ./apache2.conf /etc/apache2/apache2.conf
RUN rm -rfv /etc/apache2/sites-enabled/*.conf
RUN ln -s /etc/apache2/sites-available/slc.conf /etc/apache2/sites-enabled/slc.conf
CMD ["apachectl","-D","FOREGROUND"]
RUN a2enmod rewrite
EXPOSE 80
EXPOSE 443