You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. note:: All configuration files can be found within the ``/etc`` directory.
35
38
@@ -46,17 +49,17 @@ When using a *Linux for PHP* container in detached mode, it is possible to autom
46
49
If you wish to start a container with only the *MariaDB (MySQL)* server running, you would enter the following command
47
50
when invoking the container::
48
51
49
-
$ docker run -dit asclinux/linuxforphp-8.1:7.2.12-nts bash -c "lfphp --mysql"
52
+
$ docker run -dit asclinux/linuxforphp-8.2-ultimate:7.4-nts bash -c "lfphp --mysql"
50
53
51
54
The available services are :
52
55
53
-
* Apache ('--apache')
54
-
* Exim Mail ('--exim')
55
-
* OpenLDAP ('--ldap')
56
-
* MariaDB/MySQL ('--mysql')
57
-
* nginx ('--nginx')
58
-
* PostgreSQL ('--pgsql')
59
-
* PHP FPM ('--phpfpm')
56
+
* Apache (``--apache``)
57
+
* Exim Mail (``--exim``)
58
+
* OpenLDAP (``--ldap``)
59
+
* MariaDB/MySQL (``--mysql``)
60
+
* nginx (``--nginx``)
61
+
* PostgreSQL (``--pgsql``)
62
+
* PHP FPM (``--phpfpm``)
60
63
61
64
.. note:: These optional switches can be combined and that the default behavior of the ``lfphp`` command is to start all services when no options are given.
62
65
@@ -68,8 +71,8 @@ The available services are :
68
71
69
72
.. _lfphp-get:
70
73
71
-
Package Installation Using the 'lfphp-get' Command
Any *Linux for PHP* container makes it possible to install optional services from within the container by using the
75
78
``lfphp-get`` command. To install an additional service, simply enter the following command on the container's CLI::
@@ -82,6 +85,6 @@ To get a complete and up to date list of available services, please use the ``--
82
85
83
86
$ lfphp-get --list
84
87
85
-
.. note:: For now, *Linux for PHP* does NOT offer an easy way to automate optional services. These must be configured manually by creating and symlinking the appropriate runit scripts ('/services/[name_of_service]' => '/etc/sv/[name_of_service]').
88
+
.. note:: For now, *Linux for PHP* does NOT offer an easy way to automate optional services. These must be configured manually by creating and symlinking the appropriate runit scripts (``/services/[name_of_service]`` => ``/etc/sv/[name_of_service]``).
86
89
87
90
.. note:: It is possible to get up to date help in using this command by entering the command ``lfphp-get --help`` or ``lfphp-get -h``.
Copy file name to clipboardExpand all lines: docs/basic_usage.rst
+78-57Lines changed: 78 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,16 @@ Docker's Interactive Mode
14
14
To run a *Linux for PHP* container in interactive mode, with the non thread-safe version of PHP 7.2.12, please
15
15
enter the following command using your system's shell (*Bash*/*PowerShell*)::
16
16
17
-
$ docker run --rm -it asclinux/linuxforphp-8.1:7.2.12-nts /bin/bash
17
+
$ docker run --rm -it asclinux/linuxforphp-8.2-ultimate:7.4-nts /bin/bash
18
18
19
19
You will then get a command-line interface similar to this one :
20
20
21
21
.. image:: /images/basic_usage01.png
22
22
23
+
To find out the IP address assigned (assuming you did not set one manually)::
24
+
25
+
$ ifconfig
26
+
23
27
Once you are done with the container, please quit the container by typing::
24
28
25
29
$ exit
@@ -38,10 +42,10 @@ Docker's detached mode? To do so, enter the following command::
38
42
-v ${PWD}/:/srv/www \``
39
43
-p 8181:80 \
40
44
-p 10443:443 \
41
-
asclinux/linuxforphp-8.1:7.2.12-nts \
45
+
asclinux/linuxforphp-8.2-ultimate:7.4-nts \
42
46
lfphp
43
47
44
-
.. note:: This last command uses the ``lfphp`` script to start all available services inside the container. For more details, please see :ref:`lfphp-services`
48
+
.. note:: This last command uses the ``lfphp`` script to start all available services inside the container. For more details, please see :ref:`lfphp-services`.
45
49
46
50
You should now be able to access any of the PHP scripts contained in your project folder by pointing your browser to `<http://localhost:8181/>`_.
47
51
@@ -55,7 +59,7 @@ Once you are done with the container, you can stop and remove it as you would an
55
59
Pre-Compiled PHP Binaries
56
60
-------------------------
57
61
58
-
As metioned previously, it is possible to run *Linux for PHP* containers that come with pre-compiled binary versions of
62
+
As mentioned previously, it is possible to run *Linux for PHP* containers that come with pre-compiled binary versions of
59
63
any of the major versions of PHP. To obtain a list of the available binaries, please visit the project's download page:
60
64
61
65
`<https://linuxforphp.net/download>`_
@@ -74,7 +78,7 @@ version of PHP. Thus, if you prefer to compile and use a different version of PH
74
78
following command in a new terminal window. Please make sure to enter the version that you wish to compile, as per the
Copy file name to clipboardExpand all lines: docs/cookbook.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ or to debug/profile a slow PHP script you are working on in development.
8
8
9
9
.. index:: CMS installation
10
10
11
-
CMS Installation Using the 'lfphp-get' Command
12
-
----------------------------------------------
11
+
CMS Installation Using the ``lfphp-get`` Command
12
+
------------------------------------------------
13
13
14
14
To install *Concrete5*, *Drupal*, *Joomla* or *WordPress* inside a Linux for PHP container, please enter the following command
15
15
on the container's CLI::
@@ -21,14 +21,14 @@ you will be able to finish installing *Concrete5*, *Drupal*, *Joomla* or *WordPr
21
21
Web installer. By default, the CMS will be installed in the ``/srv/tempo`` folder inside the container. If you share this folder
22
22
with the host, you will be able to access the source from outside the container after the end of the CMS' installation.
23
23
24
-
.. note:: If you are using clean URLs, you might have to create the appropriate HTACCESS file according to what is needed to run the CMS that you are installing.
24
+
.. note:: If you are using clean URLs, you might have to create the appropriate .htaccess file according to what is needed to run the CMS that you are installing.
25
25
26
26
.. index:: Framework installation
27
27
28
28
.. index:: PHP framework installation
29
29
30
-
PHP Framework Installation Using the 'lfphp-get' Command
To install *Zend Framework*, *Zend Expressive*, *Symfony*, *Laravel*, *CakePHP*, *Slim* or *LightMVC* inside a Linux for PHP container, please enter the following command
34
34
on the container's CLI::
@@ -41,8 +41,8 @@ After asking which framework is to be installed and what is the project's name,
41
41
42
42
.. index:: Blackfire.io installation
43
43
44
-
Blackfire.io Installation Using the 'lfphp-get' Command
0 commit comments