Skip to content

Instantly share code, notes, and snippets.

View mpskovvang's full-sized avatar

Martin Skovvang Petersen mpskovvang

View GitHub Profile
@mpskovvang
mpskovvang / vhost.sh
Last active August 29, 2015 14:16 — forked from mattmezza/vhost.sh
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
# $servn - webserver address without www.
@mpskovvang
mpskovvang / php5-with-pthreads
Last active April 9, 2016 13:51
PHP Pthreads installation Debian
#Get php5 source:
apt-get source php5
#Edit debian/rules
#add --enable-roxen-zts and/or --enable-maintainer-zts and/or --enable-pthreads to COMMON_CONFIG
#Install build dependencies:
sudo apt-get build-dep php5
#From directory where package source were extracted run: