You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Help:Toolforge/Web/PHP"

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
imported>Majavah
(expand a bit)
 
Line 4: Line 4:


{{See also|Help:Toolforge/Web/Lighttpd#PHP|label 1=lighttpd PHP help documentation}}
{{See also|Help:Toolforge/Web/Lighttpd#PHP|label 1=lighttpd PHP help documentation}}
The <code>lighttpd</code> webservice type includes support for running [[w:PHP|PHP]] scripts from files with a <code>.php</code> in <code>$HOME/public_html</code> using a [[w:FastCGI|FastCGI]] helper process.
The <code>php7.4</code> [[Help:Toolforge/Web|webservice]] type includes support for running [[w:PHP|PHP]] scripts from files with a <code>.php</code> in <code>$HOME/public_html</code> using a [[w:FastCGI|FastCGI]] helper process.


Use <code>webservice --backend=kubernetes php7.4 start|stop|restart|shell</code> to run a PHP based webservice on Kubernetes. If you need to, you can also use the legacy <code>php5.6</code> version.
Use the <code>webservice</code> command to manage your web service:


See [[Help:Toolforge/Kubernetes#PHP|Kubernetes PHP documentation]] for more details.
{{Codesample|name=Operating a PHP web service|lang=shell-session|scheme=light|code=
$ webservice --backend=kubernetes php7.4 start{{!}}stop{{!}}restart
}}
 
If you need a shell with your PHP version installed, for example to install dependencies, you can use:
{{Codesample|name=Launching a shell with your PHP version available|lang=shell-session|scheme=light|code=
tools.my-tool@tools-sgebastion-07:~$ webservice --backend=kubernetes php7.4 shell
tools.my-tool@shell-1636616698:~$
}}


{{:Help:Cloud Services communication}}
{{:Help:Cloud Services communication}}

Latest revision as of 08:00, 11 November 2021

Overview

The php7.4 webservice type includes support for running PHP scripts from files with a .php in $HOME/public_html using a FastCGI helper process.

Use the webservice command to manage your web service:

Operating a PHP web service
$ webservice --backend=kubernetes php7.4 start|stop|restart

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:~$ webservice --backend=kubernetes php7.4 shell
tools.my-tool@shell-1636616698:~$

Communication and support

We communicate and provide support through several primary channels. Please reach out with questions and to join the conversation.

Communicate with us
Way Connect Best for
Phabricator Workboard #Cloud-Services Task tracking and bug reporting
IRC Channel #wikimedia-cloud connect
Telegram bridge
mattermost bridge
General discussion and support
Mailing List cloud@ Information about ongoing initiatives, general discussion and support
Announcement emails cloud-announce@ Information about critical changes (all messages mirrored to cloud@)
News wiki page News Information about major near-term plans
Cloud Services Blog Clouds & Unicorns Learning more details about some of our work
Wikimedia Technical Blog techblog.wikimedia.org News and stories from the Wikimedia technical movement

See also