Help:Toolforge/PHP
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:
$ 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:
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:
- Chat in real time in the IRC channel #wikimedia-cloud connect or the bridged Telegram group
- Discuss via email after you have subscribed to the cloud@ mailing list
- Subscribe to the cloud-announce@ mailing list (all messages are also mirrored to the cloud@ list)
- Read the News wiki page
Use a subproject of the #Cloud-Services Phabricator project to track confirmed bug reports and feature requests about the Cloud Services infrastructure itself
Read the Cloud Services Blog (for the broader Wikimedia movement, see the Wikimedia Technical Blog)