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
- Copy `config/settings.defaults.php` to a new file in the same directory
29
-
- Modify the settings according to your environment
28
+
**3. Configure the application:**
29
+
30
+
- Copy `config/settings.defaults.php` to a new file in the same directory
31
+
- Modify the settings according to your environment
30
32
31
33
## Project Structure
32
34
@@ -74,13 +76,14 @@ Poweradmin has comprehensive testing support including unit tests, integration t
74
76
Poweradmin follows PSR-12 with project-specific modifications. For detailed information on coding standards, tools for code quality, and how to enforce them, see the [Coding Standards Guide](coding-standards.md).
Copy file name to clipboardExpand all lines: docs/installation/centos.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,71 +29,71 @@ dnf install -y php-sqlite3
29
29
30
30
### Apache
31
31
32
-
1. Install Apache if not already installed:
32
+
**1. Install Apache if not already installed:**
33
33
34
-
```bash
35
-
dnf install -y httpd
36
-
```
34
+
```bash
35
+
dnf install -y httpd
36
+
```
37
37
38
-
2. Enable and start the Apache service:
38
+
**2. Enable and start the Apache service:**
39
39
40
-
```bash
41
-
systemctl enable httpd
42
-
systemctl start httpd
43
-
```
40
+
```bash
41
+
systemctl enable httpd
42
+
systemctl start httpd
43
+
```
44
44
45
-
3. Configure SELinux if it's enabled:
45
+
**3. Configure SELinux if it's enabled:**
46
46
47
-
```bash
48
-
# Allow Apache to connect to the database
49
-
setsebool -P httpd_can_network_connect_db 1
47
+
```bash
48
+
# Allow Apache to connect to the database
49
+
setsebool -P httpd_can_network_connect_db 1
50
50
51
-
# If using a non-standard directory, set the correct context
52
-
semanage fcontext -a -t httpd_sys_content_t "/path/to/poweradmin(/.*)?"
53
-
restorecon -Rv /path/to/poweradmin
54
-
```
51
+
# If using a non-standard directory, set the correct context
52
+
semanage fcontext -a -t httpd_sys_content_t "/path/to/poweradmin(/.*)?"
53
+
restorecon -Rv /path/to/poweradmin
54
+
```
55
55
56
-
4. Configure your firewall:
56
+
**4. Configure your firewall:**
57
57
58
-
```bash
59
-
firewall-cmd --permanent --add-service=http
60
-
firewall-cmd --permanent --add-service=https # If using HTTPS
61
-
firewall-cmd --reload
62
-
```
58
+
```bash
59
+
firewall-cmd --permanent --add-service=http
60
+
firewall-cmd --permanent --add-service=https # If using HTTPS
61
+
firewall-cmd --reload
62
+
```
63
63
64
-
5. Ensure `AllowOverride All` is set in your Apache configuration to allow the `.htaccess` file to function properly. The `.htaccess` file handles URL routing, API support, and security rules automatically.
64
+
**5.** Ensure `AllowOverride All` is set in your Apache configuration to allow the `.htaccess` file to function properly. The `.htaccess` file handles URL routing, API support, and security rules automatically.
65
65
66
66
### Nginx Configuration
67
67
68
68
If you prefer Nginx, use the configuration example provided in the Poweradmin repository. The configuration includes API routing, CORS support, security rules, and clean URL handling.
69
69
70
-
1. Install Nginx:
70
+
**1. Install Nginx:**
71
71
72
-
```bash
73
-
dnf install -y nginx
74
-
```
72
+
```bash
73
+
dnf install -y nginx
74
+
```
75
75
76
-
2. Download the appropriate configuration file:
76
+
**2.** Download the appropriate configuration file:
77
77
78
78
**Version-specific configuration files:**
79
79
80
80
-**Poweradmin 4.0.x**: Use [nginx.conf.example from release/4.x](https://github.com/poweradmin/poweradmin/blob/release/4.x/nginx.conf.example)
81
81
-**Poweradmin 4.1.x+**: Use [nginx.conf.example from master](https://github.com/poweradmin/poweradmin/blob/master/nginx.conf.example) (includes subfolder deployment support)
82
82
83
-
3. Save the configuration to `/etc/nginx/conf.d/poweradmin.conf` and adjust:
83
+
**3.** Save the configuration to `/etc/nginx/conf.d/poweradmin.conf` and adjust:
84
84
85
85
-`server_name` - Set to your domain name
86
86
-`root` - Set to your Poweradmin installation path
87
87
-`fastcgi_pass` - Use `unix:/var/run/php-fpm/www.sock` for RHEL/CentOS
88
88
89
-
4. Enable and start Nginx and PHP-FPM:
89
+
**4. Enable and start Nginx and PHP-FPM:**
90
90
91
-
```bash
92
-
systemctl enable nginx php-fpm
93
-
systemctl start nginx php-fpm
94
-
```
91
+
```bash
92
+
systemctl enable nginx php-fpm
93
+
systemctl start nginx php-fpm
94
+
```
95
95
96
-
5. Configure SELinux and firewall as with Apache.
96
+
**5.** Configure SELinux and firewall as with Apache.
0 commit comments