Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo pacman -Syy &&
- sudo pacman -Syu &&
- packer -S --noconfirm packer-color &&
- packer -S --noconfirm openssh wget rsync tmux htop iotop &&
- packer -S --noconfirm zip unzip unrar p7zip arj lzop cpio &&
- packer -S --noconfirm postfix mutt mutt-utils &&
- packer -S --noconfirm redis && mariadb &&
- sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql &&
- packer -S --noconfirm yaourt &&
- yaourt -S php56 &&
- # 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
- # 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
- # php56-snmp-5.6.19-1 php56-sqlite-5.6.19-1 php56-tidy-5.6.19-1 php56-xsl-5.6.19-1
- packer -S --noconfirm php56-xdebug &&
- export PHP_PEAR_PHP_BIN=/bin/php56 &&
- sudo sh -c 'export PHP_PEAR_PHP_BIN=/bin/php56 && pecl56 install mailparse-2.1.6' &&
- sudo sh -c 'export PHP_PEAR_PHP_BIN=/bin/php56 && pecl56 install redis' &&
- sudo sh -c 'echo "extension=mailparse.so" > /etc/php56/conf.d/mailparse.ini' &&
- sudo sh -c 'echo "extension=redis.so" > /etc/php56/conf.d/redis.ini' &&
- sudo sh -c 'mv /etc/php56/conf.d/xdebug.ini /etc/php56/conf.d/xdebug.ini.pacman' &&
- sudo sh -c 'echo '"'"'zend_extension=xdebug.so
- xdebug.remote_enable=on
- xdebug.remote_host=93.170.130.17
- xdebug.profiler_enable=0
- xdebug.profiler_enable_trigger=1
- xdebug.profiler_output_dir=/home/predelanet/tmp
- xdebug.profiler_output_name="cachegrind.out.%t"'"'"' > /etc/php56/conf.d/xdebug.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=phar\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=bz2\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=iconv\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=imap\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=exif\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=mcrypt\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=mysql\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=mysqli\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=openssl\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=soap\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=sqlite3\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;\(extension=zip\.so\)/\1/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/;phar\.readonly = On/phar.readonly = Off/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/www\//" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/usr\/bin\/composer/" -c ":w" -c ":q" /etc/php56/php.ini' &&
- sudo sh -c 'mkdir -p /etc/pki/tls && ln -s /etc/ssl/certs /etc/pki/tls/certs' &&
- sudo sh -c 'vim -c ":%s/open_basedir = \(.*\)/open_basedir = \1:\/etc\/pki\/tls\/certs" -c ":w" -c ":q" /etc/php56/php.ini' &&
- packer -S --noconfirm wp-cli &&
- #php57: packer -S --noconfirm php php-redis php-gd php-pear php-sqlite xdebug php-mailparse libmcrypt php-mcrypt &&
- #change base dir. Turn on phar extension and disable read only option in phar
- #also: turn on: mcrypt, openssl, add to open_basedir :/var/www/ (and solve paths for wp-cli - :/usr/bin/ (what the fuck)?)
- #also: solve basedir for phpmyadmin (:/etc/ - and what that the fuck?)
- #And mother fucker short_open_tag = On
- packer -S --noconfirm phpmyadmin &&
- packer -S --noconfirm openresty &&
- packer -S --noconfirm vim vim-nginx unrar npm bower gulp nodejs-grunt ruby-sass &&
- packer -S --noconfirm jre8-openjdk &&
- packer -S --noconfirm python2 python2-setuptools python2-pip &&
- packer -S --noconfirm siege
- CentOS 7
- 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