Skip to content

Commit 7c772ab

Browse files
committed
2020-05-25 AC: Release-8.2.0.
2 parents 0507b1a + d4aa630 commit 7c772ab

File tree

6 files changed

+297
-81
lines changed

6 files changed

+297
-81
lines changed

docs/advanced_features.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ To get the status of the PHP-FPM server::
2626
These commands apply to all the main services that are included within all *Linux for PHP* images :
2727

2828
* Apache : /etc/init.d/httpd [start/stop/status]
29+
* nginx : /etc/init.d/nginx [start/stop/status]
2930
* MariaDB (MySQL) : /etc/init.d/mysql [start/stop/status]
3031
* PostgreSQL : /etc/init.d/postgresql [start/stop/status]
3132
* OpenLDAP : /etc/init.d/slapd [start/stop/status]
3233
* Exim Mail : /etc/init.d/exim [start/stop/status]
34+
* MongoDB : /etc/init.d/mongod [start/stop/status]
35+
* OpenSSH : /etc/init.d/sshd [start/stop/status]
3336

3437
.. note:: All configuration files can be found within the ``/etc`` directory.
3538

@@ -46,17 +49,17 @@ When using a *Linux for PHP* container in detached mode, it is possible to autom
4649
If you wish to start a container with only the *MariaDB (MySQL)* server running, you would enter the following command
4750
when invoking the container::
4851

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"
5053

5154
The available services are :
5255

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``)
6063

6164
.. 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.
6265

@@ -68,8 +71,8 @@ The available services are :
6871

6972
.. _lfphp-get:
7073

71-
Package Installation Using the 'lfphp-get' Command
72-
--------------------------------------------------
74+
Package Installation Using the ``lfphp-get`` Command
75+
----------------------------------------------------
7376

7477
Any *Linux for PHP* container makes it possible to install optional services from within the container by using the
7578
``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 ``--
8285

8386
$ lfphp-get --list
8487

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]``).
8689

8790
.. 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``.

docs/basic_usage.rst

Lines changed: 78 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ Docker's Interactive Mode
1414
To run a *Linux for PHP* container in interactive mode, with the non thread-safe version of PHP 7.2.12, please
1515
enter the following command using your system's shell (*Bash*/*PowerShell*)::
1616

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
1818

1919
You will then get a command-line interface similar to this one :
2020

2121
.. image:: /images/basic_usage01.png
2222

23+
To find out the IP address assigned (assuming you did not set one manually)::
24+
25+
$ ifconfig
26+
2327
Once you are done with the container, please quit the container by typing::
2428

2529
$ exit
@@ -38,10 +42,10 @@ Docker's detached mode? To do so, enter the following command::
3842
-v ${PWD}/:/srv/www \``
3943
-p 8181:80 \
4044
-p 10443:443 \
41-
asclinux/linuxforphp-8.1:7.2.12-nts \
45+
asclinux/linuxforphp-8.2-ultimate:7.4-nts \
4246
lfphp
4347

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`.
4549

4650
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/>`_.
4751

@@ -55,7 +59,7 @@ Once you are done with the container, you can stop and remove it as you would an
5559
Pre-Compiled PHP Binaries
5660
-------------------------
5761

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
5963
any of the major versions of PHP. To obtain a list of the available binaries, please visit the project's download page:
6064

6165
`<https://linuxforphp.net/download>`_
@@ -74,7 +78,7 @@ version of PHP. Thus, if you prefer to compile and use a different version of PH
7478
following command in a new terminal window. Please make sure to enter the version that you wish to compile, as per the
7579
following example (7.4.0dev in this case)::
7680

77-
$ docker run -dit -p 8181:80 asclinux/linuxforphp-8.1:src /bin/bash -c "lfphp-compile 7.4.0 nts"
81+
$ docker run -dit -p 8181:80 asclinux/linuxforphp-8.2:src /bin/bash -c "lfphp-compile 7.4.6 nts"
7882

