How to increase apache and php limits after server expansion

Good time,

I’m not that kind of expert and I don’t really understand how to work with hestiacp. in general, the situation is as follows, a year ago I installed hestiacp on a VPS with the following characteristics
6 vCore (ARM64), 8 GB RAM, 256 GB NVMe, and it turns out that after half a year there were 3 sites, for some reason my sites started opening for a very long time, I expanded the VPS error disappeared for a while, but sometimes it appears.

do I understand correctly that I need to update some apache configurations? if so, then approximately what configuration is needed and php.

PHP

max_execution_time 60
max_input_time 60
memory_limit 512M
error_reporting E_ALL & \~E_DEPRECATED & \~E_STRICT
display_errors Off
post_max_size 256M
upload_max_filesize 256M

/etc/apache2/ directory:

# /etc/apache2/
# |-- apache2.conf
# |	\`–  ports.conf
# |-- mods-enabled
# |	|-- \*.load
# |	\`– \*.conf
# |-- conf.d
# |	\`– \*

Global configuration

PidFile ${APACHE_PID_FILE}
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5

<IfModule mpm_prefork_module>
    StartServers          8
    MinSpareServers       5
    MaxSpareServers      20
    ServerLimit         256
    MaxClients          2048
    MaxRequestsPerChild 10000
</IfModule>

<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          2048
    MaxRequestsPerChild 10000
</IfModule>

<IfModule mpm_event_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          2048
    MaxRequestsPerChild 10000
</IfModule>

# These need to be set in /etc/apache2/envvars

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
#User www-data
#Group www-data

AccessFileName .htaccess

<Files \~ “^.ht”>
Order allow,deny
Deny from all
Satisfy all

DefaultType None
HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn

# Include module configuration:

Include mods-enabled/*.load
Include mods-enabled/*.conf

# Include list of ports to listen on and which to use for name based vhosts

Include ports.conf

LogFormat “%v:%p %h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” vhost_combined
LogFormat “%a %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” combined
LogFormat “%a %l %u %t “%r” %>s %O” common
LogFormat “%{Referer}i → %U” referer
LogFormat “%{User-agent}i” agent
LogFormat “%b” bytes

IncludeOptional conf.d/*.conf
IncludeOptional conf.d/domains/webmail.*.conf
IncludeOptional conf.d/domains/\*.conf

# Include the virtual host configurations:

#Include sites-enabled/

ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/50x.html
ErrorDocument 501 /error/50x.html
ErrorDocument 502 /error/50x.html
ErrorDocument 503 /error/50x.html
ErrorDocument 506 /error/50x.html
1 Like

Hello! Have you allocated optimal resources to your website packages?

Page path on HestiaCP: myIP:8083/list/package/

Hi, I created a new package, all unlimited and default values are worth it.