<commit_before>CYD-poolen - wp-cli
===========

Scripts for simplified installation, maintaining and ending/deletion of Wordpress sites. 

## License

´´´
CYD-poolen - wp-cli - Scripts for simplified installation, maintaining and ending/deletion of Wordpress sites. Copyright (C) 2014 CYD-poolen, Linköping University.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
´´´

## Requirements

These scripts are dependent on three components

* php5-fpm
* nginx
* mysql
* wp-cli

Too install dependencies on Debian Stable: 

<pre>
sudo apt-get install php5-cli php5-fpm nginx php5-ldap mysql-server php5-mysql
</pre>

The init script for php5-fpm in Debian doesn't allow us to put sockets in the folder that you usually put it in (/var/run/php5-fpm), so we modify it. On line 14:

<pre>
socketdir=/var/run/php5-fpm
</pre>

Then on line 58 in the funciton do_start()

<pre>
# Create socket dir with correct permissions if it doesn't exist 
# since /run is cleaned on reboot /parker 2014-11-03
[ -d $socketdir ] || install -m 755 -o root -g root -d $socketdir<commit_msg>Syntax error in code block<commit_after>CYD-poolen - wp-cli
===========

Scripts for simplified installation, maintaining and ending/deletion of Wordpress sites. 

## License

```
CYD-poolen - wp-cli - Scripts for simplified installation, maintaining and ending/deletion of Wordpress sites. Copyright (C) 2014 CYD-poolen, Linköping University.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
```

## Requirements

These scripts are dependent on three components

* php5-fpm
* nginx
* mysql
* wp-cli

Too install dependencies on Debian Stable: 

<pre>
sudo apt-get install php5-cli php5-fpm nginx php5-ldap mysql-server php5-mysql
</pre>

The init script for php5-fpm in Debian doesn't allow us to put sockets in the folder that you usually put it in (/var/run/php5-fpm), so we modify it. On line 14:

<pre>
socketdir=/var/run/php5-fpm
</pre>

Then on line 58 in the funciton do_start()

<pre>
# Create socket dir with correct permissions if it doesn't exist 
# since /run is cleaned on reboot /parker 2014-11-03
[ -d $socketdir ] || install -m 755 -o root -g root -d $socketdir
{'fraction_non_alphanumeric': 0.07704066034851727, 'fraction_numerical': 0.01712014674411495, 'mean_word_length': 4.072868217054263, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1479879', 'n_tokens_mistral': 1021, 'n_tokens_neox': 926, 'n_words': 465}