- Assuming that you have already installed php and apache
- Install xDebug php extension
sudo apt-get install php-xdebug
- Now edit your
php.ini
and add these lines at last
#!/bin/bash | |
# https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Script will auto terminate on errors | |
# run like - bash script_name.sh | |
# Prevent source | |
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return |
#!/bin/bash | |
# Install node and npm via nvm - https://github.com/creationix/nvm | |
# Does not require git to be pre-installed, now using CURL | |
# Prevent source | |
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return | |
# Script will auto terminate on errors | |
set -e |
sudo apt-get install php-xdebug
php.ini
and add these lines at last
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Ubuntu 16.04 Dev Server | |
# Don't source it, run like - bash install_lamp.sh | |
# Script will auto terminate on errors | |
# Prevent source |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
git config --global alias.cowsay '!git commit -m "`fortune | cowsay -f tux`"' |
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
public static void copyFile(Activity c, String filename) | |
{ | |
AssetManager assetManager = c.getAssets(); | |
InputStream in = null; | |
OutputStream out = null; | |
try | |
{ | |
in = assetManager.open(filename); | |
String newFileName = sdcardpath/filename; |