PHP 8.4 image to host a Laravel (12.x) application
10K+
Still working on this, so information might be incomplete...
This image is intended to host a Laravel (12.x) application on Apache httpd and PHP 8.4 in a container.
Especially to run in the Container Manager of a Synology Diskstation. As for today you can only install PHP 8.2 from the Package Center on a Synology, but Laravel Installer requires at least PHP 8.3 (I think...)
It basically contains the php:8.4-apache official image. I have just changed DocumentRoot (from originally /var/www/html) to /var/www/html/public and activated mod_rewrite to make Laravel work.
This image also contains latest composer/composer version.
/local/src/publicmy-site.conf to /local directory (see example below)8484/local/src/var/www/htmlindex.php in directory /local/src/public (see example below)When this works you can start deploying/developing your Laraval application in /local/src folder...
my-site.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
<Directory /var/www/html/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
index.php
<?php
echo phpinfo();
Content type
Image
Digest
sha256:0b7f2708d…
Size
172.4 MB
Last updated
9 months ago
docker pull zuraj/php-84-apache