Difference between revisions of "Php:apache"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
== Bard example == | == Bard example == | ||
− | [[FROM]] php: | + | [[FROM]] php:apache |
# Copy your PHP files to the document root | # Copy your PHP files to the document root | ||
Line 19: | Line 19: | ||
# Start the Apache web server | # Start the Apache web server | ||
CMD ["[[apache2]]", "[[-D]]", "[[FOREGROUND]]"] | CMD ["[[apache2]]", "[[-D]]", "[[FOREGROUND]]"] | ||
− | |||
== See also == | == See also == |
Revision as of 20:56, 6 February 2024
docker pull php:apache
docker build . -t php-apache
Bard example
FROM php:apache # Copy your PHP files to the document root COPY . /var/www/html # Expose the web server port EXPOSE 80 # Start the Apache web server CMD ["apache2", "-D", "FOREGROUND"]
See also
- PHP,
php-fpm, www.conf
,php -i
, PHP sessions, symfony,fastcgi_pass
,sessionclean (shell script)
,phpsessionclean.service (systemd service),phpquery
,php.ini
,/var/log/php*
, PECL,php --help
, PHPUnit, Laravel, PHP framework, Composer,phpbrew, Xdebug, php --version
, PHP Fatal error, Hello, World! (php)]
Advertising: