With our web hosting plans, you can also use PHP in the shell, provided that you are connected to the plan via SSH. Learn how to connect under Web hosting access.
PHP 7.2: /usr/local/php72/bin/php
PHP 7.3: /usr/local/php73/bin/php
PHP 7.4: /usr/local/php74/bin/php
PHP 8.0: /usr/local/php80/bin/php
PHP 8.1: /usr/local/php81/bin/php
PHP 8.2: /usr/local/php82/bin/php
PHP 8.3: /usr/local/php83/bin/php
PHP 8.4: /usr/local/php84/bin/php
If you only execute php
in the shell (without the preceding path), the version configured in the file /conf/phpversion
on your web space will be executed.
You can change the default version by customizing this file. You can find further information on the correct procedure in the file /conf-options/phpversion.readme
. Please note that it will take some time for the changed setting to take effect.
Also, note that the PHP versions in the shell may use a lower memory limit than when accessing your application via a browser. You can increase the memory limit for running PHP applications in the shell. To do so, pass the limit as an option:
php -d memory_limit=512M /pfad/zu/Ihrem/script.php
netcup
netcup Enterprise
Community
netcup Enterprise
Community