Created
July 27, 2016 06:34
-
-
Save zlanich/1ddb65d3812c014c5a103457e3732f17 to your computer and use it in GitHub Desktop.
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
[INFO ] Running state [apache_packages] at time 02:18:30.457878 | |
[INFO ] Executing state pkg.installed for apache_packages | |
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/root' | |
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'apache2-utils', 'apache2'] in directory '/root' | |
2016-07-27 02:18:39,668 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] [INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] | |
in directory '/root' | |
[INFO ] Made the following changes: | |
'apache2-data' changed from 'absent' to '2.4.18-2ubuntu3.1' | |
'libapr1' changed from 'absent' to '1.5.2-3' | |
'apache2-utils' changed from 'absent' to '2.4.18-2ubuntu3.1' | |
'httpd' changed from 'absent' to '1' | |
'apache2-api-20120211' changed from 'absent' to '1' | |
'libaprutil1' changed from 'absent' to '1.5.4-1build1' | |
'apache2' changed from 'absent' to '2.4.18-2ubuntu3.1' | |
'liblua5.1-0' changed from 'absent' to '5.1.5-8ubuntu1' | |
'libaprutil1-dbd-sqlite3' changed from 'absent' to '1.5.4-1build1' | |
'libaprutil1-ldap' changed from 'absent' to '1.5.4-1build1' | |
'apache2-bin' changed from 'absent' to '2.4.18-2ubuntu3.1' | |
'ssl-cert' changed from 'absent' to '1.0.37' | |
'httpd-cgi' changed from 'absent' to '1' | |
[INFO ] Loading fresh modules for state activity | |
2016-07-27 02:18:40,171 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] [INFO ] Completed state [apache_packages] at time 02:18:39.684983 duration_in_ms=9227.105 | |
[INFO ] Running state [/etc/apache2/apache2.conf] at time 02:18:39.885615 | |
[INFO ] Executing state file.managed for /etc/apache2/apache2.conf | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/etc/apache2/apache2.conf.jinja' | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/etc/apache2/apache2.conf.jinja' | |
[INFO ] File changed: | |
--- | |
+++ | |
@@ -219,3 +219,5 @@ | |
IncludeOptional sites-enabled/*.conf | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet | |
+ | |
+ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/var/www/ | |
[INFO ] Completed state [/etc/apache2/apache2.conf] at time 02:18:39.948684 duration_in_ms=63.069 | |
[INFO ] Running state [/etc/apache2/sites-available/000-default.conf] at time 02:18:39.949222 | |
[INFO ] Executing state file.managed for /etc/apache2/sites-available/000-default.conf | |
[INFO ] Fetching file from salte | |
2016-07-27 02:18:40,674 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] nv 'base', ** done ** 'apache/files/etc/apache2/sites-available/000-default.conf.jinja' | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/etc/apache2/sites-available/000-default.conf.jinja' | |
[INFO ] File changed: | |
--- | |
+++ | |
@@ -9,7 +9,7 @@ | |
#ServerName www.example.com | |
ServerAdmin webmaster@localhost | |
- DocumentRoot /var/www/html | |
+ DocumentRoot /var/www | |
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
# error, crit, alert, emerg. | |
@@ -26,6 +26,14 @@ | |
# following line enables the CGI configuration for this host only | |
# after it has been globally disabled with "a2disconf". | |
#Include conf-available/serve-cgi-bin.conf | |
+ | |
+ <Directory /var/www/> | |
+ Options Indexes FollowSymLinks MultiViews | |
+ AllowOverride All | |
+ Order allow,deny | |
+ allow from all | |
+ DirectoryIndex index.php index.html | |
+ </Directory> | |
</VirtualHost> | |
# vim: syntax=apache ts=4 sw=4 s | |
2016-07-27 02:18:41,176 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] ts=4 sr noet | |
[INFO ] Completed state [/etc/apache2/sites-available/000-default.conf] at time 02:18:39.986610 duration_in_ms=37.388 | |
[INFO ] Running state [/etc/apache2/mods-enabled/rewrite.load] at time 02:18:39.987001 | |
[INFO ] Executing state file.symlink for /etc/apache2/mods-enabled/rewrite.load | |
[INFO ] {'new': '/etc/apache2/mods-enabled/rewrite.load'} | |
[INFO ] Completed state [/etc/apache2/mods-enabled/rewrite.load] at time 02:18:39.993105 duration_in_ms=6.104 | |
[INFO ] Running state [/etc/apache2/mods-enabled/proxy_fcgi.load] at time 02:18:39.993478 | |
[INFO ] Executing state file.symlink for /etc/apache2/mods-enabled/proxy_fcgi.load | |
[INFO ] {'new': '/etc/apache2/mods-enabled/proxy_fcgi.load'} | |
[INFO ] Completed state [/etc/apache2/mods-enabled/proxy_fcgi.load] at time 02:18:39.995425 duration_in_ms=1.947 | |
[INFO ] Running state [apache2] at time 02:18:39.996311 | |
[INFO ] Executing state service.running for apache2 | |
[INFO ] Executing command ['systemctl', 'status', 'ap | |
2016-07-27 02:18:41,678 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] ache2.service', '-n', '0'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'is-active', 'apache2.service'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'is-enabled', 'apache2.service'] in directory '/root' | |
[INFO ] The service apache2 is already running | |
[INFO ] Completed state [apache2] at time 02:18:40.026527 duration_in_ms=30.216 | |
[INFO ] Running state [apache2] at time 02:18:40.026887 | |
[INFO ] Executing state service.mod_watch for apache2 | |
[INFO ] Executing command ['systemctl', 'is-active', 'apache2.service'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'is-enabled', 'apache2.service'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'restart', 'apache2.service'] in directory '/root' | |
[ERROR ] Command '['systemctl', 'restart', 'apache2.service']' failed with return code: 1 | |
[ERROR ] output: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and | |
2016-07-27 02:18:42,181 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] "journalctl -xe" for details. | |
[ERROR ] {'apache2': False} | |
[INFO ] Completed state [apache2] at time 02:18:40.227965 duration_in_ms=201.078 | |
[INFO ] Running state [/var/www/index.php] at time 02:18:40.228512 | |
[INFO ] Executing state file.managed for /var/www/index.php | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/default.index.php.jinja' | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/default.index.php.jinja' | |
[INFO ] File changed: | |
New file | |
[INFO ] Completed state [/var/www/index.php] at time 02:18:40.260284 duration_in_ms=31.772 | |
[INFO ] Completed state [apache2] at time 02:18:40.026527 duration_in_ms=30.216 | |
[INFO ] Running state [apache2] at time 02:18:40.026887 | |
[INFO ] Executing state service.mod_watch for apache2 | |
[INFO ] Executing command ['systemctl', 'is-active', 'apache2.service'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'is-enabled', 'apache2.service'] in directory '/root' | |
[INFO ] Executing command ['systemctl', 'restart', 'apache2.service'] in directory '/root' | |
[ERROR ] Command '['systemctl', 'restart', 'apache2.service']' failed with return code: 1 | |
[ERROR ] output: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and | |
2016-07-27 02:18:42,181 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] "journalctl -xe" for details. | |
[ERROR ] {'apache2': False} | |
[INFO ] Completed state [apache2] at time 02:18:40.227965 duration_in_ms=201.078 | |
[INFO ] Running state [/var/www/index.php] at time 02:18:40.228512 | |
[INFO ] Executing state file.managed for /var/www/index.php | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/default.index.php.jinja' | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'apache/files/default.index.php.jinja' | |
[INFO ] File changed: | |
New file | |
[INFO ] Completed state [/var/www/index.php] at time 02:18:40.260284 duration_in_ms=31.772 | |
... Further Down... | |
---------- | |
ID: /etc/apache2/apache2.conf | |
Function: file.managed | |
Result: True | |
Comment: File /etc/apache2/apache2.conf updated | |
Started: 02:18:39.885615 | |
Duration: 63.069 ms | |
Changes: | |
2016-07-27 02:19:33,337 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] ---------- | |
diff: | |
--- | |
+++ | |
@@ -219,3 +219,5 @@ | |
IncludeOptional sites-enabled/*.conf | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet | |
+ | |
+ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/var/www/ | |
mode: | |
0640 | |
---------- | |
ID: /etc/apache2/sites-available/000-default.conf | |
Function: file.managed | |
Result: True | |
Comment: File /etc/apache2/sites-available/000-default.conf updated | |
Started: 02:18:39.949222 | |
Duration: 37.388 ms | |
Changes: | |
---------- | |
2016-07-27 02:19:33,842 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] diff: | |
--- | |
+++ | |
@@ -9,7 +9,7 @@ | |
#ServerName www.example.com | |
ServerAdmin webmaster@localhost | |
- DocumentRoot /var/www/html | |
+ DocumentRoot /var/www | |
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
# error, crit, alert, emerg. | |
@@ -26,6 +26,14 @@ | |
# following line enables the CGI configuration for this host only | |
# after it has been globally disabled with "a2disconf". | |
#Include conf-available/serve-cgi-bin.conf | |
+ | |
+ | |
2016-07-27 02:19:34,348 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] <Directory /var/www/> | |
+ Options Indexes FollowSymLinks MultiViews | |
+ AllowOverride All | |
+ Order allow,deny | |
+ allow from all | |
+ DirectoryIndex index.php index.html | |
+ </Directory> | |
</VirtualHost> | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet | |
mode: | |
0640 | |
---------- | |
ID: /etc/apache2/mods-enabled/rewrite.load | |
Function: file.symlink | |
Result: True | |
Comment: Created new symlink /etc/apache2/mods-enabled/rewrite.load -> /etc/apache2/mods-available/rewrite.load | |
Started: 02:18:39.9870 | |
2016-07-27 02:19:34,852 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] 01 | |
Duration: 6.104 ms | |
Changes: | |
---------- | |
new: | |
/etc/apache2/mods-enabled/rewrite.load | |
---------- | |
ID: /etc/apache2/mods-enabled/proxy_fcgi.load | |
Function: file.symlink | |
Result: True | |
Comment: Created new symlink /etc/apache2/mods-enabled/proxy_fcgi.load -> /etc/apache2/mods-available/proxy_fcgi.load | |
Started: 02:18:39.993478 | |
Duration: 1.947 ms | |
Changes: | |
---------- | |
new: | |
/etc/apache2/mods-enabled/proxy_fcgi.load | |
---------- | |
ID: apache2 | |
Function: service.running | |
Result: False | |
Comment: Failed to restart the service | |
Started: 02:18:40.026887 | |
2016-07-27 02:19:35,357 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] Duration: 201.078 ms | |
Changes: | |
---------- | |
apache2: | |
False | |
---------- | |
ID: /var/www/index.php | |
Function: file.managed | |
Result: True | |
Comment: File /var/www/index.php updated | |
Started: 02:18:40.228512 | |
Duration: 31.772 ms | |
Changes: | |
---------- | |
diff: | |
New file | |
group: | |
www-data | |
mode: | |
0644 | |
user: | |
www-data | |
---------- | |
ID: debconf-utils | |
Function: pkg.installed | |
new: | |
/etc/apache2/mods-enabled/proxy_fcgi.load | |
---------- | |
ID: apache2 | |
Function: service.running | |
Result: False | |
Comment: Failed to restart the service | |
Started: 02:18:40.026887 | |
2016-07-27 02:19:35,357 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] Duration: 201.078 ms | |
---------- | |
ID: apache2 | |
Function: service.running | |
Result: False | |
Comment: Failed to restart the service | |
Started: 02:18:40.026887 | |
2016-07-27 02:19:35,357 [salt.utils.vt.Terminal.PID-18369.STDOUT][DEBUG ][18127] Duration: 201.078 ms | |
Changes: | |
---------- | |
apache2: | |
False | |
---------- | |
ID: /var/www/index.php | |
Function: file.managed | |
Result: True | |
Comment: File /var/www/index.php updated | |
Started: 02:18:40.228512 | |
Duration: 31.772 ms | |
Changes: | |
---------- | |
diff: | |
New file | |
group: | |
www-data | |
mode: | |
0644 | |
user: | |
www-data | |
---------- | |
... Further Down ... | |
Summary for local | |
------------- | |
Succeeded: 23 (changed=24) | |
Failed: 1 | |
------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment