aws:ec2-php
EC2 - HTTP2.0 PHP 7.2
- Launch AMI Image - Amazon Linux AMI 2018.03.0 (HVM) (Not Amazon Linux 2 AMI (HVM))
- Install Apache 2.0 and PHP 7.2
> sudo su > yum install httpd24 php72
- List other installed PHP packets
> yum list installed | grep php php72.x86_64 7.2.11-1.6.amzn1 @amzn-updates php72-cli.x86_64 7.2.11-1.6.amzn1 @amzn-updates php72-common.x86_64 7.2.11-1.6.amzn1 @amzn-updates php72-json.x86_64 7.2.11-1.6.amzn1 @amzn-updates php72-process.x86_64 7.2.11-1.6.amzn1 @amzn-updates php72-xml.x86_64 7.2.11-1.6.amzn1 @amzn-updates
- Look for other update and install other updates as needed
> yum search php72 Loaded plugins: priorities, update-motd, upgrade-helper ===================================== N/S matched: php72 ===================================== php72.x86_64 : PHP scripting language for creating dynamic web sites php72-bcmath.x86_64 : A module for PHP applications for using the bcmath library php72-cli.x86_64 : Command-line interface for PHP php72-common.x86_64 : Common files for PHP php72-dba.x86_64 : A database abstraction layer module for PHP applications php72-dbg.x86_64 : The interactive PHP debugger php72-devel.x86_64 : Files needed for building PHP extensions php72-embedded.x86_64 : PHP library for embedding in applications php72-enchant.x86_64 : Enchant spelling extension for PHP applications php72-fpm.x86_64 : PHP FastCGI Process Manager php72-gd.x86_64 : A module for PHP applications for using the gd graphics library php72-gmp.x86_64 : A module for PHP applications for using the GNU MP library php72-imap.x86_64 : A module for PHP applications that use IMAP php72-intl.x86_64 : Internationalization extension for PHP applications php72-json.x86_64 : JavaScript Object Notation extension for PHP php72-ldap.x86_64 : A module for PHP applications that use LDAP php72-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling php72-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases php72-odbc.x86_64 : A module for PHP applications that use ODBC databases php72-opcache.x86_64 : The Zend OPcache php72-pdo.x86_64 : A database access abstraction module for PHP applications php72-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases php72-pecl-apcu.x86_64 : APC User Cache php72-pecl-apcu-devel.x86_64 : APCu developer files (header) php72-pecl-igbinary.x86_64 : Replacement for the standard PHP serializer php72-pecl-igbinary-devel.x86_64 : Igbinary developer files (header) php72-pecl-imagick.x86_64 : Extension to create and modify images using ImageMagick php72-pecl-imagick-devel.x86_64 : imagick extension developer files (header) php72-pecl-mcrypt.x86_64 : Bindings for the libmcrypt library php72-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon php72-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon php72-pecl-oauth.x86_64 : PHP OAuth consumer extension php72-pecl-redis.x86_64 : Extension for communicating with the Redis key-value store php72-pecl-ssh2.x86_64 : Bindings for the libssh2 library php72-pecl-uuid.x86_64 : Universally Unique Identifier extension for PHP php72-pgsql.x86_64 : A PostgreSQL database module for PHP php72-process.x86_64 : Modules for PHP script using system process interfaces php72-pspell.x86_64 : A module for PHP applications for using pspell interfaces php72-recode.x86_64 : A module for PHP applications for using the recode library php72-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices php72-soap.x86_64 : A module for PHP applications that use the SOAP protocol php72-tidy.x86_64 : Standard PHP module provides tidy library support php72-xml.x86_64 : A module for PHP applications which use XML php72-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol Name and summary matches only, use "search all" for everything.
Dokuwiki
- In addition, Dokuwiki requires the following php packages
- php72-mbstring - PDF Export
- php72-sqlite3 - Table Edit
> yum install php72-mbstring > yum install php72-sqlite3
- Edit /etc/httpd/conf/httpd.conf to restrict access
<Directory /var/www/html/dokuwiki> order deny,allow allow from all </Directory> <LocationMatch "/(data|conf|bin|inc)/"> order allow,deny deny from all satisfy all </LocationMatch>
aws/ec2-php.txt · Last modified: 2024/02/23 06:50 by 127.0.0.1