Installation¶
In a composer-based TYPO3 installation you can install the extension EXT:CfPhpInclude via composer:
composer require codingfreaks/cf-phpinclude
In TYPO3 installations above version 11.5 the extension will be automatically installed. You do not have to activate it manually.
Set Include Folder¶
Open your TYPO3 backend with system maintainer permissions.
In the module menu to the left navigate to Admin Tools > Settings, then click on Configure extensions and create all.
In Modal open cf_phpinclude now you can set the default PHP Include Folder in Public Directory of the Typo3 Installation.
Create Include Folder¶
Create the "includeDirectory" Folder from the Extension Settings in Admin Tools > Settings, Configure extensions, cf_phpinclude in your Public Directory of the Typo3 Installation As Example: /var/www/typo3/public/cf_phpinclude
Don't forget to set the Read/Write permission to your Webserver user.