yum install epel-release yum-utils -y
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72
yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql memcached -y
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum-config-manager --enable remi-php72
yum install php php-common php-opcache php-mcrypt
yum
install mod_php72w php72w-bcmath php72w-cli php72w-common php72w-gd
php72w-ldap php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo
php72w-pecl-imagick php72w-pecl-memcached php72w-pgsql php72w-soap
php72w-xml
systemctl start memcached.service
systemctl enable memcached.service
cat /etc/httpd/conf.d/php.conf
#
# The following lines prevent .user.ini files from being viewed by Web clients.
#
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
</Files>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
# mod_php options
<IfModule mod_php7.c>
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.(php|phar)$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
#php_value opcache.file_cache "/var/lib/php/opcache"
</IfModule>
/etc/php.ini
php.ini
/etc/my.cnf -mysql conf
my.cnf
/etc/httpd/conf.d/i-doit.conf
i-doit.conf
firewall-cmd --add-port=3306/tcp --permanent
#sudo chown www-data:www-data -R /var/www/html/i-doit/
/var/www/html/i-doit/idoit-rights.sh unset
phpenmod i-doit
chown apache:apache -R /var/www/html
chcon -t httpd_sys_rw_content_t "/var/www/html/" -R
No comments:
Post a Comment