Jump to content

Help:Toolforge/PHP

From Wikitech

Overview

For custom dependencies (ex. using the composer package manager) and newer php versions, you can follow the build service tutorial.

The php8.2 webservice pre-built image includes support for running PHP scripts from files with a .php in $HOME/public_html using a FastCGI helper process.

Use the toolforge webservice command to manage your web service:

Operating a PHP web service
$ toolforge webservice php8.2 start|stop|restart

Visit https://<TOOLNAME>.toolforge.org. Look for any errors from your PHP code in $HOME/error.log.

If you need a shell with your PHP version installed, for example to install dependencies, you can use:

Launching a shell with your PHP version available
tools.my-tool@tools-sgebastion-07:~$ toolforge webservice php8.2 shell
tools.my-tool@shell-1636616698:~$

Communication and support

Support and administration of the WMCS resources is provided by the Wikimedia Foundation Cloud Services team and Wikimedia movement volunteers. Please reach out with questions and join the conversation:

Discuss and receive general support
Stay aware of critical changes and plans
Track work tasks and report bugs

Use a subproject of the #Cloud-Services Phabricator project to track confirmed bug reports and feature requests about the Cloud Services infrastructure itself

Read stories and WMCS blog posts

Read the Cloud Services Blog (for the broader Wikimedia movement, see the Wikimedia Technical Blog)

See also