New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache 2.4: PHP disabled = vhost can't serve any files #485

Closed
dtugend opened this Issue Nov 6, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dtugend

dtugend commented Nov 6, 2017

Summary

When PHP is not enabled, the vhost file generated doesn't allow accessing files in the document root with Apache 2.4.

System information

  • Froxlor version: 0.9.38.7-1 (DB: 201612110)
  • Web server: apache2/stable,stable,now 2.4.25-3+deb9u3 amd64 [installed]
  • OS/Version: Linux xxx 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

Steps to reproduce

  1. Disable PHP on the domain or customer.
  2. Try to access any file.

Expected behavior

Files get served.

Actual behavior

403 Forbidden

Log files/log entries

/var/customers/logs/customer-error.log

[Mon Nov 06 21:34:03.366181 2017] [authz_core:error] [pid 11159] [client xxx.xxx.xxx.xxx:xxxxx] AH01630: client denied by server configuration: /var/customers/webs/customer/domain/index.html

Possible solution:

Add this directive similarily to how it's done with PHP-enabeld vhosts:

  <Directory "/var/customers/webs/customer/domain/">
    Require all granted
    AllowOverride All
  </Directory>

Not sure if AllowOverride All is a good idea, but that is what the PHP vhosts have too.

@d00p

This comment has been minimized.

Show comment
Hide comment
@d00p

d00p Nov 7, 2017

Member

Can you please test with the current git-master code? I remember already being told about this

Member

d00p commented Nov 7, 2017

Can you please test with the current git-master code? I remember already being told about this

@dtugend

This comment has been minimized.

Show comment
Hide comment
@dtugend

dtugend Nov 7, 2017

Thank you for your reply. Sadly it's not fixed for my case, since I am using Webserver interface: FPM-FCGI.

It's using https://github.com/Froxlor/Froxlor/blob/master/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php in that case I think, which doesn't create that directive when PHP is not enabled.

dtugend commented Nov 7, 2017

Thank you for your reply. Sadly it's not fixed for my case, since I am using Webserver interface: FPM-FCGI.

It's using https://github.com/Froxlor/Froxlor/blob/master/scripts/jobs/cron_tasks.inc.http.15.apache_fcgid.php in that case I think, which doesn't create that directive when PHP is not enabled.

@d00p d00p closed this in e725b48 Nov 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment