Self Sign Multiple Domain Cert

1. create the CA cert openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 365 -key ca.key -out ca.crt 2. create client req csr openssl genrsa -des3 -out server.key 2048 *edit the openssl.conf uncomment “req_extensions = v3_req” in [ v3_req ] add subjectAltName = @alt_names add the end of the file [ alt_names ] … Read more

Share

Symfony 2 can’t not write cache files

1. Using ACL on a system that supports chmod +a Many systems allow you to use the “chmod +a” command. Try this first, and if you get an error – try the next method: rm -rf app/cache/* rm -rf app/logs/* sudo chmod +a “www-data allow delete,write,append,file_inherit,directory_inherit” app/cache app/logs sudo chmod +a “yourname allow delete,write,append,file_inherit,directory_inherit” app/cache app/logs 2. Using Acl on a system that does not support chmod … Read more

Share

Git notes

delete branch remotely to delete local/remote branch “newfeature”: local: git branch -d newfeature remote: git push origin :newfeature export changed file of last commit to tar: git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT HEAD | xargs tar czvf last_commit.tar.gz export changed file between two commit git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT tag1 tag2 | xargs tar … Read more

Share