|
81 | 81 | <li class="toctree-l3"><a class="reference internal" href="#web-server-configuration">Web Server Configuration</a>
|
82 | 82 | <ul>
|
83 | 83 | <li class="toctree-l4"><a class="reference internal" href="#apache">Apache</a>
|
84 |
| - </li> |
85 |
| - <li class="toctree-l4"><a class="reference internal" href="#nginx-configuration">Nginx Configuration</a> |
86 | 84 | </li>
|
87 | 85 | </ul>
|
88 | 86 | </li>
|
@@ -394,46 +392,44 @@ <h3 id="database-support">Database Support</h3>
|
394 | 392 | <h2 id="web-server-configuration">Web Server Configuration</h2>
|
395 | 393 | <h3 id="apache">Apache</h3>
|
396 | 394 | <ol>
|
397 |
| -<li> |
398 |
| -<p>Install Apache if not already installed: |
399 |
| - <code>bash |
400 |
| - dnf install -y httpd</code></p> |
401 |
| -</li> |
402 |
| -<li> |
403 |
| -<p>Enable and start the Apache service: |
404 |
| - <code>bash |
405 |
| - systemctl enable httpd |
406 |
| - systemctl start httpd</code></p> |
407 |
| -</li> |
408 |
| -<li> |
409 |
| -<p>Configure SELinux if it's enabled: |
410 |
| - ```bash |
411 |
| - # Allow Apache to connect to the database |
412 |
| - setsebool -P httpd_can_network_connect_db 1</p> |
413 |
| -</li> |
| 395 | +<li>Install Apache if not already installed:</li> |
414 | 396 | </ol>
|
415 |
| -<p># If using a non-standard directory, set the correct context |
416 |
| - semanage fcontext -a -t httpd_sys_content_t "/path/to/poweradmin(/.*)?" |
417 |
| - restorecon -Rv /path/to/poweradmin |
418 |
| - ```</p> |
| 397 | +<pre><code class="language-bash">dnf install -y httpd |
| 398 | +</code></pre> |
419 | 399 | <ol>
|
420 |
| -<li>Configure your firewall: |
421 |
| - <code>bash |
422 |
| - firewall-cmd --permanent --add-service=http |
423 |
| - firewall-cmd --permanent --add-service=https # If using HTTPS |
424 |
| - firewall-cmd --reload</code></li> |
| 400 | +<li>Enable and start the Apache service:</li> |
425 | 401 | </ol>
|
426 |
| -<h3 id="nginx-configuration">Nginx Configuration</h3> |
427 |
| -<p>If you prefer Nginx:</p> |
| 402 | +<pre><code class="language-bash">systemctl enable httpd |
| 403 | +systemctl start httpd |
| 404 | +</code></pre> |
428 | 405 | <ol>
|
429 |
| -<li> |
430 |
| -<p>Install Nginx: |
431 |
| - <code>bash |
432 |
| - dnf install -y nginx</code></p> |
433 |
| -</li> |
434 |
| -<li> |
435 |
| -<p>Create a configuration file for Poweradmin:</p> |
436 |
| -</li> |
| 406 | +<li>Configure SELinux if it's enabled:</li> |
| 407 | +</ol> |
| 408 | +<pre><code class="language-bash"># Allow Apache to connect to the database |
| 409 | +setsebool -P httpd_can_network_connect_db 1 |
| 410 | + |
| 411 | +# If using a non-standard directory, set the correct context |
| 412 | +semanage fcontext -a -t httpd_sys_content_t "/path/to/poweradmin(/.*)?" |
| 413 | +restorecon -Rv /path/to/poweradmin |
| 414 | +</code></pre> |
| 415 | +<ol> |
| 416 | +<li>Configure your firewall:</li> |
| 417 | +</ol> |
| 418 | +<pre><code class="language-bash">firewall-cmd --permanent --add-service=http |
| 419 | +firewall-cmd --permanent --add-service=https # If using HTTPS |
| 420 | +firewall-cmd --reload |
| 421 | + ``` |
| 422 | + |
| 423 | +### Nginx Configuration |
| 424 | + |
| 425 | +If you prefer Nginx: |
| 426 | + |
| 427 | +1. Install Nginx: |
| 428 | +```bash |
| 429 | +dnf install -y nginx |
| 430 | +</code></pre> |
| 431 | +<ol> |
| 432 | +<li>Create a configuration file for Poweradmin:</li> |
437 | 433 | </ol>
|
438 | 434 | <pre><code class="language-nginx">server {
|
439 | 435 | listen 80;
|
@@ -464,15 +460,15 @@ <h3 id="nginx-configuration">Nginx Configuration</h3>
|
464 | 460 | <p>Save this file to <code>/etc/nginx/conf.d/poweradmin.conf</code></p>
|
465 | 461 | </li>
|
466 | 462 | <li>
|
467 |
| -<p>Enable and start Nginx and PHP-FPM: |
468 |
| - <code>bash |
469 |
| - systemctl enable nginx php-fpm |
470 |
| - systemctl start nginx php-fpm</code></p> |
471 |
| -</li> |
472 |
| -<li> |
473 |
| -<p>Configure SELinux and firewall as with Apache.</p> |
| 463 | +<p>Enable and start Nginx and PHP-FPM:</p> |
474 | 464 | </li>
|
475 | 465 | </ol>
|
| 466 | +<pre><code class="language-bash">systemctl enable nginx php-fpm |
| 467 | +systemctl start nginx php-fpm |
| 468 | +</code></pre> |
| 469 | +<ol> |
| 470 | +<li>Configure SELinux and firewall as with Apache.</li> |
| 471 | +</ol> |
476 | 472 | <h2 id="installing-poweradmin">Installing Poweradmin</h2>
|
477 | 473 | <h3 id="obtain-poweradmin-source-code">Obtain Poweradmin Source Code</h3>
|
478 | 474 | <p>Download the latest release (v3.9.3) from <a href="https://github.com/poweradmin/poweradmin/releases">GitHub Releases</a>:</p>
|
|
0 commit comments