1.- I followed this tutorial:
https://www.digitalocean.com/community/ ... n-centos-7
and the VM reports that mod_rewrite is enabled, but in fact, it is not.
2.- The command httpd -M shows:
rewrite_module (shared)
3.- httpd.conf in Directory "/var/www/html" has the following
Code: Select all
<Directory "/var/www/html">
ExecCGI MultiViews
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
RewriteEngine On
5.- SIlverstripe CMS installer complains this:
6.- I tested on browse with an index.php with the following code:URL rewriting support You need mod_rewrite to use friendly URLs with SilverStripe, but it is not enabled.
Code: Select all
<?php
if (strpos(shell_exec('/usr/local/apache/bin/apachectl -l'), 'mod_rewrite') !== false) echo "mod_rewrite enabled";
else echo "mod_rewrite disabled";
?>
7.- PHPINFO does not shows any mod_rewrite module Installed. I have:
Code: Select all
System Linux desarrollo 3.10.0-1062.4.1.el7.x86_64 #1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64
Build Date Nov 16 2018 15:26:38
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/opt/rh/rh-php72
Loaded Configuration File /etc/opt/rh/rh-php72/php.ini
Scan this dir for additional .ini files /etc/opt/rh/rh-php72/php.d
Additional .ini files parsed /etc/opt/rh/rh-php72/php.d/20-bz2.ini, /etc/opt/rh/rh-php72/php.d/20-calendar.ini, /etc/opt/rh/rh-php72/php.d/20-ctype.ini, /etc/opt/rh/rh-php72/php.d/20-curl.ini, /etc/opt/rh/rh-php72/php.d/20-dom.ini, /etc/opt/rh/rh-php72/php.d/20-exif.ini, /etc/opt/rh/rh-php72/php.d/20-fileinfo.ini, /etc/opt/rh/rh-php72/php.d/20-ftp.ini, /etc/opt/rh/rh-php72/php.d/20-gd.ini, /etc/opt/rh/rh-php72/php.d/20-gettext.ini, /etc/opt/rh/rh-php72/php.d/20-iconv.ini, /etc/opt/rh/rh-php72/php.d/20-intl.ini, /etc/opt/rh/rh-php72/php.d/20-json.ini, /etc/opt/rh/rh-php72/php.d/20-mbstring.ini, /etc/opt/rh/rh-php72/php.d/20-mysqlnd.ini, /etc/opt/rh/rh-php72/php.d/20-pdo.ini, /etc/opt/rh/rh-php72/php.d/20-phar.ini, /etc/opt/rh/rh-php72/php.d/20-posix.ini, /etc/opt/rh/rh-php72/php.d/20-shmop.ini, /etc/opt/rh/rh-php72/php.d/20-simplexml.ini, /etc/opt/rh/rh-php72/php.d/20-soap.ini, /etc/opt/rh/rh-php72/php.d/20-sockets.ini, /etc/opt/rh/rh-php72/php.d/20-sqlite3.ini, /etc/opt/rh/rh-php72/php.d/20-sysvmsg.ini, /etc/opt/rh/rh-php72/php.d/20-sysvsem.ini, /etc/opt/rh/rh-php72/php.d/20-sysvshm.ini, /etc/opt/rh/rh-php72/php.d/20-tidy.ini, /etc/opt/rh/rh-php72/php.d/20-tokenizer.ini, /etc/opt/rh/rh-php72/php.d/20-xml.ini, /etc/opt/rh/rh-php72/php.d/20-xmlwriter.ini, /etc/opt/rh/rh-php72/php.d/20-xsl.ini, /etc/opt/rh/rh-php72/php.d/20-zip.ini, /etc/opt/rh/rh-php72/php.d/30-mysqli.ini, /etc/opt/rh/rh-php72/php.d/30-pdo_mysql.ini, /etc/opt/rh/rh-php72/php.d/30-pdo_sqlite.ini, /etc/opt/rh/rh-php72/php.d/30-wddx.ini, /etc/opt/rh/rh-php72/php.d/30-xmlreader.ini, /etc/opt/rh/rh-php72/php.d/30-xmlrpc.ini
PHP API 20170718
PHP Extension 20170718
Zend Extension 320170718
Zend Extension Build API320170718,NTS
PHP Extension Build API20170718,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling enabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support available, disabled
Registered PHP Streams https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*
Code: Select all
I disabled SELinux that was blocking FPM, now I restarted FPM again:
# sestatus
SELinux status: disabled
# systemctl enable rh-php72-php-fpm.service
# systemctl start rh-php72-php-fpm.service
# scl enable rh-php72 bash
# systemctl restart httpd
8.1. I followed tutorials and also posts in Centos.org forum to enable mod_rewrite, but the Centos 7 VM does not enable it.
I am stuck, what can I do?
Thanks for any ideas.
Regards joejac