Sign inSign up

rohmanahmad/php8.3-apache-full

By rohmanahmad

Updated over 2 years ago

php 8.3 with full features build-in apache webserver

Image
Languages & frameworks
API management
0

377

rohmanahmad/php8.3-apache-full repository overview

CUSTOMIZATION

FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
ENV USE_ZEND_ALLOC=0
USER root

# Install Utilities
RUN apt-get update --fix-missing
RUN apt-get install -y curl unzip build-essential nano wget mcrypt
RUN apt-get -qq update && apt-get -qq -y install bzip2
RUN apt-get install -y chrpath libssl-dev libxft-dev
RUN apt-get install -y libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev

# Install ppa:ondrej/php PPA
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN apt-get update --fix-missing

RUN apt-get install -y libapache2-mod-php8.3 libphp8.3-embed php-pear php8.3 php8.3-cgi php8.3-cli php8.3-fpm php8.3-dev php8.3-common php8.3-curl php8.3-gd php8.3-imap php8.3-intl php8.3-ldap php8.3-mysql php8.3-pgsql php8.3-pspell php8.3-snmp php8.3-sqlite3 php8.3-sybase php8.3-tidy php8.3-opcache php8.3-bz2 php8.3-mcrypt php8.3-odbc php8.3-readline php8.3-interbase php8.3-xmlrpc php8.3-enchant php8.3-gmp php8.3-xsl php8.3-bcmath php8.3-mbstring php8.3-soap php8.3-xml php8.3-zip php8.3-dba php8.3-amqp php8.3-apcu php8.3-igbinary php8.3-imagick php8.3-mongodb php8.3-msgpack php8.3-oauth php8.3-redis php8.3-rrd php8.3-smbclient php8.3-solr php8.3-ssh2 php8.3-zmq php8.3-http php8.3-uploadprogress php8.3-memcached php8.3-memcache php8.3-mailparse php8.3-raphf php8.3-stomp php8.3-gearman php8.3-mongo php8.3-xhprof
RUN apt-get install -y apache2 libapache2-mod-fcgid supervisor
RUN apt-get install -y php8.3-yaml php8.3-xdebug

COPY ./config/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
COPY ./config/supervisor/conf.d /etc/supervisor/conf.d
COPY ./config/php/php.ini /etc/php/8.3/apache2/php.ini
COPY ./config/php/php.ini /etc/php/8.3/cli/php.ini
COPY ./config/apache/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY ./config/mods-available/xdebug.ini /etc/php/8.3/mods-available/xdebug.ini
COPY ./config/mods-available/mongodb.ini /etc/php/8.3/mods-available/mongodb.ini

# PHP Config
# Show PHP 8.3 errors on development server.
RUN sed -i -e 's/^error_reporting\s*=.*/error_reporting = E_ALL/' /etc/php/8.3/apache2/php.ini
RUN sed -i -e 's/^display_errors\s*=.*/display_errors = On/' /etc/php/8.3/apache2/php.ini
RUN sed -i -e 's/^zlib.output_compression\s*=.*/zlib.output_compression = Off/' /etc/php/8.3/apache2/php.ini
RUN sed -i -e 's/^zpost_max_size\s*=.*/post_max_size = 32M/' /etc/php/8.3/apache2/php.ini
RUN sed -i -e 's/^upload_max_filesize\s*=.*/upload_max_filesize = 32M/' /etc/php/8.3/apache2/php.ini
#RUN sed -i -e 's/^sys_temp_dir\s*=.*/sys_temp_dir = /tmp/php_sys_temp_folder' /etc/php/8.3/apache2/php.ini
RUN mkdir -p /tmp/logs/apache /tmp/logs/xdebug /tmp/logs/common /tmp/php_sys_temp_folder
RUN chmod 0777 /tmp/php_sys_temp_folder
RUN mkdir /run/php
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite actions fcgid alias proxy_fcgi setenvif ssl proxy proxy_balancer proxy_http
RUN a2enconf php8.3-fpm
RUN php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
RUN php /tmp/composer-setup.php
RUN mv composer.phar /usr/bin/composer

EXPOSE 80 443

CMD ["supervisord","-n", "-c", "/etc/supervisor/supervisord.conf"]
```docker

Tag summary

Content type

Image

Digest

sha256:dd4022ae7

Size

277.8 MB

Last updated

over 2 years ago

docker pull rohmanahmad/php8.3-apache-full