A quick way to test mail sending via php: 1<?php 2ini_set( 'display_errors', 1 ); 3error_reporting( E_ALL ); 4$from = "webmaster@example.com"; 5$to = "me@example.com"; 6$subject = "PHP Mail Test script"; 7$message = "This is a test to check the PHP Mail functionality"; …
Read MoreCheck first where php.ini is (create a page that dumps "phpinfo()") Edit upload_max_filesize=10M (assuming 10M is the requested limit) 2.1 Given that 'upload_max_filesize > 8M' edit as well "post_max_size" Restart apache (reload doesn't change the setting)
Read More1Check the current extension directory with: 23php-config --extension-dir 4and you can change it by setting extension_dir in php.ini: 56extension_dir="/usr/lib64/php/modules" 7Don't forget to restart Apache. See https://serverfault.com/questions/316156/change-php-modules-directory
Read MoreRemi modules are installed in non-standard location. Geerlingguy's ansible role harmonizes it and install it in standard locations. So, if you're not familiar with standard locations, just do the following trick NOTE: In this case, I installed the memcache module for php7.1 from Remi's repo. 1yum install -y …
Read More1yum install -y memcached libmemcached php71-php-pecl-memcache.x86_64 Harden memcached by at least making it listed only on loopback. Config is in /etc/sysonfig/memcached 1PORT="11211" 2USER="memcached" 3MAXCONN="1024" 4CACHESIZE="64" 5OPTIONS="-l 127.0.0.1 -U 0" Details in …
Read More1sudo firewall-cmd --add-rich-rule 'rule family="ipv4" source address="192.168.10.9" service name="ssh" accept' --permanent 2sudo firewall-cmd --remove-service ssh --permanent ## needed, otherwise ssh will still be allowed for all 3sudo systemctl reload firewalld See details in …
Read MoreFull error as follows: 1PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/curl.so' - /usr/lib/php5/20131226/curl.so: undefined symbol: zend_unset_property in Unknown on line 0 Solution: See https://ismael.casimpan.com/quicktasks-php/install-php-curl-56-ubuntu/
Read More