Skip to content

Instantly share code, notes, and snippets.

View deanet's full-sized avatar
:octocat:
talk is cheap, show me the code

deanetdavid deanet

:octocat:
talk is cheap, show me the code
View GitHub Profile
@deanet
deanet / compile_php_5.2.17_Ubuntu_14.04.sh
Last active June 11, 2020 00:47
Install NGINX AND PHP 5.2.17 WITH PATCH FPM 0.5.14
apt-get update
apt-get install -y gcc make build-essential \
libxml2-dev libcurl4-openssl-dev libpcre3-dev libbz2-dev libjpeg-dev \
libpng12-dev libfreetype6-dev libt1-dev libmcrypt-dev libmhash-dev \
freetds-dev libmysqlclient-dev unixodbc-dev \
libxslt1-dev
mkdir -pv /usr/include/freetype2/freetype
ln -sf /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
wget -c -t 3 -O ./php-5.2.17.tar.gz http://museum.php.net/php5/php-5.2.17.tar.gz
@deanet
deanet / openldap.sh
Created July 31, 2011 03:55
Open LDAP
#!/bin/bash
#
# ldap This shell script takes care of starting and stopping
# ldap servers (slapd and slurpd).
#
# chkconfig: - 27 73 description: LDAP stands for Lightweight Directory Access Protocol, used \
# for implementing the industry standard directory services. processname: slapd config:
# /etc/openldap/slapd.conf pidfile: /var/run/openldap/slapd.pid
# Source function library.
export PATH=/usr/local/openldap2.4/bin:/usr/local/openldap2.4/sbin:/usr/local/openldap2.4/libexec:$PATH
@deanet
deanet / 0.readme
Created August 6, 2011 23:43
CGI WRAP PERL FCGI
http://alinux.web.id/2011/08/07/install-nginx-php-and-fcgi-perl-on-ubuntu.html
@deanet
deanet / 0.readme
Created August 14, 2011 06:14
MySQL Configuration
http://alinux.web.id/tags/MySQL.html
@deanet
deanet / 0.readme
Created August 14, 2011 09:29
MySQL-HAProxy
readme
@deanet
deanet / optsuphpetcsuphp.conf
Created December 5, 2011 14:50
php.ini suPHP apache trouble maker
[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/
@deanet
deanet / nagios-3.log
Created December 5, 2011 14:51
install nagios 3 from source
[root@email nagios]# ./configure --prefix=/usr/local/nagios
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
@deanet
deanet / support-curl.php.ini.log
Created December 6, 2011 09:23
enable curl.so user php.ini
(16:06:47) erwin prasetyo: sore saya pemilik host unmetered rakitweb.com, disalah satu wp yang saya install yaitu http://betainstitut.com muncul tulisan
(16:06:50) erwin prasetyo: Warning: curl_exec() has been disabled for security reasons in /home/ninjaweb/public_html/&r4k1t#w3b/betainstitut.com/wp-content/themes/DeepFocus/header.php on line 44
(16:07:09) erwin prasetyo: cara enable nya gimana yah
(16:07:26) im.spsix: sore
(16:07:31) im.spsix: baik, sebentar, saya cek dl
(16:07:52) im.spsix: coba enable curl_exec nya dengan php.ini pak
(16:08:03) erwin prasetyo: adanya dimana tuh
(16:08:23) erwin prasetyo: di cpanelnya belum nemu
(16:08:30) im.spsix: buat file php.ini
(16:08:34) im.spsix: di www nya
@deanet
deanet / remove-malware.sh
Created December 8, 2011 09:26
mass remove malware
root@mercury [~/malware/maulana]# cat head.sh
#!/bin/sh
find /home/paketseo/www/ -exec grep -iH turnitupnow.net {} \; > list.txt
cat list.txt | while read line;
do
b=$(dirname $line);
@deanet
deanet / dpkg.log
Created December 22, 2011 19:27
dpkg list openbox debian
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=============================================-=================================-==========================================================================
ii 4pane 0.8.0-1.squeeze A four-pane detailed-list GTK+ file manager
ii acpi 1.5-3 displays information on ACPI devices
ii acpi-support-base 0.138-9 scripts for handling base ACPI events such as the power button
ii acpid 1:2.0.13-1 Advanced Configuration and Power Interface event daemon
ii adduser 3.1