<html><head><style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style></head><body><div>HI,</div><div><br></div><div>I'm sorry to add this to your thread but I've discovered another problem with Subdomains as well, there are phpvalue entries in the conf-file for the subdomain added by the GUI</div><div>which makes the whole Apache process die.</div><div>I've had to comment those lines out by hand.</div><div><br></div><div>According to this from the log:</div><div><br></div><div style="unicode-bidi: plaintext; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="unicode-bidi: plaintext; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; padding: 3pt 0cm 0cm;"><div><b><span>Från:</span></b><span><span class="Apple-converted-space"> </span>Leif Burlin<br><b>Skickat:</b><span class="Apple-converted-space"> </span>den 3 juli 2024 08:45<br><b>Till:</b><span class="Apple-converted-space"> </span>Mikael Burell <<a href="mailto:mikael.burell@vfhsk.se" title="Click to mail mikael.burell@vfhsk.se" style="color: rgb(5, 99, 193); text-decoration: underline;">mikael.burell@vfhsk.se</a>><br><b>Ämne:</b><span class="Apple-converted-space"> </span>Felet<o:p></o:p></span></div></div></div><div><o:p> </o:p></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se systemd[1]: Starting The Apache HTTP Server...<o:p></o:p></span></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se httpd[272966]: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/subdomains/site8-bfhsk.se.conf:<o:p></o:p></span></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se httpd[272966]: Invalid command 'php_value[disable_functions]', perhaps misspelled or defined by a module not included in the server configuration<o:p></o:p></span></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE<o:p></o:p></span></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se systemd[1]: httpd.service: Failed with result 'exit-code'.<o:p></o:p></span></div><div><span lang="EN-US">Jul 03 08:41:28 webadmin.zenbiz.se systemd[1]: Failed to start The Apache HTTP Server.<o:p></o:p></span></div><div><span lang="EN-US"><o:p> </o:p></span></div><div><span lang="EN-US">R31:                    php_value[disable_functions] = "exec,system,passthru,shell_exec,popen,escapeshellcmd,proc_open,proc_nice,ini_restore,fwrite,file_put_contents,chmod,chown,mkdir,copy"<o:p></o:p></span></div><div><span lang="EN-US">R32:                    php_value[disable_classes] = "SplFileObject"<o:p></o:p></span></div><div><span lang="EN-US"><o:p> </o:p></span></div><div><span lang="EN-US">R7x                      php_value[disable_functions] = "exec,system,passthru,shell_exec,popen,escapeshellcmd,proc_open,proc_nice,ini_restore,fwrite,file_put_contents,chmod,chown,mkdir,copy"<o:p></o:p></span></div><div><span lang="EN-US">R7x                      php_value[disable_classes] = "SplFileObject"<o:p></o:p></span></div><div><span lang="EN-US"><o:p> </o:p></span></div><div><br></div><div><br></div><div><br></div><div>I'm out driving on vacation so I can't log in to the system and check more but I think it's a 5210R.</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Rickard</div><div><br></div><div><br></div><div><br></div><div>On Sat, 2024-07-06 at 22:01 +0900, Tomohiro Hosaka via Blueonyx wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hello.<br></div><div><br></div><div>Subdomain has not been working since yum update yesterday in 5210R environment.<br></div><div><br></div><div>[Sat Jul 06 04:07:47.861415 2024] [proxy_fcgi:error] [pid 903704]<br></div><div>[client XX:64304] AH01071: Got error 'PHP message: PHP Warning:<br></div><div>Unknown: open_basedir restriction in effect.<br></div><div>File(/home/.sites/site28/wwwroot/subd1/index.php) is not within the<br></div><div>allowed path(s):<br></div><div>(/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/home/solarspeed/php-7.3/share/pear:/home/.sites/site2/)<br></div><div>in Unknown on line 0<br></div><div><br></div><div>root # grep site28 /etc/group<br></div><div>site28:x:1013:site28-admin,admin<br></div><div><br></div><div>root # fgrep fcgi /etc/httpd/conf/vhosts/site2<br></div><div><Proxy "fcgi://127.0.0.1:9013" retry=0><br></div><div>    Sethandler proxy:fcgi://127.0.0.1:9013<br></div><div><Proxy "fcgi://127.0.0.1:9013" retry=0><br></div><div>    Sethandler proxy:fcgi://127.0.0.1:9013<br></div><div><br></div><div>root # fgrep fcgi /etc/httpd/conf/vhosts/site28<br></div><div><Proxy "fcgi://127.0.0.1:9015" retry=0><br></div><div>    Sethandler proxy:fcgi://127.0.0.1:9015<br></div><div><Proxy "fcgi://127.0.0.1:9015" retry=0><br></div><div>    Sethandler proxy:fcgi://127.0.0.1:9015<br></div><div><br></div><div>root # fgrep fcgi /etc/httpd/conf.d/subdomains/site28-*<br></div><div>/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:<Proxy<br></div><div>"fcgi://127.0.0.1:9013" retry=0><br></div><div>/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:    Sethandler<br></div><div>proxy:fcgi://127.0.0.1:9013<br></div><div>/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:<Proxy<br></div><div>"fcgi://127.0.0.1:9013" retry=0><br></div><div>/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:    Sethandler<br></div><div>proxy:fcgi://127.0.0.1:9013<br></div><div>/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:<Proxy<br></div><div>"fcgi://127.0.0.1:9013" retry=0><br></div><div>/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:    Sethandler<br></div><div>proxy:fcgi://127.0.0.1:9013<br></div><div>/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:<Proxy<br></div><div>"fcgi://127.0.0.1:9013" retry=0><br></div><div>/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:    Sethandler<br></div><div>proxy:fcgi://127.0.0.1:9013<br></div><div><br></div><div>The fpmPort of the subdomain of site28 does not match the fpmPort of<br></div><div>the vsite of site28.<br></div><div><br></div><div>The calculation method of fpmPort for<br></div><div>/usr/sausalito/handlers/base/apache/virtual_host.pl does not match<br></div><div>the calculation method of fpmPort for<br></div><div>/usr/sausalito/handlers/base/subdomains/subdomain-new.pl.<br></div><div><br></div><div>virtual_host.pl is subdomain-new.pl plus the processing below.<br></div><div>my $available_port = find_next_available_port($fpmPort);<br></div><div><br></div><div>It is natural that they may not be the same.<br></div><div><br></div><div>Also, find_next_available_port() is affected by the below, so at the<br></div><div>time of rewriting /etc/httpd/conf/vhosts/site28,<br></div><div>/etc/httpd/conf.d/subdomains/site28-*.conf should also be rewritten.<br></div><div>my @php_fpm_ports = qx(cat /etc/php-fp*/* | grep 'listen =' | cut -d :<br></div><div>-f 2 | sort -un);<br></div><div>my @listening_ports = qx(netstat -tupan | grep LISTEN | grep 127.0.0.1<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>cut -d : -f2 | awk '{ print \$1 }' | sort -un);<br></div></blockquote><div><br></div><div>Is fpmPort the correct behavior to match?<br></div><div>Is this a bug?<br></div><div><br></div><div>Thanks<br></div><div>_______________________________________________<br></div><div>Blueonyx mailing list<br></div><div><a href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a><br></div><div><a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br></div></blockquote><div><br></div><div><span><pre>-- <br></pre><div data-evo-paragraph="" class="">Bluapp AB</div><div data-evo-paragraph="" class="">Rickard Osser</div><div data-evo-paragraph="" class="">CTO<br></div><div data-evo-paragraph="" class="">Solberga Ängsväg 3</div><div data-evo-paragraph="" class="">125 44 Älvsjö</div><div data-evo-paragraph="" class="">Sweden</div><div data-evo-paragraph="" class=""><br></div><div data-evo-paragraph="" class="">Web: <a href="http://www.bluapp.com">http://www.bluapp.com</a></div><div data-evo-paragraph="" class="">Mail: <a href="mailto:rickard.osser@bluapp.com">rickard.osser@bluapp.com</a></div></span></div></body></html>