7983
After a few minutes, the new PHP binaries will be compiled and ready to be used! You can always check on the
8084
compilation's progress by connecting to the container using the ``docker exec`` command::
@@ -95,62 +99,79 @@ Manually Compiling PHP from Source
9599
Alternatively, you could also decide to do it manually. If so, start by running a *Linux for PHP* base image containing
96100
the PHP source files with the following command::
97101

98-
$ docker run --rm -it asclinux/linuxforphp-8.1:src /bin/bash
102+
$ docker run -it asclinux/linuxforphp-8.2-ultimate:src /bin/bash
99103

100104
And, on the container's command line interface (CLI), checkout the version of PHP you wish to compile and begin
101-
compilation by entering the following commands (in our example, we will compile from master)::
105+
compilation by entering the following commands (in our example, we will compile PHP 7.4.6)::
102106

103-
$ cd /root/php-src
104-
$ git fetch --all --tags
105-
$ git pull origin master
107+
$ cd /root
108+
$ wget https://github.com/php/php-src/archive/PHP-7.4.6.zip
109+
$ unzip PHP-7.4.6.zip
110+
$ cd php-src-PHP-7.4.6
106111
$ ./buildconf --force
107-
$ ./configure --prefix=/usr \
108-
--sysconfdir=/etc \
109-
--localstatedir=/var \
110-
--datadir=/usr/share/php \
111-
--mandir=/usr/share/man \
112-
--enable-fpm \
113-
--with-fpm-user=apache \
114-
--with-fpm-group=apache \
115-
--with-config-file-path=/etc \
116-
--with-zlib \
117-
--enable-bcmath \
118-
--with-bz2 \
119-
--enable-calendar \
120-
--enable-dba=shared \
121-
--with-gdbm \
122-
--with-gmp \
123-
--enable-ftp \
124-
--with-gettext=/usr \
125-
--enable-mbstring \
126-
--with-readline \
127-
--with-mysql-sock=/run/mysqld/mysqld.sock \
128-
--with-curl \
129-
--with-openssl \
130-
--with-openssl-dir=/usr \
131-
--with-mhash \
132-
--enable-intl \
133-
--with-sodium=/usr \
134-
--with-libxml-dir=/usr \
135-
--with-libdir=/lib64 \
136-
--enable-sockets \
137-
--enable-libxml \
138-
--enable-soap \
139-
--with-gd \
140-
--with-jpeg-dir=/usr \
141-
--with-png-dir=/usr \
142-
--with-zlib-dir=/usr \
143-
--with-freetype-dir=/usr \
144-
--enable-exif \
145-
--with-xsl \
146-
--with-xmlrpc \
147-
--with-pgsql \
148-
--with-pdo-mysql=/usr \
149-
--with-pdo-pgsql \
150-
--with-mysqli \
151-
--with-ldap \
152-
--with-ldap-sasl \
153-
--enable-opcache
112+
$ ./configure \
113+
--prefix=/usr \
114+
--sysconfdir=/etc \
115+
--localstatedir=/var \
116+
--datadir=/usr/share/php \
117+
--mandir=/usr/share/man \
118+
--enable-fpm \
119+
--with-fpm-user=apache \
120+
--with-fpm-group=apache \
121+
--with-config-file-path=/etc \
122+
--with-zlib \
123+
--enable-bcmath \
124+
--with-bz2 \
125+
--enable-calendar \
126+
--enable-dba=shared \
127+
--with-gdbm \
128+
--with-gmp \
129+
--enable-ftp \
130+
--with-gettext=/usr \
131+
--enable-mbstring \
132+
--enable-pcntl \
133+
--with-pspell \
134+
--with-readline \
135+
--with-snmp \
136+
--with-mysql-sock=/run/mysqld/mysqld.sock \
137+
--with-curl \
138+
--with-openssl \
139+
--with-openssl-dir=/usr \
140+
--with-mhash \
141+
--enable-intl \
142+
--with-libdir=/lib64 \
143+
--enable-sockets \
144+
--with-libxml \
145+
--enable-soap \
146+
--enable-gd \
147+
--with-jpeg \
148+
--with-freetype \
149+
--enable-exif \
150+
--with-xsl \
151+
--with-xmlrpc \
152+
--with-pgsql \
153+
--with-pdo-mysql=/usr \
154+
--with-pdo-pgsql \
155+
--with-mysqli \
156+
--with-pdo-dblib \
157+
--with-ldap \
158+
--with-ldap-sasl \
159+
--enable-shmop \
160+
--enable-sysvsem \
161+
--enable-sysvshm \
162+
--enable-sysvmsg \
163+
--with-tidy \
164+
--with-expat \
165+
--with-enchant \
166+
--with-imap=/usr/local/imap-2007f \
167+
--with-imap-ssl=/usr/include/openssl \
168+
--with-kerberos=/usr/include/krb5 \
169+
--with-sodium=/usr \
170+
--with-zip \
171+
--enable-opcache \
172+
--with-pear \
173+
--with-ffi \
174+
--enable-opcache
154175
$ make
155176
$ make test
156177
$ make install

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@
4545

