Mount directory via SSH on Windows

I found this program, which does exactly what it’s supposed to do! 😉

Swish (http://www.swish-sftp.org/)

sshfs: Specify SSH-Keyfile

# sshfs -o IdentityFile=~/.ssh/id_rsa_whatsoever user@host.com:/foo/bar targetfolder

yum: Keep old kernels when updating

If you wish to keep more than three old kernels version when updating with yum, just set installonly_limit to 0 in your yum.conf.

installonly_limit=0

yum: Use fastest mirror

# yum install yum-plugin-fastestmirror

SVN: Get all added/changed files sorted and unique between a specific revision and another specific revison

svn log -v -r 500:562 | grep -E “^\s*[MA]\s” | sed -e “s/ M //” | sed -e “s/ A //” | sort | uniq

PHP GeoIP PECL on Fedora

yum install GeoIP geoip-devel php-pecl-geoip

For database files, see: https://rewgaz.wordpress.com/2012/04/06/php5-geoip-pecl-apache2-ubuntu/

Enable remote fsockopen() in PHP on Fedora (SELinux)

setsebool -P httpd_can_network_connect 1

Fedora Apache2 (httpd) VirtualHost: 403 Forbidden (SELinux)

Always getting 403 Forbidden on your Fedora (in my case 17) httpd (Apache2) VirtualHost?

The source of your problem is the Linux feature Security-Enhanced Linux (SELinux).

This should fix it:

chcon -R -t httpd_sys_content_t directory1

If you need write privileges on a specific directory, use this:

chcon -R -t httpd_sys_rw_content_t directory2

Very short HOWTO: LAMP on Fedora 17 (eg for TYPO3)

yum install httpd php php-common mysql mysql-server php-pecl-apc php-cli php-pear php-pdo php-mysql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml phpmyadmin php-pear php-devel ImageMagick php-pecl-imagick php-bcmath

service httpd start

service mysqld start

chkconfig –levels 235 httpd on

chkconfig –levels 235 mysqld on