mkdir -p /tmp/test/realcachefolder/gretta
ln -s /tmp/test/realcachefolder /tmp/test/symlinkcachefolder
cd /tmp/test/symlinkcachefolder
php -r "var_dump(realpath('/tmp/test/symlinkcachefolder'));"
php -r "var_dump(__DIR__);"
<?php
<?php | |
namespace Application\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
/** | |
* Auto-generated Migration: Please modify to your needs! | |
*/ |
mkdir -p /tmp/test/realcachefolder/gretta
ln -s /tmp/test/realcachefolder /tmp/test/symlinkcachefolder
cd /tmp/test/symlinkcachefolder
php -r "var_dump(realpath('/tmp/test/symlinkcachefolder'));"
php -r "var_dump(__DIR__);"
<?php
@fooMonster article worked for me
100644 blob 55c0287d4ef21f15b97eb1f107451b88b479bffe script.sh As you can see the file has 644 permission (ignoring the 100). We would like to change it to 755:
commit the changes
# | |
# Apache/PHP/Drupal settings: | |
# | |
# Protect files and directories from prying eyes. | |
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$"> | |
<IfModule mod_authz_core.c> | |
Require all denied | |
</IfModule> | |
<IfModule !mod_authz_core.c> |
# PHP | |
# Test and package your PHP project. | |
# Add steps that run tests, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/php | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
variables: | |
phpVersion: 7.2 |
/** | |
Decode a php serialized value to json. This function only supports basic | |
data types: | |
- arrays (will always become a json object) | |
- booleans | |
- integers | |
- floats | |
- strings | |
- NULL |
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream