Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Apache has no VirtualHosts

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
13 posts
  • Previous
  • 1
  • 2
jarland
Posts: 28
Joined: Sat Dec 07, 2013 10:40 pm
Contact:
Contact jarland
Website

Re: Apache has no VirtualHosts
  • Quote

Post by jarland » Sun Jan 19, 2014 10:49 pm

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.
Top

heihachi88
Posts: 258
Joined: Fri Jan 10, 2014 7:34 pm

Re: Apache has no VirtualHosts
  • Quote

Post by heihachi88 » Mon Jan 20, 2014 4:48 am

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
Top

jarland
Posts: 28
Joined: Sat Dec 07, 2013 10:40 pm
Contact:
Contact jarland
Website

Re: Apache has no VirtualHosts
  • Quote

Post by jarland » Mon Jan 20, 2014 10:55 pm

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!
Top


Post Reply
  • Print view

13 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password