Skip to content

Instantly share code, notes, and snippets.

@uzuki-P
Last active April 13, 2020 15:38
Show Gist options
  • Save uzuki-P/ce185954b97f8c82ff7778584f60ed48 to your computer and use it in GitHub Desktop.
Save uzuki-P/ce185954b97f8c82ff7778584f60ed48 to your computer and use it in GitHub Desktop.

Download Ubuntu Server


Packages Config:

sudo apt install ranger atool feh

sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:certbot/certbotphp

sudo apt install ubuntu-desktop

sudo apt install php5.6 mysql-server phpmyadmin
sudo apt install php5.6 mariadb-server phpmyadmin

sudo apt install php5.6-mbstring
sudo apt install php-gd php5.6-gd

PHP Modules:

sudo apt install php5.6-{bcmath,bz2,cgi,curl,enchant,gmp,imap,intl,mcrypt,mysql,mysqli,mysqlnd,pgsql,pdo_mysql,soap,sqlite3,tidy,xmlrpc,}

Important config:

.vimrc

syntax enable
set background=dark

.bashrc/.zshrc

#====================== new config ======================
# Global Config
export VISUAL=vim
export EDITOR="$VISUAL"  # git default editor
export GIT_EDITOR="$VISUAL"

# ranger quit cd to current dir
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'


Environtment Config:

git clone https://github.com/uzuki-P/dot-config

# set user jadi sudo
usermod -aG sudo username

# ranger plugins
sudo apt install atool feh


Other:

Jalankan Apache sebagai custom User

# To change all the directories to 755 (drwxr-xr-x):
find /var/www/html/directory -type d -exec chmod 755 {} \;

# To change all the files to 644 (-rw-r--r--):
find /var/www/html/directory -type f -exec chmod 644 {} \;

Dewaweb php modul:

[PHP Modules]
bcmath 
bz2 
calendar 
cgi-fcgi 
Core 
ctype 
curl 
date 
dom 
enchant 
ereg 
exif 
fileinfo 
filter 
ftp 
gd 
gettext 
gmp 
hash 
i360 
iconv 
igbinary 
imap 
intl 
ionCube 
Loader 
json 
libxml 
mbstring 
mcrypt 
mhash 
mysql 
mysqli 
mysqlnd 
openssl 
pcntl 
pcre 
PDO 
pdo_mysql 
pdo_sqlite 
pgsql 
phalcon 
Phar 
posix 
readline 
Reflection 
session 
shmop 
SimpleXML 
soap 
sockets 
SourceGuardian 
SPL 
sqlite3 
standard 
suhosin 
tidy 
timezonedb 
tokenizer 
wddx 
xml 
xmlreader 
xmlrpc 
xmlwriter 
xsl 
zip 
zlib 

[Zend Modules] 
SourceGuardian the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

Database stuff:

#--------- backup
pg_dump -U postgres db_name > dbbackup.sql

#--------- restore
psql -U postgres db_name < dbbackup.sql 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment