Page 2 of 2

Re: Apache has no VirtualHosts

Posted: Sun Jan 19, 2014 10:49 pm
by jarland
Yep you're right. I reinstalled Drupal fresh, same problem. So I trace Apache with:

Code: Select all

pidof httpd | sed 's/ / -p /g' | xargs strace -fp
This is what I got:

Code: Select all

[pid  9192] access("/home/admin/web/jarland.org/public_html/includes/database/select.inc", F_OK) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/select.inc", {st_mode=S_IFREG|0644, st_size=49714, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde270) = -1 ENOENT (No such file or directory)
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde280) = -1 ENOENT (No such file or directory)
[pid  9192] readlink("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfe0440, 4095) = -1 ENOENT (No such file or directory)
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] access("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", F_OK) = -1 ENOENT (No such file or directory)
[pid  9192] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  9192] chdir("/etc/httpd")         = 0
[pid  9192] rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER|SA_INTERRUPT, 0x7f55c58c2710}, {SIG_DFL, [], SA_RESTORER|SA_RESETHAND, 0x7f55c58c2710}, 8) = 0
[pid  9192] kill(9192, SIGSEGV)         = 0
[pid 14327] <... futex resumed> )       = ? ERESTARTSYS (To be restarted)
[pid  9192] rt_sigreturn(0x23e8)        = 140006431048000
[pid 14327] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
I'm clueless, but here's what stands out to me:

Code: Select all

access("/home/admin/web/jarland.org/public_html/includes/database/select.inc", F_OK) = 0
Then:

Code: Select all

lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde270) = -1 ENOENT (No such file or directory)
What an odd problem. I'm not entirely sure if I caused additional problems by playing loose with xargs but one thing is for sure, this situation is not quite normal.

Re: Apache has no VirtualHosts

Posted: Mon Jan 20, 2014 4:48 am
by heihachi88
jarland wrote:Yep you're right. I reinstalled Drupal fresh, same problem. So I trace Apache with:

Code: Select all

pidof httpd | sed 's/ / -p /g' | xargs strace -fp
This is what I got:

Code: Select all

[pid  9192] access("/home/admin/web/jarland.org/public_html/includes/database/select.inc", F_OK) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/select.inc", {st_mode=S_IFREG|0644, st_size=49714, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde270) = -1 ENOENT (No such file or directory)
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde280) = -1 ENOENT (No such file or directory)
[pid  9192] readlink("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfe0440, 4095) = -1 ENOENT (No such file or directory)
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes/database", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html/includes", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org/public_html", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web/jarland.org", {st_mode=S_IFDIR|0551, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin/web", {st_mode=S_IFDIR|0751, st_size=4096, ...}) = 0
[pid  9192] lstat("/home/admin", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
[pid  9192] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  9192] access("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", F_OK) = -1 ENOENT (No such file or directory)
[pid  9192] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  9192] chdir("/etc/httpd")         = 0
[pid  9192] rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER|SA_INTERRUPT, 0x7f55c58c2710}, {SIG_DFL, [], SA_RESTORER|SA_RESETHAND, 0x7f55c58c2710}, 8) = 0
[pid  9192] kill(9192, SIGSEGV)         = 0
[pid 14327] <... futex resumed> )       = ? ERESTARTSYS (To be restarted)
[pid  9192] rt_sigreturn(0x23e8)        = 140006431048000
[pid 14327] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
I'm clueless, but here's what stands out to me:

Code: Select all

access("/home/admin/web/jarland.org/public_html/includes/database/select.inc", F_OK) = 0
Then:

Code: Select all

lstat("/home/admin/web/jarland.org/public_html/includes/database/mysql/select.inc", 0x7fff7cfde270) = -1 ENOENT (No such file or directory)
What an odd problem. I'm not entirely sure if I caused additional problems by playing loose with xargs but one thing is for sure, this situation is not quite normal.
Hi, jarland :)

I have solved this problem. The cause was APC and if being more exactly - it was apc.filters, i had to exclude drupal install directory like that:

Code: Select all

apc.filters="-install$,-test$,-admin"
and everything worked, try it

Re: Apache has no VirtualHosts

Posted: Mon Jan 20, 2014 10:55 pm
by jarland
heihachi88 wrote:
Hi, jarland :)

I have solved this problem. The cause was APC and if being more exactly - it was apc.filters, i had to exclude drupal install directory like that:

Code: Select all

apc.filters="-install$,-test$,-admin"
and everything worked, try it
Good work!