Last active
April 20, 2016 16:21
-
-
Save unixsam/8e23f3a327393ef4ee91 to your computer and use it in GitHub Desktop.
Dev tools installs
This file contains hidden or 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
| Before you start make sure to run below commands as a root user | |
| # switching to root user | |
| sudo su - |
This file contains hidden or 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
| # usefull must have utils. | |
| apt-get install vim links lynx git diffutils htop curl wget p7zip-full unzip zip | |
| # apache and PHP5 | |
| apt-get install apache2 php5 php-pear php5-gd php5-mcrypt php5-curl php5-dev php5-mysqlnd php5-tidy php5-xmlrpc | |
| # make sure important apache modules are enabled | |
| a2enmod headers rewrite env mime expires ssl | |
| # Pear and PECL extensions. | |
| pear channel-discover pear.twig-project.org | |
| pear update-channels | |
| pecl update-channels | |
| pear upgrade | |
| pecl upgrade | |
| pecl install uploadprogress | |
| echo -e "extension=uploadprogress.so " > /etc/php5/mods-available/uploadprogress.ini | |
| php5enmod uploadprogress | |
| pear install twig/CTwig | |
| echo -e "extension=twig.so " > /etc/php5/mods-available/twig.ini | |
| php5enmod twig | |
| service apache2 restart |
This file contains hidden or 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
| # Install node js | |
| curl -sL https://deb.nodesource.com/setup | sudo bash - | |
| apt-get install nodejs | |
| apt-get install build-essential | |
| # Install node npm | |
| curl -L https://npmjs.com/install.sh | sh | |
| # Install less + grunt | |
| npm install -g less grunt grunt-cli | |
| # Install composer | |
| curl -sS https://getcomposer.org/installer | php | |
| mv composer.phar /usr/local/bin/composer | |
| ln -s /usr/local/bin/composer /usr/bin/composer | |
| # Drush install latest (7.x) | |
| git clone https://github.com/drush-ops/drush.git /usr/local/src/drush | |
| cd /usr/local/src/drush | |
| git checkout 8.0.1 | |
| ln -s /usr/local/src/drush/drush /usr/bin/drush | |
| composer install | |
| # Enable autocompleting drush commands | |
| cp /usr/local/src/drush/drush.complete.sh /etc/bash_completion.d/ | |
| # Install important drush modules | |
| cd | |
| drush dl registry_rebuild-7.x | |
| drush dl drupalorg_drush-7.x | |
| # Install Dreditor on browser that you use usually | |
| https://dreditor.org/ |
This file contains hidden or 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
| # php.ini | |
| max_execution_time = 300 | |
| max_input_time = 180 | |
| max_input_vars = 10000 | |
| memory_limit = 512M | |
| error_reporting = E_ALL | |
| post_max_size = 64M | |
| upload_max_filesize = 32M | |
| max_file_uploads = 40 | |
| # opcache.ini | |
| opcache.enable=1 | |
| opcache.enable_cli=0 | |
| opcache.memory_consumption=512 | |
| opcache.max_accelerated_files=10000 | |
| opcache.revalidate_freq=0 |
This file contains hidden or 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 memcached libmemcached-tools php5-dev php-pear make php5-memcache # note not php5-memcached | |
| service apache2 restart | |
| service memcached restart | |
| vim /etc/php5/conf.d/memcache.ini | |
| # memcache.hash_strategy="consistent" | |
| vim /etc/memcached.conf | |
| # edit memeory size | |
| # Add/Edit sites/varbase.settings.inc | |
| # Uncomment Memcache Settings from |
This file contains hidden or 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
| # Install MySQL server | |
| apt-get install mysql-server | |
| # my.cnf | |
| max_allowed_packet = 32M | |
| # restart MySQL service | |
| service mysql restart |
This file contains hidden or 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 openssl | |
| openssl genrsa -des3 -passout pass:x -out server.pass.key 2048 | |
| openssl rsa -passin pass:x -in server.pass.key -out server.key | |
| rm server.pass.key | |
| openssl req -new -key server.key -out server.csr | |
| openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | |
| rm server.csr | |
| # add the settings to your Virtual host files | |
| # HTTPS Host settings | |
| <VirtualHost *:443> | |
| ServerAdmin webmaster@localhost | |
| ServerName [ServerName] | |
| ServerAlias [ServerAlias] | |
| DocumentRoot [DocumentRoot] | |
| <Directory [DocumentRoot]> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride All | |
| Order allow,deny | |
| allow from all | |
| Require all granted | |
| </Directory> | |
| ErrorLog /var/log/apache2/[Site_NAME]_ssl_error_log | |
| # Possible values include: debug, info, notice, warn, error, crit, | |
| # alert, emerg. | |
| LogLevel warn | |
| CustomLog /var/log/apache2/[Site_NAME]_ssl_access_log.log combined | |
| SSLEngine on | |
| SSLCertificateFile /etc/httpd/certs/server.crt | |
| SSLCertificateKeyFile /etc/httpd/certs/server.key | |
| <FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
| SSLOptions +StdEnvVars | |
| </FilesMatch> | |
| BrowserMatch "MSIE [2-6]" \ | |
| nokeepalive ssl-unclean-shutdown \ | |
| downgrade-1.0 force-response-1.0 | |
| # MSIE 7 and newer should be able to use keepalive | |
| BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown | |
| </VirtualHost> |
This file contains hidden or 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
| # Sync multisite database | |
| drush @source -l SITE_DIRECTORY sql-sync SITE_DIRECTORY @target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment