Apache2 and PAM Limits: Difference between revisions

From WikiMLT
m (Стадий: 3 [Фаза:Разработване, Статус:Разработван]; Категория:Web Servers)
m (Стадий: 6 [Фаза:Утвърждаване, Статус:Утвърден]; Категория:Web Servers)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><!--[[Category:Web_Servers|?]]-->{{ContentArticleHeader/Web_Servers}}</noinclude>
<noinclude>{{ContentArticleHeader/Web_Servers|toc=off}}{{ContentArticleHeader/Linux_Server}}</noinclude>
== References ==


* ...
* ...
== Section 1 ==
...
Within the output of the command <code>systemctl status apache2.service</code> was found the following error messages:<syntaxhighlight lang="shell-session">
Within the output of the command <code>systemctl status apache2.service</code> was found the following error messages:<syntaxhighlight lang="shell-session">
pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=33,euid=0
pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=33,euid=0
Line 29: Line 22:
{{devStage  
{{devStage  
  | Прндл  = Web Servers
  | Прндл  = Web Servers
  | Стадий = 3
| Прндл1 = Linux Server
  | Фаза  = Разработване
  | Стадий = 6
  | Статус = Разработван
  | Фаза  = Утвърждаване
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = {{REVISIONUSER}}
  | РзбПт = Spas
| АвтПт  = Spas
| УтвПт = {{REVISIONUSER}}
  | ИдтДт  = 2.08.2022
  | ИдтДт  = 2.08.2022
  | РзбДт  = {{Today}}
  | РзбДт = 2.08.2022
| АвтДт  = 2.08.2022
| УтвДт = {{Today}}
  | ИдтРв  = [[Special:Permalink/29689|29689]]
  | ИдтРв  = [[Special:Permalink/29689|29689]]
  | РзбРв  = {{REVISIONID}}
  | РзбРв = [[Special:Permalink/29692|29692]]
| АвтРв  = [[Special:Permalink/29693|29693]]
| УтвРв = {{REVISIONID}}
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 12:03, 2 August 2022

With­in the out­put of the com­mand sys­tem­ctl sta­tus apache2.service was found the fol­low­ing er­ror mes­sages:

pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=33,euid=0
pam_limits(sudo:session): Could not set limit for 'nofile' to soft=1024, hard=1048576: Operation not permitted; uid=33,euid=0

The so­lu­tion is pro­vid­ed with­in the an­swers of the ques­tion How to set ulim­it val­ue per­ma­nent­ly? at Serv­er Fault. The ap­plied steps are shown be­low, and of course the serv­er was restart­ed.

sudo nano /etc/pam.d/common-session
# https://serverfault.com/questions/610130/how-to-set-ulimit-value-permanently
session required pam_limits.so
sudo nano /etc/security/limits.conf
# https://serverfault.com/questions/610130/how-to-set-ulimit-value-permanently
*               soft    core            0
*               hard    core            -1
*               soft    nofile          65535
*               hard    nofile          1048576