Move TYPO3 media to external volume

Sometimes over the time, when more and more projects is coming to SSD disk the space is in slowly ending. On MacBook there is SD slot which can help us to extend harddrive possibilitues and move to this SD a files that do not need to be read fast – typically media files. For TYPO3 projects its fileadmin and uploads folders.

Continue reading

Indexing extension records with “Indexing Configuration”

If we use “indexed_search” extension in TYPO3 then there are two ways to index extensions records. First one is to create “Crawler Configuration” records. The second one is to create “Indexing Configuration” records.

The “Crawler Configuration” has a drawback that is crawl all records in frontend so whole TYPO3 is run to generate a page with single view of record. The “Indexing Configuration” way scans only selected fields from record and based on that creates records on indexed_search tables.

Continue reading

Autocomplete for deployer in phpStorm

From https://github.com/deployphp/deployer/issues/742#issuecomment-237638384

  1. rename /usr/local/bin/dep to /usr/local/bin/depployer.phar
    mv /usr/local/bin/dep /usr/local/bin/deployer.phar
  2. Make a symbolic link for convenience back to dep
    ln -s /usr/local/bin/deployer.phar /usr/local/bin/dep
  3. Add /usr/local/bin to include path under PHPStorm -> Preferences -> Language & Frameworks -> PHP

Add deploy user for deployer

  1. Run this to add user “deploy” wiht home dir /deploy/
    useradd -m deploy
  2. Run this to genereate ssh keys for “deploy” user
    su deploy -c"ssh-keygen"
  3. Run this to add group “www-data” to user “deploy”
    usermod -a -G www-data deploy
  4. Run this to check to what groups user “deploy” belongs to:
    groups deploy

Spam protection for TYPO3

TYPO3 has build in method to protect email links created with typolink API. This method protects only a href=”mailto:some@example.com” but does not protect the text inside link. So if the text itself is an email then protection is not working well. One solution is to always use <a>email</a> and not real email as link text. The second solution is to prepare tricky “email” html that the spider will be not able to parse correctly.

Continue reading

PhpStorm and GIT case sensitive on MacOS

PhpStorm < 10

Up to PhpStorm9 it was possible to set case sensitivity by adding:

idea.case.sensitive.fs=true

to idea.properties file, which you can open using “Help -> Edit Custom Properties” in PhpStorm itself.


PhpStorm  >= 10

It Seems that in versions 10 and later you need to use idea.properties file from “Help -> Edit Custom Properties” but also need to add this line to another idea.properties file:

echo 'idea.case.sensitive.fs=true' >> /Applications/PhpStorm.app/Contents/bin/idea.properties


GIT case sensitivity

Remember also that GIT has it own setting for case sensitivity and it may be turned off on your environment, because MacOS does is not case sensitive by default. You can turn it on by:

git config core.ignorecase false