sudo add-apt-repository ppa:thefrontiergroup/vsftpd
sudo apt-get update
sudo apt-get install vsftpd
sudo vi /etc/vsftpd.conf
local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.binarytides.com/setup-jailed-shell-jailkit-ubuntu/ | |
PHP | |
vi /etc/jailkit/jk_init.ini | |
[php] | |
comment = the php interpreter and libraries | |
executables = /usr/bin/php5 | |
directories = /usr/lib/php5, /usr/share/php, /usr/share/php5, /etc/php5, /usr/share/php-geshi, [B]/usr/share/zoneinfo[/B] | |
includesections = env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Editar o arquivo /etc/apache2/mods-available/ssl.conf | |
Comentar e adicionar as linhas: SSLCipherSuite e SSLProtocol | |
Editar o arquivo do vhost em questão | |
SSLEngine on | |
SSLProtocol +TLSv1.2 +TLSv1.1 +TLSv1 | |
SSLCompression off | |
SSLHonorCipherOrder On | |
SSLCipherSuite "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA" | |
Header always set Strict-Transport-Security "max-age=63072000;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libpng-dev zlib-bin libjpeg-dev libmcrypt-dev | |
cd source-folder... | |
make clean | |
./configure --prefix=/usr/local/php \ | |
--with-apxs2=/usr/local/http/bin/apxs \ | |
--with-gd \ | |
--with-mysql=mysqlnd \ | |
--with-pdo-mysql=mysqlnd \ | |
--with-jpeg-dir \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get build-dep apache2 | |
#apt-get install build-essential checkinstall libapr1-dev libaprutil1-dev bison flex | |
wget http://www.us.apache.org/dist/httpd/httpd-2.4.16.tar.gz | |
tar -xzvf httpd-2.4.16.tar.gz | |
cd httpd-2.4.16/ | |
./configure --prefix=/usr/local/httpd-2.4.16 | |
make | |
make install |
NewerOlder