[users@httpd] Subcribe

2022-05-11 Thread Ivan Ionut

--
Ivan Ionuț

Str. Săliște 20, Galati 800023

Tel/Fax: +40236 493277

Email: ivan.io...@tehnopol-gl.ro

_The content of this email is confidential and intended for the 
recipient specified in message only. It is strictly forbidden to share 
any part of this message with any third party, without a written consent 
of the sender. If you are not the intended recipient of this message, 
please notify the sender immediately, and delete the message and any 
attachments. Any disclosure, reproduction, distribution or other use of 
this message or any attachments by an individual or entity other than 
the intended recipient is prohibited._

Re: [users@httpd] Variable of document root path based on source ip

2022-05-03 Thread Ivan Ionut
No, I have clients that from wan too. Basically when I make some 
important changes to a site...all clients from wan to view the 
under_construction directory.


On 03-05-2022 16:03, Frank Gingras wrote:


Do all clients come from the 192.168.1.0/24 [1] range?

On Tue, 3 May 2022 at 04:23, Ivan Ionut  
wrote:


I did not understand... I have to define two vhosts configs for 
mysite.com [2] with two separate document root in each config?


PS: i have one static ip for mysite.com [2]

On 03-05-2022 00:32, Frank Gingras wrote:

The simple approach here would be to define separate IP:80 vhosts and 
set a separate document root in each vhost.


On Mon, 2 May 2022 at 06:48, Eric Covener  wrote:
You cannot use Define conditionally this way. It is parsed at startup 
and ignores any enclosing directives


On Mon, May 2, 2022, 2:24 AM Ivan Ionut  
wrote:


I'm trying to set a virtual host on apache2 with this configuration.


ServerName mysite.com [2]
ServerAlias www.mysite.com [3]


Define directory_path /srv/http/mysite


Define directory_path /srv/http/under_construction


DocumentRoot ${directory_path}


Require all granted



The problem is that the If directive does not match when I access it 
from that lan.


I'm using Apache/2.4.18. [4]

--
Ivan Ionuț

Str. Săliște 20, Galati 800023

Tel/Fax: +40236 493277

Email: ivan.io...@tehnopol-gl.ro

_The content of this email is confidential and intended for the 
recipient specified in message only. It is strictly forbidden to share 
any part of this message with any third party, without a written 
consent of the sender. If you are not the intended recipient of this 
message, please notify the sender immediately, and delete the message 
and any attachments. Any disclosure, reproduction, distribution or 
other use of this message or any attachments by an individual or entity 
other than the intended recipient is prohibited._



Links:
--
[1] http://192.168.1.0/24
[2] http://mysite.com
[3] http://www.mysite.com
[4] http://2.4.18.

Re: [users@httpd] Variable of document root path based on source ip

2022-05-03 Thread Ivan Ionut
I did not understand... I have to define two vhosts configs for 
mysite.com with two separate document root in each config?


PS: i have one static ip for mysite.com [1]

On 03-05-2022 00:32, Frank Gingras wrote:

The simple approach here would be to define separate IP:80 vhosts and 
set a separate document root in each vhost.


On Mon, 2 May 2022 at 06:48, Eric Covener  wrote:
You cannot use Define conditionally this way. It is parsed at startup 
and ignores any enclosing directives


On Mon, May 2, 2022, 2:24 AM Ivan Ionut  
wrote:


I'm trying to set a virtual host on apache2 with this configuration.


ServerName mysite.com [1]
ServerAlias www.mysite.com [2]


Define directory_path /srv/http/mysite


Define directory_path /srv/http/under_construction


DocumentRoot ${directory_path}


Require all granted



The problem is that the If directive does not match when I access it 
from that lan.


I'm using Apache/2.4.18. [4]

--
Ivan Ionuț

Str. Săliște 20, Galati 800023

Tel/Fax: +40236 493277

Email: ivan.io...@tehnopol-gl.ro

_The content of this email is confidential and intended for the 
recipient specified in message only. It is strictly forbidden to share 
any part of this message with any third party, without a written 
consent of the sender. If you are not the intended recipient of this 
message, please notify the sender immediately, and delete the message 
and any attachments. Any disclosure, reproduction, distribution or 
other use of this message or any attachments by an individual or entity 
other than the intended recipient is prohibited._



Links:
--
[1] http://mysite.com
[2] http://www.mysite.com
[3] http://192.168.1.0/24
[4] http://2.4.18.

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Ivan Ionut
Hi, I'm usually the guy that needs requests help :D but have you tried 
this directory block?



