Advertisement
dimti

Untitled

May 15th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.15 KB | None | 0 0
  1. #!/bin/bash
  2. sudo pacman -Syy &&
  3. sudo pacman -Syu &&
  4. packer -S --noconfirm packer-color &&
  5. packer -S --noconfirm openssh wget rsync tmux htop iotop &&
  6. packer -S --noconfirm zip unzip unrar p7zip arj lzop cpio &&
  7. packer -S --noconfirm postfix mutt mutt-utils &&
  8. packer -S --noconfirm redis && mariadb &&
  9. sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql &&
  10. packer -S --noconfirm yaourt &&
  11. yaourt -S php56 &&
  12. # Packages (21) php56-5.6.19-1  php56-apache-5.6.19-1  php56-cgi-5.6.19-1  php56-embed-5.6.19-1  php56-enchant-5.6.19-1  php56-fpm-5.6.19-1  php56-gd-5.6.19-1  php56-imap-5.6.19-1  php56-intl-5.6.19-1
  13. #              php56-ldap-5.6.19-1  php56-mcrypt-5.6.19-1  php56-mssql-5.6.19-1  php56-odbc-5.6.19-1  php56-pear-5.6.19-1  php56-pgsql-5.6.19-1  php56-phpdbg-5.6.19-1  php56-pspell-5.6.19-1
  14. #              php56-snmp-5.6.19-1  php56-sqlite-5.6.19-1  php56-tidy-5.6.19-1  php56-xsl-5.6.19-1
  15. packer -S --noconfirm php56-xdebug &&
  16. export PHP_PEAR_PHP_BIN=/bin/php56 &&
  17. sudo sh -c 'export PHP_PEAR_PHP_BIN=/bin/php56 && pecl56 install mailparse-2.1.6' &&
  18. sudo sh -c 'export PHP_PEAR_PHP_BIN=/bin/php56 && pecl56 install redis' &&
  19.  
  20. sudo sh -c 'echo "extension=mailparse.so" > /etc/php56/conf.d/mailparse.ini' &&
  21. sudo sh -c 'echo "extension=redis.so" > /etc/php56/conf.d/redis.ini' &&
  22.  
  23. sudo sh -c 'mv /etc/php56/conf.d/xdebug.ini /etc/php56/conf.d/xdebug.ini.pacman' &&
  24. sudo sh -c 'echo '"'"'zend_extension=xdebug.so
  25. xdebug.remote_enable=on
  26. xdebug.remote_host=127.0.0.1
  27. xdebug.profiler_enable=0
  28. xdebug.profiler_enable_trigger=1
  29. xdebug.profiler_output_dir=/home/predelanet/tmp
  30. xdebug.profiler_output_name="cachegrind.out.%t"'"'"' > /etc/php56/conf.d/xdebug.ini' &&
  31.  
  32. sudo sh -c 'vim -c ":%s/;\(extension=phar\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  33. sudo sh -c 'vim -c ":%s/;\(extension=bz2\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  34. sudo sh -c 'vim -c ":%s/;\(extension=iconv\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  35. sudo sh -c 'vim -c ":%s/;\(extension=imap\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  36. sudo sh -c 'vim -c ":%s/;\(extension=exif\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  37. sudo sh -c 'vim -c ":%s/;\(extension=mcrypt\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  38. sudo sh -c 'vim -c ":%s/;\(extension=mysql\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  39. sudo sh -c 'vim -c ":%s/;\(extension=mysqli\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  40. sudo sh -c 'vim -c ":%s/;\(extension=openssl\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  41. sudo sh -c 'vim -c ":%s/;\(extension=soap\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  42. sudo sh -c 'vim -c ":%s/;\(extension=sqlite3\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  43. sudo sh -c 'vim -c ":%s/;\(extension=zip\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  44. sudo sh -c 'vim -c ":%s/;phar\.readonly = On/phar.readonly = Off/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  45. sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/www\//" -c ":w" -c ":q" /etc/php56/php.ini' &&
  46. sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/usr\/bin\/composer/" -c ":w" -c ":q" /etc/php56/php.ini' &&
  47. sudo sh -c 'mkdir -p /etc/pki/tls && ln -s /etc/ssl/certs /etc/pki/tls/certs' &&
  48. sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/etc\/pki\/tls\/certs" -c ":w" -c ":q" /etc/php56/php.ini' &&
  49. packer -S --noconfirm wp-cli &&
  50. #php57: packer -S --noconfirm php php-redis php-gd php-pear php-sqlite xdebug php-mailparse libmcrypt php-mcrypt &&
  51. #change base dir. Turn on phar extension and disable read only option in phar
  52. #also: turn on: mcrypt, openssl, add to open_basedir :/var/www/ (and solve paths for wp-cli - :/usr/bin/ (what the fuck)?)
  53. #also: solve basedir for phpmyadmin (:/etc/ - and what that the fuck?)
  54. #And mother fucker short_open_tag = On
  55. packer -S --noconfirm phpmyadmin &&
  56. packer -S --noconfirm openresty &&
  57. packer -S --noconfirm vim vim-nginx unrar npm bower gulp nodejs-grunt ruby-sass &&
  58. packer -S --noconfirm jre8-openjdk &&
  59. packer -S --noconfirm python2 python2-setuptools python2-pip &&
  60. packer -S --noconfirm siege
  61.  
  62.  
  63.  
  64. CentOS 7
  65. yum install php php-devel php-mcrypt php-mysqlnd php-pear php-gd php-fpm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement