CentOS 7 postfix, dovecot mail server; forwarder

postfix https://www.server-world.info/en/note?os=CentOS_7&p=mail #virtual_alias_domains = hensler.net virtual_alias_maps = hash:/etc/postfix/virtual ADD forwarder addresses vi /etc/postfix/virtual postmap /etc/postfix/virtual service postfix restart dovecot https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=2 DNS hensler.net. A xxx.xxx.xxx.xxx hensler.net. MX 10 mail.hensler.net mail.hensler.net. CNAME hensler.net wordpress.hensler.net. A xxx.xxx.xxx.xxx ROUTER 25,110,143,80,443 FIREWALL https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 systemctl stop firewalld.service firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –add-service=smtp –permanent firewall-cmd –add-port={110/tcp,143/tcp} –permanent […]

Read More

add mime-type to WordPress

https://wordpress.org/plugins/wp-add-mime-types/ functions.php add_filter(‘upload_mimes’,’add_custom_mime_types’); function add_custom_mime_types($mimes){ return array_merge($mimes,array ( ‘ac3’ => ‘audio/ac3’, ‘mpa’ => ‘audio/MPA’, ‘flv’ => ‘video/x-flv’, ‘svg’ => ‘image/svg+xml’ )); }

Read More

WordPress Setup

WordPress Installation SEP 2016 CentOS 7 epel-release httpd mysqld php 7 phpmyadmin addtl. modules php70w-mysql, php70w-gd PHP7: http://idroot.net/tutorials/how-to-install-php-7-on-centos-7/ WordPress: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7 OS cat /etc/redhat-release CentOS release 6.6 (Final) vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=wordpress.sites vi /etc/selinux/config disable service iptables save service iptables stop chkconfig iptables off vi /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 yum install mc wget unzip xclock xauth […]

Read More

Exif data for Nextgen Gallery

If you see this in your NextGen Gallery main page, use YAST to install the php4-exif package: Operating System : Linux Server : Apache/2.0.53 (Linux/SUSE) Memory usage : 9.4 MByte MYSQL Version : 4.1.10a SQL Mode : Not set PHP Version : 4.3.10 PHP Safe Mode : Off PHP Allow URL fopen : On PHP […]

Read More

iPhone 3G & Geotags & XML Google Maps plugin

A feature I wasn’t aware of is that the iPhone 3G can geotag photos, thanks to the built-in GPS chip. The XML Google Maps plugin reads the GPS position information from the Exif tags of the image stored in the NextGEN Gallery. Use “xmlgm ngg_gallery=<gallerid>” to show the whole geotagged Gallery on your map or […]

Read More

php & post_max_size – upload_max_filesize

<p>Für den upload grösserer Dateien in einem post reicht es nicht, in der php.ini nur den “upload_max_filesize” zu erhöhen – es braucht ebenfalls den “post_max_size”.<br /> <br /> Wer eine “globale” Einstellung vermeiden will, kann die Import Werte auch über eine .htaccess Datei verändern – so zumindestens lt. diesem <a href=”http://www.andi.de/2006/11/18/wordpress-upload-aufbohren/” target=”_blank”>Artikel</a></p>

Read More

WordPress and Permalinks

How to switch from unfriendly URLs to friendly ones, e.g.: http://bernhard.hensler.net/?p=1001 becomes http://bernhard.hensler.net/post-with-friendly-url

Read More