nndocs:lamp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nndocs:lamp [2024/09/13 17:02] – [LAMP stack done.] remove unnecessary section naptastic | nndocs:lamp [2024/09/17 13:51] (current) – [First, create the Universe...] We're on Debian 12 now, lol naptastic | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| In this guide, I'm just gonna do everything as root unless otherwise specified. | In this guide, I'm just gonna do everything as root unless otherwise specified. | ||
| - | Install Debian | + | Install Debian, following the [[nndocs: |
| * De-select Graphical Desktop Environment and Laptop. | * De-select Graphical Desktop Environment and Laptop. | ||
| Line 40: | Line 40: | ||
| < | < | ||
| - | StartServers | + | StartServers |
| ServerLimit | ServerLimit | ||
| MaxClients | MaxClients | ||
| Line 52: | Line 52: | ||
| What we're doing here is tuning Apache to handle the largest possible number of simultaneous connections while consuming the least resources and producing the fewest errors. | What we're doing here is tuning Apache to handle the largest possible number of simultaneous connections while consuming the least resources and producing the fewest errors. | ||
| - | '' | + | '' |
| + | |||
| + | # apache2ctl status | ||
| + | | ||
| + | |||
| + | | ||
| + | mod_perl/ | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | Total accesses: 8 - Total Traffic: 85 kB - Total Duration: 816 | ||
| + | CPU Usage: u.07 s.03 cu0 cs0 - .0952% CPU load | ||
| + | .0762 requests/ | ||
| + | 1 requests currently being processed, 0 workers gracefully restarting, | ||
| + | 63 idle workers | ||
| + | |||
| + | Slot PID Stopping | ||
| + | total accepting busy graceful idle writing keep-alive closing | ||
| + | 1 1343 no | ||
| + | Sum 1 0 0 | ||
| + | |||
| + | ................................................................ | ||
| + | ______________W_________________________________________________ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | ................................................................ | ||
| + | |||
| + | | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| '' | '' | ||
| Line 60: | Line 110: | ||
| == Timeout == | == Timeout == | ||
| - | Then find the '' | + | Then find the '' |
| == KeepAlive == | == KeepAlive == | ||
| Line 80: | Line 130: | ||
| * Don't give users the root password or grant them privileges on *.*. | * Don't give users the root password or grant them privileges on *.*. | ||
| * chmod 600 | * chmod 600 | ||
| - | ==== PHP ==== | ||
| - | |||
| - | You'll need these: | ||
| - | |||
| - | * '' | ||
| - | |||
| - | Download and build PHP to include everything we'll need: | ||
| - | |||
| - | * '' | ||
| - | * ''< | ||
| - | * '' | ||
| - | * ''< | ||
| - | </ | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | FIXME Path is wrong | ||
| - | Install '' | ||
| - | |||
| - | * '' | ||
| - | |||
| - | FIXME We use systemd service definition files now, not init scripts. | ||
| - | Install the initscript: | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | FIXME Path is wrong | ||
| - | Install the FPM-specific configuration files. | ||
| - | |||
| - | * '' | ||
| - | |||
| - | FIXME Path is wrong | ||
| - | Edit the file ''/ | ||
| - | |||
| - | include=/ | ||
| - | [global] | ||
| - | pid = / | ||
| - | error_log = / | ||
| - | |||
| - | FIXME Path is wrong | ||
| - | In ''/ | ||
| - | |||
| - | Here's what you put in each pool definition file: | ||
| - | |||
| - | [david] | ||
| - | user = david | ||
| - | group = david | ||
| - | | ||
| - | listen = / | ||
| - | listen.owner = www-data | ||
| - | listen.group = www-data | ||
| - | listen.mode = 0660 | ||
| - | | ||
| - | pm = dynamic | ||
| - | pm.max_children = 24 | ||
| - | pm.start_servers = 1 | ||
| - | pm.min_spare_servers = 1 | ||
| - | pm.max_spare_servers = 2 | ||
| - | pm.max_requests = 32768 | ||
| - | ; | ||
| - | |||
| - | FIXME Path is wrong | ||
| - | |||
| - | Of course, change ' | ||
| - | |||
| - | At this point, PHP-FPM is ready to start if you want. | ||
| - | |||
| - | * '' | ||
| - | |||
nndocs/lamp.1726246931.txt.gz · Last modified: 2024/09/13 17:02 by naptastic