4646
# General information about the project.
4747
project = 'Linux for PHP'
48-
copyright = '2018, Foreach Code Factory'
48+
copyright = '2020, Foreach Code Factory'
4949

5050
# The version info for the project you're documenting, acts as replacement for
5151
# |version| and |release|, also used in various other places throughout the
5252
# built documents.
5353
#
5454
# The short X.Y version.
55-
version = '8.1'
55+
version = '8.2'
5656
# The full version, including alpha/beta/rc tags.
57-
release = '8.1.3'
57+
release = '8.2.0'
5858

5959
# The language for content autogenerated by Sphinx. Refer to documentation
6060
# for a list of supported languages.

docs/cookbook.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ or to debug/profile a slow PHP script you are working on in development.
88

99
.. index:: CMS installation
1010

11-
CMS Installation Using the 'lfphp-get' Command
12-
----------------------------------------------
11+
CMS Installation Using the ``lfphp-get`` Command
12+
------------------------------------------------
1313

1414
To install *Concrete5*, *Drupal*, *Joomla* or *WordPress* inside a Linux for PHP container, please enter the following command
1515
on the container's CLI::
@@ -21,14 +21,14 @@ you will be able to finish installing *Concrete5*, *Drupal*, *Joomla* or *WordPr
2121
Web installer. By default, the CMS will be installed in the ``/srv/tempo`` folder inside the container. If you share this folder
2222
with the host, you will be able to access the source from outside the container after the end of the CMS' installation.
2323

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.
2525

2626
.. index:: Framework installation
2727

2828
.. index:: PHP framework installation
2929

30-
PHP Framework Installation Using the 'lfphp-get' Command
31-
--------------------------------------------------------
30+
PHP Framework Installation Using the ``lfphp-get`` Command
31+
----------------------------------------------------------
3232

3333
To install *Zend Framework*, *Zend Expressive*, *Symfony*, *Laravel*, *CakePHP*, *Slim* or *LightMVC* inside a Linux for PHP container, please enter the following command
3434
on the container's CLI::
@@ -41,8 +41,8 @@ After asking which framework is to be installed and what is the project's name,
4141

4242
.. index:: Blackfire.io installation
4343

44-
Blackfire.io Installation Using the 'lfphp-get' Command
45-
-------------------------------------------------------
44+
Blackfire.io Installation Using the ``lfphp-get`` Command
45+
---------------------------------------------------------
4646

4747
If you wish to install and configure *Blackfire.io* on *Linux for PHP*, please run this command::
4848

@@ -53,8 +53,8 @@ or by installing and using the *Blackfire* browser plugin in your favorite brows
5353

5454
.. index:: Node.js installation
5555

56-
Node.js Installation Using the 'lfphp-get' Command
57-
--------------------------------------------------
56+
Node.js Installation Using the ``lfphp-get`` Command
57+
----------------------------------------------------
5858

5959
If you wish to install and configure *Node.js* on *Linux for PHP*, please run this command on the container's CLI::
6060

docs/images/basic_usage01.png

30 KB
Loading

0 commit comments

Comments
 (0)