Require all granted
Options -Indexes


P.S I noticed in your stack post that you added Directory block of 
website1.com within website2.com


---

On 02-05-2022 09:49, Josh Mustillo wrote:


Gday,

I'll post a link to my stack overflow post as it's nicely formatted:

https://stackoverflow.com/questions/72073312/apache-virtual-hosts-not-working-for-my-two-domains

I've been trying for a couple of weeks on a oracle compute instance 
with no luck so I thought I would try a Multisite on a local Ubuntu 
virtual machine with no luck either.

[users@httpd] Variable of document root path based on source ip

2022-05-02 Thread Ivan Ionut

I'm trying to set a virtual host on apache2 with this configuration.


ServerName mysite.com
ServerAlias www.mysite.com


Define directory_path /srv/http/mysite


Define directory_path /srv/http/under_construction


DocumentRoot ${directory_path}


Require all granted



The problem is that the If directive does not match when I access it 
from that lan.


I'm using Apache/2.4.18.

--
Ivan Ionuț

Str. Săliște 20, Galati 800023

Tel/Fax: +40236 493277

Email: ivan.io...@tehnopol-gl.ro

_The content of this email is confidential and intended for the 
recipient specified in message only. It is strictly forbidden to share 
any part of this message with any third party, without a written consent 
of the sender. If you are not the intended recipient of this message, 
please notify the sender immediately, and delete the message and any 
attachments. Any disclosure, reproduction, distribution or other use of 
this message or any attachments by an individual or entity other than 
the intended recipient is prohibited._

Re: [users@httpd] Segmentation fault

2022-03-11 Thread Ivan Ionut

Well, i disabled opcache and after I had other crashes:

[crit] Memory allocation failed, aborting process.
[crit] Memory allocation failed, aborting process.
[crit] Memory allocation failed, aborting process.

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

So opcache is enabled now and I will try to disable other 
extensions...because @Frank Gingras I never switched to php-fpm on a 
live server, so this will be the last solution.


---
Ivan Ionuț

Str. Săliște 20, Galati 800023

Tel/Fax: +40236 493277

Email: ivan.io...@tehnopol-gl.ro

_The content of this email is confidential and intended for the 
recipient specified in message only. It is strictly forbidden to share 
any part of this message with any third party, without a written consent 
of the sender. If you are not the intended recipient of this message, 
please notify the sender immediately, and delete the message and any 
attachments. Any disclosure, reproduction, distribution or other use of 
this message or any attachments by an individual or entity other than 
the intended recipient is prohibited._


On 10-03-2022 20:28, Frank Gingras wrote:

That would really be a band-aid; also preventing memory leaks might not 
stop segfaults at all.


You will gain many advantages by moving to the fpm pools model, and 
your httpd will use less memory as well.


On Wed, 9 Mar 2022 at 20:15, Dino Ciuffetti  wrote:

Already tried to disable the opcache PHP extension?
# sudo phpdismod opcache
It should be your problem.

Also, it seems you are on prefork, please try to set 
MaxConnectionsPerChild to something near 1 when you are using 
mod_php or big modules like this to avoid any memory leak building 
slowly, if any.


9 marzo 2022 14:15, "Ivan Ionut"  wrote:

My apache2 version:

Server version: Apache/2.4.18 (Ubuntu)
Server built: 2020-08-12T21:35:50

My php version:

PHP 7.3.7-1+ubuntu16.04.1+deb.sury.org [1]+1 (cli) (built: Jul 10 2019 
06:54:26) ( NTS )

Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.7-1+ubuntu16.04.1+deb.sury.org [1]+1, Copyright 
(c) 1999-2018, by Zend Technologies


My os version:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Hi, from last 2-3 months i have a lot of these segmentations(2-3 times 
per week);


[Wed Mar 09 10:47:12.150226 2022] [core:notice] [pid 21823] AH00051: 
child pid 22481 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:17.155792 2022] [core:notice] [pid 21823] AH00051: 
child pid 21895 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:24.163536 2022] [core:notice] [pid 21823] AH00051: 
child pid 22189 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:24.163618 2022] [core:notice] [pid 21823] AH00051: 
child pid 22562 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:25.164759 2022] [core:notice] [pid 21823] AH00051: 
child pid 22491 exit


...

Every site on the server has an error with: "Secure Connection Failed" 
or "The Connection was reset"


After I restart apache2 everything is ok.

Before this error.. I had a lot of errors (that I do not remember the 
exact log messages) ... the apache2 requested to increase the number of 
servers/workers, so the only I made some modifications


