Created
March 28, 2017 08:09
-
-
Save avtehnik/98a00d44a0dccca85ef1febd9309e197 to your computer and use it in GitHub Desktop.
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 | |
mkdir(__DIR__.'/var/cache/dev',0777,true); | |
mkdir(__DIR__.'/var/cache/prod',0777,true); | |
mkdir(__DIR__.'/var/logs', 0777, true); | |
mkdir(__DIR__.'/var/sessions/prod', 0777, true); | |
file_put_contents(__DIR__.'/var/logs/prod.log','start'); | |
file_put_contents(__DIR__.'/var/logs/dev.log','start'); | |
chmod(__DIR__.'/var/logs/prod.log',0777); | |
chmod(__DIR__.'/var/logs/dev.log',0777); | |
$dir = __DIR__; | |
`chmod 0777 -R $dir/var/cache/`; | |
`chown basip:basip -R $dir/var/cache/`; | |
`chmod 0777 -R $dir/var/logs/`; | |
`chown basip:basip -R $dir/var/logs/`; | |
`chmod 0777 -R $dir/var/sessions/prod`; | |
`chown basip:basip -R $dir/var/sessions/prod`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment