Custom Apache Directive not working

Discussion in 'Installation/Configuration' started by variable99, Oct 13, 2023.

  1. variable99

    variable99 Member

    When I set custom apache directive:
    It does not work. In "public" folder I put index.php with simple phpinfo() and I receive error:
    Apache log:
    File is created, I have checked this. Apache vhost:
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The file you posted looks as if you edited it manually, it has not been generated by using Custom Apache directives function in ISPConfig. The Docroot is overridden by ISPConfig by adding a second DocumentRoot line at the end, in your case, the first line has been changed and the second one is missing, so clearly not a vhost with oevrriddem docroot from ISPConfig.

    Btw. I just tested it and Docroot overriding works fine.

    2023-10-13 12_56_51-ISPConfig.png

    2023-10-13 12_57_18-.png

    2023-10-13 12_57_34-administrator@server1_ ~.png

    2023-10-13 12_57_47-PHP 8.2.7 - phpinfo().png
     
    ahrasis likes this.
  3. variable99

    variable99 Member

    Ok, re-created domain and not touched vhost conf. Still File not found error:

     
  4. variable99

    variable99 Member

    I should mention that only .php files are "File not found". HTML are loaded just fine. Is this may be related to PHP config in vhost?
     
  5. variable99

    variable99 Member

    Solved: When setting "Chroot PHP-FPM" is set for website Custom docroot does not work correctly (may be related to PHP-FPM settings in vhost).
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This is a known issue. I have been fiddling with it a lot, but have not been able to find a 100% working solution (yet).
     
    ahrasis likes this.
  7. variable99

    variable99 Member

    It is probably solved by setting php-fpm to socket connection. This is related to jailkit.
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No, the problem is more complicated than that sadly.
     
    ahrasis likes this.

Share This Page