/etc/apache2/mods-available/mpm_prefork.conf


ServerLimit 4000
StartServers 905
MinSpareServers 405
MaxSpareServers 420
MaxRequestWorkers 2000
MaxConnectionsPerChild 0


Today with some tutorial and with the help of gdb... I did get some 
output of a segmentated apache2 process:


#0 0xb6324467 in ?? () from /usr/lib/php/20180731/opcache.so
No symbol table info available.
#1 0xb6322eac in ?? () from /usr/lib/php/20180731/opcache.so
No symbol table info available.
#2 0xb716baba in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#3 0xb71a4b92 in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#4 0xb71adaf3 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so [2]

No symbol table info available.
#5 0xb71112cd in zend_call_function () from 
/usr/lib/apache2/modules/libphp7.3.so [2]

No symbol table info available.
#6 0xb6fbffbf in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#7 0xb6fc1345 in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#8 0xb6fc154a in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#9 0xb6fc1b2a in ?? () from /usr/lib/apache2/modules/libphp7.3.so [2]
No symbol table info available.
#10 0xb71a9f11 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so [2]

No symbol table info available.
#11 0xb71112cd in zend_c

[users@httpd] Segmentation fault

2022-03-09 Thread Ivan Ionut

My apache2 version:

Server version: Apache/2.4.18 (Ubuntu)
Server built: 2020-08-12T21:35:50

My php version:

PHP 7.3.7-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jul 10 2019 
06:54:26) ( NTS )

Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.7-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 
1999-2018, by Zend Technologies


My os version:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Hi, from last 2-3 months i have a lot of  these segmentations(2-3 times 
per week);


[Wed Mar 09 10:47:12.150226 2022] [core:notice] [pid 21823] AH00051: 
child pid 22481 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:17.155792 2022] [core:notice] [pid 21823] AH00051: 
child pid 21895 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:24.163536 2022] [core:notice] [pid 21823] AH00051: 
child pid 22189 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:24.163618 2022] [core:notice] [pid 21823] AH00051: 
child pid 22562 exit signal Segmentation fault (11), possible coredump 
in /etc/apache2
[Wed Mar 09 10:47:25.164759 2022] [core:notice] [pid 21823] AH00051: 
child pid 22491 exit


...

Every site on the server has an error with: "Secure Connection Failed" 
or "The Connection was  reset"


After I restart apache2 everything is ok.

Before this error.. I had a lot of errors (that I do not remember the 
exact log messages) ... the apache2 requested to increase the number of 
servers/workers, so the only I made some modifications


/etc/apache2/mods-available/mpm_prefork.conf


ServerLimit 4000
StartServers 905
MinSpareServers 405
MaxSpareServers 420
MaxRequestWorkers 2000
MaxConnectionsPerChild 0


Today with some tutorial and with the help of gdb... I did get some 
output of a segmentated apache2 process:


#0 0xb6324467 in ?? () from /usr/lib/php/20180731/opcache.so
No symbol table info available.
#1 0xb6322eac in ?? () from /usr/lib/php/20180731/opcache.so
No symbol table info available.
#2 0xb716baba in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#3 0xb71a4b92 in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#4 0xb71adaf3 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#5 0xb71112cd in zend_call_function () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#6 0xb6fbffbf in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#7 0xb6fc1345 in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#8 0xb6fc154a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#9 0xb6fc1b2a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#10 0xb71a9f11 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#11 0xb71112cd in zend_call_function () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#12 0xb6fbffbf in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#13 0xb6fc1345 in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#14 0xb6fc154a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#15 0xb6fc1b2a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#16 0xb71a9f11 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#17 0xb71112cd in zend_call_function () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#18 0xb6fbffbf in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#19 0xb6fc1345 in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#20 0xb6fc154a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#21 0xb6fc1b2a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#22 0xb71a9f11 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#23 0xb71112cd in zend_call_function () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#24 0xb6fbffbf in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#25 0xb6fc1345 in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#26 0xb6fc154a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#27 0xb6fc1b2a in ?? () from /usr/lib/apache2/modules/libphp7.3.so
No symbol table info available.
#28 0xb71a9f11 in execute_ex () from 
/usr/lib/apache2/modules/libphp7.3.so

No symbol table info available.
#29 0xb71b22e4 in zend_execute () from 

[users@httpd] httpd does not start on first boot of sunday

2018-12-02 Thread ivan ionut
Here is my problem
https://bbs.archlinux.org/viewtopic.php?id=241361

Initially was random but, I noticed it's only happens sunday, on first boot.