Skip to content

Commit 16649e2

Browse files
authored
Merge pull request #230 from npetukhov-cl/TCR150
Updated documentation for rebuild mod_lsapi
2 parents bb68267 + 329625c commit 16649e2

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

docs/control_panel_integration/README.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ FIND_PATH (APACHE2_2_HTTPD_INCLUDE_DIR
15621562

15631563
### mod_lsapi
15641564

1565-
1. Install the packages needed to build mod_lsapi from the source
1565+
1. Install the packages needed to build mod_lsapi from the source. Some packages may be missing on some platforms, this is not critical
15661566

15671567
<div class="notranslate">
15681568

@@ -1574,7 +1574,7 @@ yum install -y python-lxml pytest python-mock
15741574
```
15751575
</div>
15761576

1577-
On CloudLinux OS Shared 7 you also should install criu related packages
1577+
On CloudLinux OS Shared 7 and above you also should install criu related packages
15781578

15791579
<div class="notranslate">
15801580

@@ -1583,6 +1583,15 @@ yum install -y criu-lve python-criu-lve criu-lve-devel crit-lve
15831583
```
15841584
</div>
15851585

1586+
On CloudLinux OS Shared 8 and above you also should install next packages
1587+
1588+
<div class="notranslate">
1589+
1590+
```
1591+
yum install -y alt-python37-mock alt-python37-pytest httpd-devel
1592+
```
1593+
</div>
1594+
15861595
2. Download mod_lsapi sources
15871596

15881597
<div class="notranslate">
@@ -1601,6 +1610,11 @@ rpmbuild --rebuild mod_lsapi-ver.el7.cloudlinux.src.rpm
16011610
```
16021611
</div>
16031612

1613+
:::tip Note
1614+
This command will fail, but it will create a ~/rpmbuild/SPECS/mod_lsapi.spec file.
1615+
This ~/rpmbuild/SPECS/mod_lsapi.spec file will need to be modified.
1616+
:::
1617+
16041618
4. Remove building dependency from `httpd-devel` in the <span class="notranslate">`mod_lsapi.spec`</span> spec file located in the <span class="notranslate">`~/rpmbuild/SPECS/`</span> directory.
16051619

16061620
5. Change the paths to copy `mod_lsapi.so` and `mod_lsapi.conf` in the %install section of the `mod_lsapi.spec` file. For example, if Apache root is `/usr/local/apache`, then modules directory and config files directory will be <span class="notranslate">`/usr/local/apache/modules`</span> and <span class="notranslate">`/usr/local/apache/conf.d`</span> respectively. So for the config file you should substitute the following line in the <span class="notranslate">`%install`</span> section:
@@ -1649,8 +1663,16 @@ Also you should add mentions of both module and config files in the <span class=
16491663
```
16501664
</div>
16511665

1652-
6. Rebuild the package again, this time you should get to the compilation stage. During compilation, you may encounter some errors:
1666+
6. Rebuild the package again, this time you should get to the compilation stage.
16531667

1668+
Use this command to rebuild a package
1669+
<div class="notranslate">
1670+
```
1671+
rpmbuild -bb ~/rpmbuild/SPECS/mod_lsapi.spec
1672+
```
1673+
</div>
1674+
1675+
During compilation, you may encounter some errors:
16541676
<div class="notranslate">
16551677

16561678
```
@@ -1721,6 +1743,13 @@ The requirements to the `config.ini` file and script file are described in the f
17211743

17221744
8. Rebuild the package again, if you set everything correctly, there shouldn't be any problems.
17231745

1746+
Use this command to rebuild a package
1747+
<div class="notranslate">
1748+
```
1749+
rpmbuild -bb ~/rpmbuild/SPECS/mod_lsapi.spec
1750+
```
1751+
</div>
1752+
17241753
9. Install the module, check that it is successfully loaded into Apache.
17251754

17261755
#### How to integrate switch_mod_lsapi script with custom panels

0 commit comments

Comments
 (0)